// Added one field in Product object, so one product can be managed independantly from the stock management (advanced) if necessary

This commit is contained in:
bMancone
2011-12-14 18:49:30 +00:00
parent 59741d4ad8
commit 6319bb0372
5 changed files with 54 additions and 5 deletions
+7
View File
@@ -188,6 +188,12 @@ class ProductCore extends ObjectModel
/*** @var array Tags */
public $tags;
/**
* @since 1.5.0
* @var boolean Tells if the product uses the advanced stock management
*/
public $advanced_stock_management;
public $isFullyLoaded = false;
public $cache_is_pack;
@@ -253,6 +259,7 @@ class ProductCore extends ObjectModel
'cache_has_attachments' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat'),
'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat'),
'advanced_stock_management' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
// Lang fields
'meta_description' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'size' => 255),