Merge pull request #24538 from atm-lena/develop_NEW_DefaultWorkstation_BomAndOfLine

Add fk_default_workstation  on bom line and mrp production
This commit is contained in:
Laurent Destailleur 2023-04-18 20:42:59 +02:00 committed by GitHub
commit b9a014cd06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 2 deletions

View File

@ -1732,6 +1732,12 @@ class BOMLine extends CommonObjectLine
*/
public $childBom = array();
/*
* Service Workstation
*/
public $fk_default_workstation;
/**
* Constructor

View File

@ -394,3 +394,6 @@ ALTER TABLE llx_c_email_templates add COLUMN defaultfortype smallint DEFAULT 0;
ALTER TABLE llx_mailing ADD COLUMN fk_user_modif integer AFTER fk_user_creat;
ALTER TABLE llx_mailing ADD COLUMN evenunsubscribe smallint DEFAULT 0;
ALTER TABLE llx_mailing ADD COLUMN name_from varchar(128) AFTER email_from;
ALTER TABLE llx_bom_bomline ADD COLUMN fk_default_workstation integer DEFAULT NULL;
ALTER TABLE llx_mrp_production ADD COLUMN fk_default_workstation integer DEFAULT NULL;

View File

@ -26,6 +26,7 @@ CREATE TABLE llx_bom_bomline(
disable_stock_change smallint DEFAULT 0,
efficiency double(24,8) NOT NULL DEFAULT 1,
fk_unit integer NULL,
position integer NOT NULL DEFAULT 0
position integer NOT NULL DEFAULT 0,
fk_default_workstation integer DEFAULT NULL
-- END MODULEBUILDER FIELDS
) ENGINE=innodb;

View File

@ -33,6 +33,7 @@ CREATE TABLE llx_mrp_production(
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
fk_user_creat integer NOT NULL,
fk_user_modif integer,
import_key varchar(14)
import_key varchar(14),
fk_default_workstation integer DEFAULT NULL
) ENGINE=innodb;

View File

@ -1744,6 +1744,11 @@ class MoLine extends CommonObjectLine
public $import_key;
public $fk_parent_line;
/*
* Service Workstation
*/
public $fk_default_workstation;
/**
* Constructor
*