diff --git a/invoice.py b/invoice.py index 4917c325ad..5ba7a4aca6 100644 --- a/invoice.py +++ b/invoice.py @@ -2391,7 +2391,7 @@ class PayInvoiceAsk(ModelView): for line in self.lines: self.amount_writeoff += line.debit - line.credit for line in self.payment_lines: - self.amount_writeoff += line.debit - line.credit + self.amount_writeoff += line.debit - line.credit if self.invoice.type in ('in_invoice', 'out_credit_note'): self.amount_writeoff = - self.amount_writeoff - amount else: