-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix multicurrency on supplier invoices #31738
fix multicurrency on supplier invoices #31738
Conversation
No, the total of round is not the same than the round of total. So having 10 times the same product is NOT always the same than 1 time the product in qty 10. The reason is that you setup your app to get a rounding on 2 digits on each lines. So everything is correct. And the final amount on invoice must be the sum of each line. And your screenshot show that result is correct: 472.73 for first cas and 472.70 in the second case. This is the expected value. So yes the rate on final amount is not exactly 1.1. This is because the rate of 1.1 must be good on each lines, not on final total. You can't have both the rate that is exactly 1.1 on both the detail of line and on the final total. This is mathematically not possible. You will get the same effect with VAT calculation. |
ok, thanks. |
FIX multicurrency total is wrong on invoices
If a currency (ex. USD) invoice contains many lines, the main (ex. EUR) price may be wrong.
This is due to EUR total being sum of EUR price for each line. This bug exists at least from 14.0 to develop.
This PR makes the EUR total be computed from the USD price.
example wrong (140/1.1 = 127.272727 => 127.27)
example right