OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Invoice Total Computation not correct
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Order Total Modules
DonStone
I do hope someone has an answer to this problem. Georgia requires taxing the shipping charges; OK, I have that working just fine. In fact, the entire invoice is correct EXCEPT the bottom line total includes tax on the Price Sensitive Discount. Following are my figures:

Shopping cart total: 266.50

Invoice items in the specified sort order:

Price Sensitive Discount (15%): 39.98
Sub-total: 226.53
Shipping: 50.64
GA Tax 7.0%: 19.40
Total: 299.36

Note that the line items do NOT add up to 299.36. In fact the Total is off by 2.80 and that difference equals the discount times the 7% tax (39.98 times 7% = 2.80). It seems that when the Total is computed, something decides that the amount of the discount needs to be taxed and does it in the background.

Note that the displayed tax is correct; that is, tax on both the discounted amount (Sub-total) and the Shipping: 7% * (226.53+50.64) = 19.40.

Now what have I done wrong? I might be able hack the Total computation if I knew where to hack. Better yet would be to set something up to do it right. I'm afraid that hacking could cause problems when there is no level discount or another state without tax.

Thanks for the help!!

Don
tokidoki2008
Im having the same problem:

Sub-Total: $39.50USD
HI TAX 4.166 + : $1.65USD
United States Postal Service (1 x 1lbs) (Priority Mail): $4.80USD
Total: $46.15USD

Mahalo in advanced!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.