Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5322 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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?

Ảnh đại diện
Huỷ bỏ

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?

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 4 20
9423
2
thg 3 24
2249
0
thg 7 23
2086
3
thg 10 19
9811
1
thg 10 15
4415