changeset 246d6ec4392f in modules/account_invoice:6.0
details:
https://hg.tryton.org/modules/account_invoice?cmd=changeset&node=246d6ec4392f
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 47452ac8d7c3 -r 246d6ec4392f invoice.py
--- a/invoice.py Sun Oct 31 10:27:03 2021 +0100
+++ b/invoice.py Tue Nov 02 01:22:54 2021 +0100
@@ -993,7 +993,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: