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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8520 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2011-09-13 08:07:34 +00:00
parent aba41c1078
commit 7564ceb76a
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;
}