[*] BO : add an available date when product is out of stock

This commit is contained in:
vChabot
2011-09-13 08:07:34 +00:00
parent ae697852cf
commit b8dfc344f2
11 changed files with 127 additions and 34 deletions
+4
View File
@@ -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;
}