[-] BO : fix #PSTEST-388

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12389 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-01-12 14:01:07 +00:00
parent a185fd3b0a
commit 381f399f45
4 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ function calcPriceTE()
var priceTI = parseFloat(document.getElementById('priceTI').value.replace(/,/g, '.'));
var newPrice = ps_round(priceTI - getEcotaxTaxIncluded(), 2) / ((tax / 100) + 1);
document.getElementById('priceTE').value = (isNaN(newPrice) == true || newPrice < 0) ? '' :
ps_round(newPrice.toFixed(6), 6);
ps_round(newPrice.toFixed(2), 2);
document.getElementById('finalPrice').innerHTML = (isNaN(newPrice) == true || newPrice < 0) ? '' :
ps_round(priceTI.toFixed(2), 2);
document.getElementById('finalPriceWithoutTax').innerHTML = (isNaN(newPrice) == true || newPrice < 0) ? '' :