Author Topic: VAT for Tax problem  (Read 1157 times)

2cv

  • Beginner
  • *
  • Posts: 39
VAT for Tax problem
« on: December 06, 2011, 16:46:38 pm »
Hi,

I'm having a problem.
For orders where the user choose cash on delivery (COD) a fee of 3,00€ are added to the order, so far so good.

The problem is when the customer put the order virtuemart show all the values with the total, and do not calculate the 23% VAT from those 3,00€ as we want, but when the customer receive the email with the order the VAT from the TAX is included and shouldn't be.  :o

Anyone have any solution for this please  :-\

Many thanks!

2cv

  • Beginner
  • *
  • Posts: 39
Re: VAT for Tax problem
« Reply #1 on: December 08, 2011, 01:17:33 am »
found the solution:
In administrator/components/com_virtuemart/classes/ps_checkout.php, find this line:

               
Code: [Select]
$d['order_tax'] = $totals['order_tax'] = round( $this->calc_order_tax($totals['order_taxable'], $d), 2 );

and update it to this

               
Code: [Select]
$tmp_payment_discount = $d['payment_discount'];
               $d['payment_discount'] = 0;
               $d['order_tax'] = $totals['order_tax'] = round( $this->calc_order_tax($totals['order_taxable'], $d), 2 );
               $d['payment_discount'] = $tmp_payment_discount;

Hope this could help someone  ;)