Hello,
I just noticed the following "bug", in my order i have:
1x Item of €5.33 (ex. 19% tax) / tax = €1,01 which is displayed correctly
2x Item of €10.10 (ex. 19% tax) / tax = €1,92 per item, so x2 this should display €3,84.
However it displays a tax of €7,68, meaning it does 2x2 tax.
Ironically enough though, the total price is as it should be, and i don;t have this bug in the invoice/mail etc.
The code handling this calculation can be found in:
components/com_virtuemart/views/orders/tmpl/details_items.php (Line 73)
<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right" class="priceCol"><?php echo "<span class='priceColor2'>".$this->currency->priceDisplay($item->product_tax ,0, $qtt)."</span>" ?> </td>
<?php } ?>
(http://i45.tinypic.com/34ovbzs.jpg)
-Edit: By altering the $qtt to a 1, it shows the tax as €3,84 as it should, so either the $qtt part is wrong and should always remain as 1, or the $item->product_tax should not have calculated the tax times amount before being used in the tax calculation.