changeset 9cb703fdea69 in modules/account_invoice:default details: https://hg.tryton.org/modules/account_invoice?cmd=changeset&node=9cb703fdea69 description: Copy sign of lines total to remainder total currency
issue10923 diffstat: invoice.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 65f899aa8e2d -r 9cb703fdea69 invoice.py --- a/invoice.py Mon Nov 01 17:13:50 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: