Jump to content

Wrong tax computation


ninu

Recommended Posts

Hi,

 

I'm in Malta and VAT is at 18%.

 

The tax computation is not working as should be. For example:

 

 

I have an item list on the website for €0.35 including VAT

 

I create an order for 200 of these items.

 

The working should be

 

 

200 x €0.35 = €70 with breakdown €59.32 Exc VAT and €10.68 VAT

 

 

What Prestashop is doing . . . at least mine

 

 

taking €0.35 findind the price excluding VAT and round it €0.30 and multiply by 200 = €60

 

and presenting the breakdown as €60 Exc VAT and €10.00 VAT, which is not correct.

 

 

Is this the way Prestashop works or I have something wrong in some parameter settings ?

 

Thank you

Ian

post-529244-0-66234800-1368880595_thumb.jpg

post-529244-0-54910700-1368880608_thumb.jpg

Link to comment
Share on other sites

  • 1 month later...

Hi Ian,

 

seems to be a bug that occurs every time when there's more than one of a single item. Same issue was already discussed here

http://www.prestasho...ost__p__1167343

 

and in the German forum, too:

http://www.prestasho...45#entry1288145

 

The following solution should work for the invoice in 1.5.4.1 ( or 1.4.9):

 

Modify line 581 (1.4.9: line 417) of /classes/cart.php from

 

$row['total_wt'] = Tools::ps_round($row['price'] * (float)$row['cart_quantity'] * (1 + (float)$tax_rate / 100), 2);

 

to

 

$row['total_wt'] = Tools::ps_round($row['price'] * (1 + (float)$tax_rate / 100), 2) * (float)$row['cart_quantity'];

 

And please send a report of this bug to github.

 

Regards,

eleazar

Edited by eleazar (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...