0 decimals and saved tax amount
-
I seems that the setting “number of decimals” affects the rounding of the tax :
– If I have 2 decimals, create an order A, and look at it, then everything is fine : https://ibb.co/k40Xs2V
– If I switch to 0 decimals and create a new order B, then I can see that tax is rounded if I look at it (that’s also expected) : https://ibb.co/C6HbwX0
But if I now switch back to 2 decimals and look again at that previous order B, I see that the tax value stays rounded there (not in the first line, but in the main table): https://ibb.co/yV0q9dY
This is easy to reproduce.
So it seems that woocommerce’s decimals setting affects some stored tax amount and not only the displayed one?However, as woocommerce only has a wrong vat in the main table but still shows the correct amount of tax on the first line (cf latest screenshot) then the correct tax amount must still stored correctly somewhere? If so why not always use that one?
How can I get it in php?
- The topic ‘0 decimals and saved tax amount’ is closed to new replies.