This is interesting and stems from the same mistake in zen:
learnwebdesignonline.com/tutorials/zencart/sales-tax-error
...But I think the problem I'm encountering is more to do with invoice.php in the admin directory, around line 200, I've cut the echo down a bit for clarity:
Code:
<?php
echo '<td class="dataTableContent" align="right" valign="top"><b>' .
$currencies->format(zen_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) .
($order->products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->format(zen_add_tax($order->products[$i]['onetime_charges'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) : '') .
'</b></td>' . "\n";
?>
That scary use of Zencart functions is a little hard to decipher, but as far as I can tell, it is adding the VAT then totalling, which is wrong, not just for the UK but generally.
Once I've woken up a bit, I might try to post a fix.
Bookmarks