Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
5321 Näkymät

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!

Avatar
Hylkää
Tekijä

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

Paras vastaus

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?

Avatar
Hylkää
Paras vastaus

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?

Avatar
Hylkää

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?

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
4
huhtik. 20
9423
2
maalisk. 24
2249
0
heinäk. 23
2086
3
lokak. 19
9811
1
lokak. 15
4415