fix bug in price.toFixed in tools.js

This commit is contained in:
root 2017-03-13 15:07:41 +00:00
parent 68a4ded2b2
commit 6e7d018592
3 changed files with 2 additions and 4348 deletions

4346
cache/__class_index.php vendored

File diff suppressed because it is too large Load Diff

View File

@ -60,7 +60,7 @@ function formatCurrency(price, currencyFormat, currencySign, currencyBlank)
{
// if you modified this function, don't forget to modify the PHP function displayPrice (in the Tools.php class)
var blank = '';
price = parseFloat(price.toFixed(10));
price = parseFloat((price*1).toFixed(10));
price = ps_round(price, priceDisplayPrecision);
if (currencyBlank > 0)
blank = ' ';

View File

@ -61,7 +61,7 @@ function formatCurrency(price, currencyFormat, currencySign, currencyBlank, ttc)
taxeTag = (typeof ttc === 'boolean' && ttc == true) ? ' TTC' : ' HT';
var blank = '';
price = parseFloat(price.toFixed(10));
price = parseFloat((price*1).toFixed(10));
price = ps_round(price, priceDisplayPrecision);
if (currencyBlank > 0)
blank = ' ';