Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5315 Widoki

Hi,

when creating a product with a net price of 15.1176 and 19% tax the total is calculated correctly to 17.99:

https://res.cloudinary.com/ccd2c/image/upload/v1682684937/Sonstiges/Screenshot_2023-04-28_134337.png

But when changing the quantity, the total is not beeing calculated correctly. 2 * 15.1176 * 1,19 is 35,979888 and should be rounded to 35.98 and not 35.99:


https://res.cloudinary.com/ccd2c/image/upload/v1682684937/Sonstiges/Screenshot_2023-04-28_134614.png

I think thats because the tax is beeing calculated with the rounded subtotal of 30.24: 30,24 * 1,19 = 35,9856 = 35,99. But why is it possble to set 4 decimals for products when the subtotals are beeing rounded to 2 decimals? 

Changing the rounding method in Settings → Accounting → Taxes → Rounding Method to “Round per Line” or “Round Globally”, doesn’t change the result.

This also leads to unfortunate behaviour on the website which can be very confusing for the customer, when changing quantity to 2:


https://res.cloudinary.com/ccd2c/image/upload/v1682684937/Sonstiges/Screenshot_2023-04-28_141333.png


https://res.cloudinary.com/ccd2c/image/upload/v1682684937/Sonstiges/Screenshot_2023-04-28_141342.png


One solution would be to use gross prices and set the tax to “included in price”. But our bookkeeping is saying that this would lead to other problems later.

Did anybody find a solution for this problem?

Version: 16.0

Thank you!

Awatar
Odrzuć
Autor

Yes, the tests above were made with 4 decimals on products.

Najlepsza odpowiedź

Unfortunately, it doesn't solve the issue, as the number of digits for the Tax excl. value does not increase.

Is there a setting to increase this decimal precision as well?

Awatar
Odrzuć
Najlepsza odpowiedź

I had similar rounding issues with discount % price lists. I ended up changing the precision, and that solved my problem. 

Settings->Technical->Database Structure->Decimal Accuracy

I bumped 'discount' decimals up to 4 and it fixed my issue. I think if you bump your 'product' decimal up a couple of points it may fix this, is it already set to 4?

Awatar
Odrzuć

Hello
I have the same issue in Odoo 17 with the discounts on pricelists.
The decimal accuracy on the product price as well as the discount field is set to 8 decimal places, however on the pricelist, it rounds the discount to 2 decimal places.
On quotations the discount remains at 8 decimal places.
Has anyone managed to find out whether this is a bug on the pricelists?

Powiązane posty Odpowiedzi Widoki Czynność
4
kwi 20
9421
2
mar 24
2248
0
lip 23
2084
3
paź 19
9811
1
paź 15
4409