Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
5333 Visualizzazioni

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
Abbandona
Autore

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

Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona

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?

Post correlati Risposte Visualizzazioni Attività
4
apr 20
9425
2
mar 24
2249
0
lug 23
2087
3
ott 19
9812
1
ott 15
4416