[-] FO: Fix ecotax displayed on the quantity discounts tab with a change of base_price on the product page

This commit is contained in:
Rémi Gaillard
2013-03-06 18:02:13 +01:00
parent c864b21845
commit 789f6ee19c
2 changed files with 4 additions and 4 deletions
@@ -2884,6 +2884,7 @@ class AdminProductsControllerCore extends AdminController
{
$this->displayWarning($this->l('You must save this product before adding specific pricing'));
$product->id_tax_rules_group = (int)Product::getIdTaxRulesGroupMostUsed();
$data->assign('ecotax_tax_excl', 0);
}
// prices part
@@ -2895,7 +2896,6 @@ class AdminProductsControllerCore extends AdminController
'ecotaxTaxRate' => Tax::getProductEcotaxRate(),
'tax_exclude_taxe_option' => Tax::excludeTaxeOption(),
'ps_use_ecotax' => Configuration::get('PS_USE_ECOTAX'),
'ecotax_tax_excl' => 0
));
$product->price = Tools::convertPrice($product->price, $this->context->currency, true, $this->context);