New Zenner
- Join Date:
- Jan 2008
- Posts:
- 15
- Plugin Contributions:
- 0
order of operations for calculating tax?
The zen cart total is almost always $0.01 off from my client's accounting software. They're both calculating to 3 decimal points
In trying to figure out why, it looks like zen cart is just taking the product sub total (for each tax rate) and doing the calculation where I think the accounting software is adding up the taxes for each item
An example:
2 items @ $16.95, tax = 5%
2 * ( $16.95 * 0.05 ) = $1.694 ==> $1.69
(2 * $16.95 ) * 0.05 = $1.695 ==> $1.70
...maybe?
Could someone just tell me which file does the tax calculation? I'm good with php so I can read the code and figure out what's going on... as soon as I find it, that is
Thanks
Amanda