Totally Zenned
- Join Date:
- Sep 2004
- Posts:
- 605
- Plugin Contributions:
- 1
[fixed] Missing minor tax code correction
Over the past days since 1.3.02 has been out I have incorporated many forum suggested bug fixes. I noticed during the file merge upgrading to 1.3.5 the following but fix was not included in includes/classes/orders.php
1.3.5 source:
$current_row_tax_exc = zen_round(($products_tax / 100) * $shown_price, $currencies->currencies[$this->info['currency']]['decimal_places']);
Should be IMHO:
$current_row_tax_exc = zen_round((((($products_tax * $shown_price)+.05) / 100)), $currencies->currencies[$this->info['currency']]['decimal_places']);
Corrects tax rounding issue which causes minor tax miscalculation.
Jeff
My ZC Contribs:
Ad Manger
External Order Number Generator