changeset 2e7d2e88a428 in modules/account_cash_rounding:5.8
details: 
https://hg.tryton.org/modules/account_cash_rounding?cmd=changeset&node=2e7d2e88a428
description:
        Use the amount_second_currency from the line and not from the invoice

        issue10916
        review389191002
        (grafted from d7557a33425a2bbce37dd3f8a3eaf41d75db3ccc)
diffstat:

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

diffs (12 lines):

diff -r 01a1bda0b3cc -r 2e7d2e88a428 account.py
--- a/account.py        Fri Jan 01 16:17:19 2021 +0100
+++ b/account.py        Sun Oct 31 10:29:23 2021 +0100
@@ -141,7 +141,7 @@
             currency = line.second_currency
             if currency:
                 line.amount_second_currency = currency.cash_round(
-                    self.amount_second_currency)
+                    line.amount_second_currency)
         return line
 
     def get_move(self):

Reply via email to