// Fixed 6-decimals price when tex excluded in BO #PSCFV-3778

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17018 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-27 13:45:18 +00:00
parent 5e8ca44e86
commit 17e71862ac
2 changed files with 6 additions and 8 deletions
@@ -37,11 +37,9 @@
if (!isNaN(element_price) && element_price > 0)
{
if (element_has_tax)
other_element_price = parseFloat(element_price / ((product_tax / 100) + 1));
other_element_price = parseFloat(element_price / ((product_tax / 100) + 1)).toFixed(6);
else
other_element_price = ps_round(parseFloat(element_price * ((product_tax / 100) + 1)), 2);
other_element_price = other_element_price.toFixed(2);
other_element_price = ps_round(parseFloat(element_price * ((product_tax / 100) + 1)), 2).toFixed(2);
}
$('#related_to_'+element.attr('name')).val(other_element_price);