From 0d875d167709cdf440b5d1041fe47caaaf54c2f2 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Thu, 29 Dec 2011 13:13:42 +0000 Subject: [PATCH] // fixed js error related to #PSTEST-166 --- js/price.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/price.js b/js/price.js index 91dfdec4b..a87620db5 100644 --- a/js/price.js +++ b/js/price.js @@ -70,8 +70,8 @@ function calcPriceTI() document.getElementById('finalPriceWithoutTax').innerHTML = (isNaN(priceTE) == true || priceTE < 0) ? '' : (ps_round(priceTE, 2) + getEcotaxTaxExcluded()).toFixed(2); calcReduction(); - document.getElementById('priceTI').value = (parseFloat(document.getElementById('priceTI').value) + getEcotaxTaxIncluded()).toFixed(2); - document.getElementById('finalPrice').innerHTML = parseFloat(document.getElementById('priceTI').value.toFixed(2)); + $('#priceTI').value = (parseFloat($('#priceTI').val()) + getEcotaxTaxIncluded()).toFixed(2); + $('#finalPrice').innerHTML = parseFloat($('#priceTI').val()).toFixed(2); } function calcPriceTE()