changeset 46eff81d41bf in modules/account_cash_rounding:6.0
details: 
https://hg.tryton.org/modules/account_cash_rounding?cmd=changeset&node=46eff81d41bf
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 3863e6b43407 -r 46eff81d41bf account.py
--- a/account.py        Mon May 03 15:55:18 2021 +0200
+++ b/account.py        Sun Oct 31 10:29:23 2021 +0100
@@ -156,7 +156,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