changeset aeac6dddf6bb in modules/account_invoice:6.2
details: 
https://hg.tryton.org/modules/account_invoice?cmd=changeset&node=aeac6dddf6bb
description:
        Copy sign of lines total to remainder total currency

        issue10923
        (grafted from 9cb703fdea697d72346f9e2f3cb31f2941d15467)
diffstat:

 invoice.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 2bfc9e7cad7f -r aeac6dddf6bb invoice.py
--- a/invoice.py        Mon Nov 01 17:13:49 2021 +0100
+++ b/invoice.py        Tue Nov 02 01:22:54 2021 +0100
@@ -1016,7 +1016,7 @@
         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:

Reply via email to