[-] BO : #PSTEST-165 : calculate price without or with tax
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11818 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-1
@@ -371,7 +371,7 @@ function formSubmit(e, button)
|
||||
getE(button).click();
|
||||
}
|
||||
}
|
||||
function noComma(elem)
|
||||
function noComma(elem)
|
||||
{
|
||||
getE(elem).value = getE(elem).value.replace(new RegExp(',', 'g'), '.');
|
||||
}
|
||||
|
||||
@@ -49,6 +49,15 @@ function formatPrice(price)
|
||||
return (Math.round(fixedToSix) == fixedToSix + 0.000001 ? fixedToSix + 0.000001 : fixedToSix);
|
||||
}
|
||||
|
||||
function calcPrice()
|
||||
{
|
||||
var priceType = $('#priceType').val();
|
||||
if (priceType == 'TE')
|
||||
calcPriceTI();
|
||||
else
|
||||
calcPriceTE();
|
||||
}
|
||||
|
||||
function calcPriceTI()
|
||||
{
|
||||
var tax = getTax();
|
||||
|
||||
Reference in New Issue
Block a user