Tárraga Posted November 11, 2020 Share Posted November 11, 2020 (edited) I have been searching for months for a solution to this error I've found which seems to me quite serious. It's an error that is seen with the naked eye. The steps to reproduce it are very simple: Product - 165.21€ tax excl. with a 50% reduction Shipping - 24.42€ tax excl. As you can see, the total is 130.21€ with taxes included, but the operation to calculate tax should be total price tax excl * tax rate / 100. I'm using a 21% fee. So, (82.61 + 25.42) * 21 / 100 = 22.6863 which rounded is 22.69€ while PrestaShop shows 22.68€ I think PrestaShop is not rounding the price calculation when it has a discount, product price with tax included is 99.95€ tax included when it should be 99.96€ 165,21 * 50 / 100 = 82.605€ * 1.21 = 99.95€ Tools::ps_round(165,21 * 50 / 100, 2) = 82.61€ * 1.21 = 99.9581 ~ 99.96€ Edited November 11, 2020 by Tárraga (see edit history) Link to comment Share on other sites More sharing options...
Tárraga Posted November 11, 2020 Author Share Posted November 11, 2020 11 minutes ago, Pablus said: Hola Tárraga, fíjate las opciones de redondeo de ps No importa qué opción elija de las tres, sigue calculando el mismo precio erróneo. No matter which option you choose out of the three, it still calculate the same wrong price. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now