Problem: The tax is computed before the deduction of the discount.
Installed:
osCommerce v2.2
Discount Code (updated to v2.9) - http://addons.oscommerce.com/info/7397/v,22
Order at Admin - Modules - Order Total:
1 - Sub Total
2 - Discount Code
3 - Tax
4 - Shipping
5 - Total
Prices for the products in my shop are shown including tax.
Example as it appears, with a discount of 10 euro:
Sub-total: 50 (shown inclusive 19% tax)
Discount: 10
VAT: 7.98
Shipping: 7.95
Total: 47.95
This should be:
Sub-total: 50 (shown inclusive 19% tax)
Discount: 10
VAT: 6.38
(Note: 50 minus 10 is 40. This, however, is including VAT, the net amount (excluding VAT) is (40 / 1.19 =) 33.61. The 19% tax on this amount is (33.61 * 0.19 =) 6.38)
Shipping: 7.95
Total: 47.95
Can someone please explain how to configure osCommerce (or the php files) to get the desired result?