I have created a custom order total that gives a discount in certain situations. The grand total always comes out correct, however the sales tax calculation is not taking my dis
Go to System > Configuration. Select "Tax" from the left hand navigation, then open the "Calculation Settings" group if it isn't already.
System > Configuration
Tax
"Calculation Settings"
Try changing the "Apply Customer Tax" parameter to "After Discount"
Apply Customer Tax
After Discount