[*] Classes : fix bug #PSFV-162 - Remove unused variables

This commit is contained in:
tDidierjean
2012-01-04 13:41:03 +00:00
parent 4c4f6da82a
commit 2f83e37cff
4 changed files with 4 additions and 16 deletions
+4 -3
View File
@@ -546,9 +546,10 @@ class ProductControllerCore extends FrontController
{
if ($row['reduction_type'] == 'amount')
{
$reduction_amount = $row['reduction'];
if (!$row['id_currency'])
$reduction_amount = Tools::convertPrice($reduction_amount, $this->context->currency->id);
// Commenting unused code, delete if useless
// $reduction_amount = $row['reduction'];
// if (!$row['id_currency'])
// $reduction_amount = Tools::convertPrice($reduction_amount, $this->context->currency->id);
$row['real_value'] = Product::$_taxCalculationMethod == PS_TAX_INC ? $row['reduction'] : $row['reduction'] / (1 + $tax_rate / 100);
}
else