If this is your first visit, check our documentation. To post, register or login.
Forums / Bug Reports / [fixed] Missing minor tax code correction

[fixed] Missing minor tax code correction

Locked

Started by jeffd on 13 Sep 2006, 5:08 PM · Views: 2,034

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
13 Sep 2006, 5:08 PM
#1
jeffd avatar

jeffd

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

13 Sep 2006, 10:09 PM
#2
jeffd avatar

jeffd

Totally Zenned

Join Date:
Sep 2004
Posts:
605
Plugin Contributions:
1

Re: [fixed] Missing minor tax code correction

Ignore previous post, the current code though implemented differently produces the same (correct) result, so this bug is fixed.

Thanks,
Jeff

14 Sep 2006, 1:56 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [fixed] Missing minor tax code correction

Thanks for the update ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!