[-] BO : Reinitialized H.T prices precision (decimals)
This commit is contained in:
1 parent
508d8ad1ce
commit
1f5a5d4159
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user