diff --git a/models/account_payment_order.py b/models/account_payment_order.py
index 2a3868b4fb1e26d29d7d1a7d0b53bd01ff22f2aa..a28cef70a2e8792cf90696112c9b90f50f8a3b70 100644
--- a/models/account_payment_order.py
+++ b/models/account_payment_order.py
@@ -33,7 +33,8 @@ class AccountPaymentOrder(models.Model):
 
     def _compute_bank_line_amount(self):
         for po in self:
-            po.bank_line_amount = sum(po.bank_line_ids.mapped("amount_currency"))
+            po.bank_line_amount = sum(po.payment_ids.filtered(
+                lambda p: not p.reversed_entry_id).mapped("amount_total_signed"))
 
     def _compute_attachment_ids(self):
         Attachment = self.env["ir.attachment"]
diff --git a/views/account_payment_order.xml b/views/account_payment_order.xml
index 3a21dd4b7898d8e673acbe962eb517e6aa352356..49d8257a4cacf0683a65880628711b3e7a461d9f 100644
--- a/views/account_payment_order.xml
+++ b/views/account_payment_order.xml
@@ -78,7 +78,7 @@
                     </div>
                 </xpath>
                 <!-- Sheet Buttons -->
-                <xpath expr="//field[@name='bank_line_count']" position="after">
+                <xpath expr="//field[@name='payment_count']" position="after">
                     <field name="payment_line_amount" />
                     <field name="bank_line_amount" />
                     <button