Jump to content

Incorrect tax amount applied to total price? (Possible bug)


Recommended Posts

Hi everybody,

I'm experiencing a problem with how Prestashop (latest stable version) calculates the VAT and applies it to the total order.

While there's absolutely no problem on a per-product basis in the catalogue section and in the back-end (prices are correct both with and without VAT), once more products and/or the shipping costs get added to the cart the total is off by € 0,01.

For example (with 19% VAT):

Product price: 24,95
Shipping: 6,55
Total Product + Shipping 31,49 instead of 31,50.

It seems to me that Prestashop calculates the 31,49 starting from net prices:

Product Price: 20,97
Shipping: 5,50
NET total product + shipping: 26,47
19% VAT: 5,0293 <-- There seem to be a rounding issue here
Total incl. VAT: 31,49

Does anybody have an idea about how to fix this problem?

Thanks in advance,
Fabio

Link to comment
Share on other sites

×
×
  • Create New...