Jump to content

Bad Price WIthout Tax after adding specific price PrestaShop 1.7.4.4


Recommended Posts

I'm having issue with calculation of price without tax, when I put price without discount it counts okay, because I made some changes in presta core, for example if I put product with price of 4,5 tax incl and 8% tax I get price - 4,17 tax excl, and that is correct.

(4,5*100)/108 = 4,16666 rounds up.

After giving specific price -15% I get price tax incl 3,83 which is correct, but I get 3,54 price tax excl which is incorrect (correct should be 3,55), I assume that everything counts using price tax excl instead of incl and counts like this

4,17 - (4,17*0,15) = 3,5445 (which php rounds to 3,54 instead of 3,55),

Do you have any idea in which controller or source file should I look to modify PrestaShop behaviour?

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...