OCA / l10n-thailand

Thai localization
GNU Affero General Public License v3.0
50 stars 67 forks source link

[15.0][FIX] l10n_th_multicurrency_revaluation: amount on journal entry is not correct if create currency revaluation with partial payment on the invoice #437

Open newtratip opened 8 months ago

newtratip commented 8 months ago

Step to error

  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).

cc: @Saran440 @ps-tubtim

OCA-git-bot commented 8 months ago

Hi @ps-tubtim, some modules you are maintaining are being modified, check this out!

Saran440 commented 8 months ago

@newtratip Can you add step to error this PR please?

newtratip commented 8 months ago

@Saran440 I add step to error in description.

github-actions[bot] commented 4 months ago

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] commented 1 week ago

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.