News:

Looking for documentation? Take a look on our wiki

Main Menu

Tax column bug

Started by foadmg, October 14, 2012, 01:08:45 AM

Previous topic - Next topic

foadmg

Dear friends,

I'm finding a problem with the orders. It is a tax issue.

In the Order Info page (where we go through the link that is sent to the customer once the order is done) we will find as shown in the file i'm attaching the following issue.

In the example we can see (I'm sorry for the mess) the price: 3,36, the amount of items 2,00 (it comes with decimals because the shop will also sell in kg.) then comes the tax row, discount and total.
In the example the VAT is set to 10%. If you look carefuly 10% of 3,36€*2 is 0,67€. So that would be the VAT. And the total would be 3,36*2 + VAT (0,67€) = 7,39€.
So what happens here is that VM is showing a well calculated total (price*amount + vat) BUT is not showing the propper value in the VAT column. It shows 1,34€ instead of 0,67€. I've checked making different purchases and I've realized that VM multiplies the TOTAL amount of vat paid for that article by the quantity, so it is actualy multiplying two times instead of just once.

What file should I check in order to see calculations?
And what file do I have to check to change also the distribution of the rows in the page? Reading arround I saw people mentioning basket_b2c.html.php but I'm not sure if it's the same for VM2.

Please, could you also give the route to the files that have to be modified?

Thanks a lot in advance!

[attachment cleanup by admin]