Josep Hidalgo Posted March 11, 2011 Share Posted March 11, 2011 Dear all,I'm not agree with the way how prestashop calculate the specific price.My example:Inside my product >> tab priceI assign 4.237288 price to price without taxes.A discount of 2%.And then the result is that follows.Price --> 4.24Discount --> 2%Final Price, without taxes --> 4.16I've tried with classic rounded mode.If you make the ecuation the results are:Price 4.24Discount 2final price ----->>> 4.15!!!4.237288 (PRICE) - 4.237288*0.02(DISCOUNT) = 4.152543 FINAL PRICEIn classic mode the result will be 4.15...That is why i'm not agree with the way how PS calculate the specific price...Any idea? Do you think it's a bug??? Link to comment Share on other sites More sharing options...
coeos.pro Posted March 11, 2011 Share Posted March 11, 2011 Hello,I'm ok with: 4.237288 (PRICE) – 4.237288*0.02(DISCOUNT) = 4.152543 FINAL PRICEbut in fact the calculation is made with rounded:4.24 - 2% = 4.1552 => 4.16rounding is 2 times, yes it's bug, you can signal it Link to comment Share on other sites More sharing options...
Josep Hidalgo Posted March 11, 2011 Author Share Posted March 11, 2011 how can/could/should I signal it??? Link to comment Share on other sites More sharing options...
coeos.pro Posted March 11, 2011 Share Posted March 11, 2011 Bug tracker : http://www.prestashop.com/bug_tracker/http://www.prestashop.com/bug_tracker/report/bug/EDIT : it 's perhaps not a bug, you can read this : http://www.prestashop.com/bug_tracker/view/7298/ Link to comment Share on other sites More sharing options...
Josep Hidalgo Posted March 11, 2011 Author Share Posted March 11, 2011 I think It's not the same...anyway, the bug number is 8274. 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