From dd0d2bc91e8f5c3d87165bbc9a13e2ee7b35f407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 2 Nov 2021 01:22:54 +0100 Subject: [PATCH] Copy sign of lines total to remainder total currency issue10923 (grafted from 9cb703fdea697d72346f9e2f3cb31f2941d15467) --HG-- branch : 6.0 --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index b88ac8ed68..f96e47c90d 100644 --- a/invoice.py +++ b/invoice.py @@ -993,7 +993,7 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin): else: term_lines = [(self.payment_term_date or today, total)] if self.currency != self.company.currency: - remainder_total_currency = -self.total_amount + remainder_total_currency = self.total_amount.copy_sign(total) else: remainder_total_currency = 0 for date, amount in term_lines: