It looks like when there are discounts, sales tax is being calculated a little wonky.
For example a transaction that would normally play out like:
$30 Subtotal
- $7.50 ( 25% discount coupon)
+ $5.10 Shipping
(30 - 7.50 + 5.10) = 27.60
Tax = (27.60 X 0.084) = $2.32
Total = (2.32 + 27.60) = $29.92
Is getting calculated in a strange order by zen:
$30 + $5.10 = $35.10 (subtotal + shipping)
0.084 X (1 - .25) = 0.063 (tax rate less coupon discount of 25%)
$35.10 X 1.063 = $37.31 (total X (1 + tax))
$37.31 - 7.50 = $29.81 ( total with tax minus coupon)
close, but wrong. This happens with all types of discounts.
All my discount modules are set to not include tax, and Standard tax recalculation. Store set to include shipping in the tax calculation. Tax works great when there isn't a discount occurring.
Any ideas?



