NEW : migration script from 4.0.0 to 5.0.0 and langs

This commit is contained in:
gauthier 2016-09-20 12:10:25 +02:00
parent a0ec91cb94
commit d508d44fef
3 changed files with 12 additions and 4 deletions

View File

@ -97,6 +97,13 @@ ALTER TABLE llx_product_lot_extrafields ADD INDEX idx_product_lot_extrafields (f
ALTER TABLE llx_website_page MODIFY content MEDIUMTEXT;
create table llx_product_stock_entrepot
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
tms timestamp,
fk_product integer NOT NULL,
fk_entrepot integer NOT NULL,
seuil_stock_alerte int(11) DEFAULT '0',
desiredstock int(11) DEFAULT '0',
import_key varchar(14) -- Import key
)ENGINE=innodb;

View File

@ -139,4 +139,5 @@ UseDispatchStatus=Use dispatch status (aprouve/refuse)
OptionMULTIPRICESIsOn=Option "several prices per segment" is on. It means a product has several selling price so value for sell can't be calculated
ProductStockWarehouseCreated=Stock limit for alert and desired optimal stock correctly created
ProductStockWarehouseUpdated=Stock limit for alert and desired optimal stock correctly updated
ProductStockWarehouseDeleted=Stock limit for alert and desired optimal stock correctly deleted
AddNewProductStockWarehouse=Set new limit for alert and desired optimal stock

View File

@ -149,7 +149,7 @@ if($action == 'delete_productstockwarehouse')
$pse = new ProductStockEntrepot($db);
$pse->fetch(GETPOST('fk_productstockwarehouse'));
$pse->delete($user);
if($pse->delete($user) > 0) setEventMessage($langs->trans('ProductStockWarehouseDeleted'));
$action = '';