Wrong shipping costs (rounding by tax?)
-
Hello,
I have problem with wrong shipping calculation, maybe calculated rounding by tax ..
I set flat shipping price 100 CZK with 21 % VAT = 82.6446 K? w/o VAT
It is ok UNTIL activate WooCommerce Multilingual (with multi currency)..
Then my shipping shows 99.99 CZK with VAT !?!?! (in default language and default currency)Is there some problem with rounding and tax ?? shows only 2 digit places ..
100 / 1.21 = 82.6446 * 1.21 = 99.999966 = 100 OK
BUT 100 / 1.21 = 82.6446 = 82.64 * 1.21 = 99,9944 = 99,99 WRONG
maybe that rounding on 2 places ?? some sets of prices in shipping:
set = get (real):
82.6449 = 99,99 !! (100.000329) ??
82.645 = 100,00 OK (100,00045)
82.655 = 100,01 .. (100,01255)thanks for fix it ..
absolutely not know how it works ?!
better fix than recalculate and manually different fix price on all e-shops..PHP 8.0.8
WP 5.8
Woo 5.7.1
WCML 4.12.0but it’s ok with WCML 4.11.6 .. don’t know where I get that newer version ..
- The topic ‘Wrong shipping costs (rounding by tax?)’ is closed to new replies.