Merge pull request #584 from Captain-FLAM/patch-3

[-] FO : product with declinaisons without reductions, reduction price is showed anyway
This commit is contained in:
Gregory Roussac
2013-07-26 00:58:00 -07:00
+1 -2
View File
@@ -312,7 +312,7 @@ function updateDisplay()
var taxExclPrice = (specific_currency ? product_specific_price.price : product_specific_price.price * currencyRate) + (selectedCombination['price'] * currencyRate);
if (!displayPrice && !noTaxForThisProduct)
productPriceDisplay = taxExclPrice * tax; // Need to be global => no var
productPriceDisplay = ps_round(taxExclPrice * tax, 2); // Need to be global => no var
else
productPriceDisplay = ps_round(taxExclPrice, 2); // Need to be global => no var
@@ -372,7 +372,6 @@ function updateDisplay()
$('#not_impacted_by_discount').hide();
productPriceDisplay -= reduction;
var tmp = productPriceDisplay * group_reduction;
productPriceDisplay = ps_round(productPriceDisplay * group_reduction, 2);
var ecotaxAmount = !displayPrice ? ps_round(selectedCombination['ecotax'] * (1 + ecotaxTax_rate / 100), 2) : selectedCombination['ecotax'];