Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] l10n_th_multicurrency_revaluation: Corrected journal entry amou…
…nts for partial payment revaluations. This fix where the debit and credit amounts on journal entries were incorrect when performing currency revaluations on partially paid invoices. Step to test: 1. On 01/01/2024, a vendor bill was issued for 100 CNY at a rate of 1 CNY = 5 THB. 2. A payment of 40 CNY was recorded on the same day at the same rate. 3. A currency revaluation was conducted on 31/01/2024, with the rate adjusted to 1 CNY = 4.30 THB. 4. The journal entry incorrectly reflected an exchange rate difference of 70, calculated as 100 x 5 - 100 x 4.30 (instead of the correct amount, 42 CNY, calculated as (100 - 40) x 5 - (100 - 40) x 4.30).
- Loading branch information