// 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:
@@ -1336,6 +1336,7 @@ CREATE TABLE `PREFIX_product` (
|
||||
`cache_default_attribute` int(10) unsigned default NULL,
|
||||
`date_add` datetime NOT NULL,
|
||||
`date_upd` datetime NOT NULL,
|
||||
`advanced_stock_management` tinyint(1) default '0' NOT NULL,
|
||||
PRIMARY KEY (`id_product`),
|
||||
KEY `product_supplier` (`id_supplier`),
|
||||
KEY `product_manufacturer` (`id_manufacturer`),
|
||||
|
||||
@@ -276,6 +276,7 @@ ALTER TABLE `PREFIX_address` ADD COLUMN `id_warehouse` int(10) unsigned NOT NULL
|
||||
|
||||
ALTER TABLE `PREFIX_order_detail` ADD COLUMN `id_warehouse` int(10) unsigned NOT NULL default '0' AFTER `id_order_invoice`;
|
||||
|
||||
ALTER TABLE `PREFIX_product` ADD COLUMN `advanced_stock_management` tinyint(1) default '0' NOT NULL;
|
||||
|
||||
/* Update records after alter tables */
|
||||
/* PHP:update_stock_mvt_reasons(); */;
|
||||
|
||||
Reference in New Issue
Block a user