PrestaShop/PrestaShop — pull request #2072 by juliendombret (2014-08-28 09:57:01+00:00)
Title: Update product.js

The previous calcule was wrong :
ex :
* TaxRate : 20
* Price : 120 tax inc.
old : 120 * ( 1/(1+20) / 100 ) = 0.05714
new : 120 / ( 1+(20/100) ) = 100

For the if statement : when shop is B2B, the priceWithDiscountsWithoutTax is already in tax exclude.

thanks to @Jitrixis