// Fixed bugs when editing Warehouses & Suppliers for a product

This commit is contained in:
bMancone committed 2011-12-14 16:52:33 +00:00
1 parent 967749db9f
commit c686f0a876
2 files changed
+7 -2

No files matched your search

+6
View File
@@ -188,6 +188,12 @@ class ProductCore extends ObjectModel
/*** @var array Tags */ /*** @var array Tags */
public $tags; public $tags;
/*
* @since 1.5.0
* @var boolean Product stock management type
*/
public $advanced_stock_management;
public $isFullyLoaded = false; public $isFullyLoaded = false;
public $cache_is_pack; public $cache_is_pack;
+1 -2
View File
@@ -66,13 +66,12 @@ class ProductSupplierCore extends ObjectModel
'table' => 'product_supplier', 'table' => 'product_supplier',
'primary' => 'id_product_supplier', 'primary' => 'id_product_supplier',
'fields' => array( 'fields' => array(
'product_supplier_reference' => array('type' => self::TYPE_INT, 'validate' => 'isReference'), 'product_supplier_reference' => array('type' => self::TYPE_INT, 'validate' => 'isReference', 'size' => 32),
'id_product' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_product' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
'id_product_attribute' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_product_attribute' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
'id_supplier' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_supplier' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
'product_supplier_price_te' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'product_supplier_price_te' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'),
'id_currency' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_currency' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
'supplier_reference' => array('type' => self::TYPE_STRING, 'size' => 32),
), ),
); );