From 365baa80fe2b52de78cebd6d4e0a035e49fb551a Mon Sep 17 00:00:00 2001 From: whotopia <9039050+whotopia@users.noreply.github.com> Date: Wed, 15 Mar 2023 17:28:16 +0100 Subject: [PATCH] Update payment_matching.py Proposing this amendment to the code to address https://github.com/CybroOdoo/CybroAddons/issues/177 and https://github.com/CybroOdoo/CybroAddons/issues/246 --- base_accounting_kit/models/payment_matching.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/base_accounting_kit/models/payment_matching.py b/base_accounting_kit/models/payment_matching.py index acee74aff..f644be103 100644 --- a/base_accounting_kit/models/payment_matching.py +++ b/base_accounting_kit/models/payment_matching.py @@ -723,9 +723,10 @@ class AccountReconciliation(models.AbstractModel): statement_currency = st_line.journal_id.currency_id or st_line.journal_id.company_id.currency_id if st_line.amount_currency and st_line.currency_id: - amount = st_line.amount_currency - amount_currency = st_line.amount - amount_currency_str = formatLang(self.env, abs(amount_currency), currency_obj=statement_currency) + amount = st_line.amount # st_line.amount_currency + amount_currency = st_line.amount_currency # st_line.amount + #amount_currency_str = formatLang(self.env, abs(amount_currency), currency_obj=statement_currency) + amount_currency_str = formatLang(self.env, abs(amount_currency), currency_obj=st_line.foreign_currency_id) else: amount = st_line.amount amount_currency = amount