Apologies for the double post but I have made progress is locating what causes this issue.
includes/classes/order.php line 511 and 512 were altered in 1.5.1.
If I substitute the lines that were in 1.5.0 then the problems is resolved.
Question is why was the 1.5.1 alteration made and can I safely use the 1.5.0 version (on a 1.5.1 site) without then screwing up something else? To say we are desperate to sort this would be an understatement. We are getting 3/4 orders per day with a penny issue and that causes subsequent book-keeping imports to fall over as the math doesn't work (so back to hand entries) - plus handling emails from folk pointing out the website isn't adding up properly...
These are the lines in 1.5.1:
Code:
$shown_price = (zen_add_tax($this->products[$index]['final_price'] * $this->products[$index]['qty'], $this->products[$index]['tax']))
+ zen_add_tax($this->products[$index]['onetime_charges'], $this->products[$index]['tax']);
replaced with this from 1.5.0:
Code:
$shown_price = zen_round(zen_add_tax($this->products[$index]['final_price'], $this->products[$index]['tax']) ,$decimals) * $this->products[$index]['qty'];
$shown_price += zen_round(zen_add_tax($this->products[$index]['onetime_charges'], $this->products[$index]['tax']), $decimals);
Bookmarks