[FIX] account: invoice, refund in foreign; payment, writeoff in domestic reconcile
Have an exchange rate of 1.1106
Have an invoice and a refund in a foreign currency
(amounts: 800 and 400)
Have a payment and a writeoff in domestic currency
(amounts: 200 and 160.16))
Before this commit, the invoice was not fully reconciled
even though the whole chain was
This was because, when checking if we should fully reconcile
we did so by forgetting that some members of the reconciliation
chain has a foreign currency
So, the exchange rate difference was never posted
(which amounts to 0.01 in foreign currency, and 0.00 in domestic)
After this commit, all the chain is reconciled, including the invoice
OPW 2057845
closes odoo/odoo#37738
X-original-commit: 74fb177c292c156a20818a12b47c53c40f37a2ee
Signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com>
Loading
Please register or sign in to comment