removed from_quantity use from specific pricing

This commit is contained in:
Shreesh Arora
2022-06-22 20:19:58 +05:30
parent caa7398581
commit 2d0826109b
3 changed files with 3 additions and 25 deletions

View File

@@ -100,11 +100,6 @@ class AdminSpecificPriceRuleControllerCore extends AdminController
'align' => 'center',
'filter_key' => 'gl!name'
),
'from_quantity' => array(
'title' => $this->l('From quantity'),
'align' => 'center',
'class' => 'fixed-width-xs'
),
'reduction_type' => array(
'title' => $this->l('Reduction type'),
'align' => 'center',
@@ -221,13 +216,6 @@ class AdminSpecificPriceRuleControllerCore extends AdminController
'name' => 'name'
),
),
array(
'type' => 'text',
'label' => $this->l('From quantity'),
'name' => 'from_quantity',
'maxlength' => 10,
'required' => true,
),
array(
'type' => 'text',
'label' => $this->l('Price (tax excl.)'),
@@ -345,6 +333,7 @@ class AdminSpecificPriceRuleControllerCore extends AdminController
public function processSave()
{
$_POST['from_quantity'] = 1;
$_POST['price'] = Tools::getValue('leave_bprice_on') ? '-1' : Tools::getValue('price');
if (Validate::isLoadedObject(($object = parent::processSave()))) {
/** @var SpecificPriceRule $object */