[-] FO: Fix ecotax displayed on the quantity discounts tab with a change of base_price on the product page
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user