Administrator
- Join Date:
- Sep 2009
- Location:
- Stuart, FL
- Posts:
- 14,065
- Plugin Contributions:
- 56
Tax display off by a penny for some tax rates
Tax calculations are off by a penny when using a tax-rate with more significant digits than the currency displays.
Using a fresh zc156 base with the demo products loaded, I started by creating a Taxable Goods product with a price of $5.00.
I then modified the tax-rate for Florida to be a 5.5% tax and modified the Flat Rate shipping (still $5.00) to be also Taxable Goods.
Went to the storefront and added 2 x the $5.00 product to my cart, went to checkout choosing 'Flat Rate' as my shipping option.
On the checkout_payment page, the order's total is off by a penny:
Sub-Total: $10.00
Flat Rate (Best Way): $5.00
FL Tax 5.5%: $0.82
Total: $15.83
The issue lies with the ot_tax display, since the tax on $15.00 is $0.825 (rounded for display to $0.83).