[-] BO : Reinitialized H.T prices precision (decimals)

This commit is contained in:
François Gaillard
2011-12-19 15:58:03 +00:00
parent 5e35156f94
commit 5b083be970
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ function calcImpactPriceTI()
{
var tax = getTax();
var priceTE = parseFloat(document.getElementById('attribute_price').value.replace(/,/g, '.'));
var newPrice = Math.round(priceTE * ((tax / 100) + 1)*100)/100;
var newPrice = priceTE * ((tax / 100) + 1);
$('#attribute_priceTI').val((isNaN(newPrice) == true || newPrice < 0) ? '' : ps_round(newPrice.toFixed(6), 6));
var total = ps_round((parseFloat($('#attribute_priceTI').val())*parseInt($('#attribute_price_impact').val())+parseFloat($('#finalPrice').html())), 2);
if (isNaN(total) || total < 0)