Closed pedrobaeza closed 4 months ago
Merging as already approved and battle-tested for months in 14.0:
/ocabot merge patch
Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 15.0-ocabot-merge-pr-633-by-pedrobaeza-bump-patch, awaiting test results.
Congratulations, your PR was merged at 9d96d0daac3c30405f2891e762710551305d565a. Thanks a lot for contributing to OCA. ❤️
Forward-port of #603
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.
@Tecnativa TT45568