Files
account-reconcile/account_reconciliation_widget/models/account_bank_statement.py
Pedro M. Baeza 2a1171d9c5 [FIX] account_reconciliation_widget: Avoid unbalanced foreign currency reconciliations
When having a statement line in a foreign currency, each resulting
journal item computes the debit/credit amount from the foreign currency
rate, and then rounding the result to company currency digits.

There's a chance in this process that the journal entry final balance
is not 0 summing the rounded balances in company currency.

For fixing this, there can be several strategies, like creating an
extra journal item for the difference, but I have opted for removing
the difference in the latest counterpart aml, so no extra noise and
no need of account decision algorithm for this extra move.

As currency amounts are correct and are the ones used in reconciliation,
there won't be any problem adjusting this amount.

TT45568
2023-10-21 18:44:12 +02:00

16 KiB