News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[SOLVED] Incorrect VAT tax calculation in confirmation email

Started by clarion1, July 16, 2012, 10:32:34 AM

Previous topic - Next topic

clarion1

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.

clarion1

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.


mdelreal

Thanks, works fine!!!  :)

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

Cheers,
Manuel

Milbo

Hi, I am quite sure we fixed that already 1-2 weeks ago, but thanks.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/