[*] BO : add an available date when product is out of stock
This commit is contained in:
@@ -51,6 +51,8 @@ class CombinationCore extends ObjectModel
|
||||
|
||||
public $default_on;
|
||||
|
||||
public $available_date_combi;
|
||||
|
||||
protected $fieldsRequired = array(
|
||||
'id_product',
|
||||
);
|
||||
@@ -76,6 +78,7 @@ class CombinationCore extends ObjectModel
|
||||
'quantity' => 'isUnsignedInt',
|
||||
'weight' => 'isFloat',
|
||||
'default_on' => 'isBool',
|
||||
'available_date_combi' => 'isDate',
|
||||
);
|
||||
|
||||
protected $table = 'product_attribute';
|
||||
@@ -108,6 +111,7 @@ class CombinationCore extends ObjectModel
|
||||
$fields['quantity'] = (int)($this->quantity);
|
||||
$fields['weight'] = pSQL($this->weight);
|
||||
$fields['default_on'] = (int)($this->default_on);
|
||||
$fields['available_date_combi'] = pSQL($this->available_date_combi);
|
||||
return $fields;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user