Browse Source

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
pull/247/head
whotopia 2 years ago
committed by GitHub
parent
commit
365baa80fe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      base_accounting_kit/models/payment_matching.py

7
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

Loading…
Cancel
Save