
Originally Posted by
Princess
Hi Diva,
I have found the right topic: KNOWN ISSUES: Edit Orders and taxes
I have read all the linked topics, but only one seemed the one that I was looking for.
I followed his instructions in the edit_orders.php file,
................................................................................ ........
89c89
< $AddShippingTax = "0.0"; // e.g. shipping tax of 17.5% is "17.5"
---
> $AddShippingTax = "17.5"; // e.g. shipping tax of 17.5% is "17.5"
593c593,596
< $RunningTaxTotalChanges += (($_POST[shippingtaxrate] / 100) * $ot_value);
---
> $ot_value = $ot_value / (1 + ($_POST[shippingtaxrate]/100));
> $RunningTotalShippingTax = (($_POST[shippingtaxrate] / 100) * $ot_value);
> $RunningTaxTotalChanges += $RunningTotalShippingTax;
> $RunningTaxTotalShipping = $ot_value;
636c639
< $ot_value = $RunningSubTotal;
---
> $ot_value = (($RunningSubTotal + $RunningTax) - $RunningTotalShippingTax);
644a648,653
> if($ot_class == "ot_shipping")
> {
> $ot_value = $RunningTaxTotalShipping + $RunningTotalShippingTax;
> // $sendtotaltoorders = 2;
> }
>
647c656,659
< $ot_value = $RunningTotal; }
---
> $ot_value = $RunningTotal - $RunningTax;
> //$ot_value = $ot_value + $RunningTotalShippingTax;
> }
................................................................................ ....
but... nothing happened after changing this file. The subtotal is still excluding vat. How can I add VAT to the subtotal just like original orders?
Bookmarks