Hi Dr Byte. We had attempted a code tweak to fix this as in:
http://www.zen-cart.com/forum/showthread.php?t=45213&highlight=tax+calculation (post 9)
The errors were due to renamimg original ot_coupon.php to old.ot_coupon.php. Oops. The tweak has been removed so we can sort this out.
The settings are:
Order Total Modules > Discount Coupon >
This module is installed : true
Sort Order : 280
Include Shipping : false
Include Tax : true
Re-calculate Tax : None
Tax Class : VAT (which is 17.5%)
The Sort order for all the order total modules has been tweaked to:
Discount Coupon : 280
Low Order Fee : 400
Shipping : 200
Sub-Total : 100
Tax : 999
Total : 888
See: http://www.zen-cart.com/forum/showthread.php?t=46241 (post 7)
I don't think this is part of the problem though.
The coupon is set up like this:
Coupon Name : test01
Coupon Amount : 10.0000%
Start Date : 12/18/2006
End Date : 12/19/2007
Uses per Coupon : Unlimited
Uses per Customer : 3
Valid Product List : NONE
Valid Categories List : NONE
Date Created : 12/18/2006
Date Modified : 12/18/2006
All this give the following information in the Order Confirmation page:
Sub-Total : £59.90
Flat Rate (Best Way) : £9.95
Discount Coupon: LL0107 : -£5.99
Total : £63.86
VAT : £10.40
As you can see the VAT is not correct. If I tweak the coupon module to have 'Re-Calculate tax: Standard' it gives:
Sub-Total : £59.90
Flat Rate (Best Way) : £9.95
Discount Coupon: LL0107 : -£5.99
Total : £62.06
VAT : £8.60
With 'Re-Calculate tax: None' and 'Include Tax : False' it gives
Sub-Total : £59.90
Flat Rate (Best Way) : £9.95
Discount Coupon: LL0107 : -£5.10
Total : £64.75
VAT : £10.40
And with 'Re-Calculate tax: Standard' and 'Include Tax : False' it gives
Sub-Total : £59.90
Flat Rate (Best Way) : £9.95
Discount Coupon: LL0107 : -£5.10
Total : £62.95
VAT : £8.60
As you can see it works out the total differently every time but the tax can stay the same.
Thanks...