News:

Looking for documentation? Take a look on our wiki

Main Menu

VM2: Wrong Tax calculation in order email-invoice

Started by canteloop01, June 07, 2012, 16:33:44 PM

Previous topic - Next topic

canteloop01

I am using vm 2.0.6 and i have a problem with the invoice feedback to customers (invoice-email).

The tax value seems to be miscalculated but the total prices are correct. . (product's quantity does affect the error)

Thanx in advance.

schefzig

I have the same problem.
The e-Mail as well as the "print-version" in the backend is affected.
The total tax is calculated right, but in the detailled list above, tax is doubled if you order an article twice.

Regards

Schefzig

schefzig

I found it and made a fix that seems to work for me.

\components\com_virtuemart\views\invoice\tmpl\invoice_items.php

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

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

I don't know if there are other places that need to be changed (depending on different configurations) but as I said before: works for me.

Regards

Schefzig

vigier

Thnx a lot schefzig!!! This was one of the annoying bugs on my list...