VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: clarion1 on July 16, 2012, 10:32:34 AM

Title: [SOLVED] Incorrect VAT tax calculation in confirmation email
Post by: clarion1 on July 16, 2012, 10:32:34 AM
Hi,

VM2 Version 2.0.8c  -  I have 20% VAT tax on items. In cart is all correct.

In confirmation email is VAT just "some number".E.g.: Item price is 19,13, VAT 3.83, final price 22.95 - correct for 1 item, but If I have e.g. 2 items, then VAT unit price is-19,13 €, 2items, 15,30 €- VAT (incorrect), 45,90 Final price is correct regardless of wrong VAT. It only applies if more then 1 item is in confirmation, for 1 item VAT is calculated correctly.
Title: Re: Incorrect VAT tax calculation in confirmation email
Post by: clarion1 on July 16, 2012, 11:28:17 AM
OK - here is quickfix:  in file components/com_virtuemart/views/invoice/tmpl/invoice_items.php

find: <td align="right" class="priceCol"><?php echo "<span  class='priceColor2'>".$this->currency->priceDisplay($item->product_tax ,0, $qtt)."</span>" ?></td>

and replace $qtt with 1. What happend is, VAT was re-calculated once again (with quantity) after it was already calculated.

Title: Re: [SOLVED] Incorrect VAT tax calculation in confirmation email
Post by: mdelreal on September 11, 2012, 20:30:50 PM
Thanks, works fine!!!  :)

I do not understand is because they have not fixed in new versions  :-\

Cheers,
Manuel
Title: Re: [SOLVED] Incorrect VAT tax calculation in confirmation email
Post by: Milbo on September 12, 2012, 00:30:26 AM
Hi, I am quite sure we fixed that already 1-2 weeks ago, but thanks.