IDEMPIERE-2416 Improvement to 2412 - Generate Production from Project - Add new core fields

This commit is contained in:
Chuck Boecking 2015-02-04 10:07:52 -05:00
parent 431c9d6d7d
commit e304cbc14e
10 changed files with 591 additions and 19 deletions

View File

@ -0,0 +1,186 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- Jan 21, 2015 2:33:53 PM UTC
-- https://idempiere.atlassian.net/browse/IDEMPIERE-2416 - Improve Generate Production from Project - add columns/fields
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure) VALUES (211814,0,'Production','Plan for producing a product','The Production uniquely identifies a Production Plan',434,'M_Production_ID',22,'N','N','N','N','N',0,'N',30,0,0,'Y',TO_DATE('2015-01-21 14:33:53','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-01-21 14:33:53','YYYY-MM-DD HH24:MI:SS'),100,1032,'N','N','U','N','N','N','Y','b7fa73b4-ea7f-4b3b-8cde-9e7d0bf31bb2','Y',0,'N','N')
;
-- Jan 21, 2015 2:34:42 PM UTC
UPDATE AD_Column SET FKConstraintName='MProduction_CProjectLine', FKConstraintType='N',Updated=TO_DATE('2015-01-21 14:34:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211814
;
-- Jan 21, 2015 2:34:42 PM UTC
ALTER TABLE C_ProjectLine ADD M_Production_ID NUMBER(10) DEFAULT NULL
;
-- Jan 21, 2015 2:34:42 PM UTC
ALTER TABLE C_ProjectLine ADD CONSTRAINT MProduction_CProjectLine FOREIGN KEY (M_Production_ID) REFERENCES m_production(m_production_id) DEFERRABLE INITIALLY DEFERRED
;
-- Jan 21, 2015 2:34:55 PM UTC
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType) VALUES (211815,0,'Trx Organization','Performing or initiating organization','The organization which performs or initiates this transaction (for another organization). The owning Organization may not be the transaction organization in a service bureau environment, with centralized services, and inter-organization transactions.',203,'AD_OrgTrx_ID',22,'N','N','N','N','N',0,'N',18,130,0,0,'Y',TO_DATE('2015-01-21 14:34:55','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-01-21 14:34:55','YYYY-MM-DD HH24:MI:SS'),100,112,'Y','N','U','N','N','N','Y','01a4a630-7218-4a18-b555-9c94d3b0cbf8','Y',0,'N','N','N')
;
-- Jan 21, 2015 2:35:01 PM UTC
UPDATE AD_Column SET FKConstraintName='ADOrgTrx_CProject', FKConstraintType='N',Updated=TO_DATE('2015-01-21 14:35:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211815
;
-- Jan 21, 2015 2:35:01 PM UTC
ALTER TABLE C_Project ADD AD_OrgTrx_ID NUMBER(10) DEFAULT NULL
;
-- Jan 21, 2015 2:35:01 PM UTC
ALTER TABLE C_Project ADD CONSTRAINT ADOrgTrx_CProject FOREIGN KEY (AD_OrgTrx_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED
;
-- Jan 21, 2015 2:35:29 PM UTC
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType) VALUES (211816,0,'Activity','Business Activity','Activities indicate tasks that are performed and used to utilize Activity based Costing',203,'C_Activity_ID',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_DATE('2015-01-21 14:35:29','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-01-21 14:35:29','YYYY-MM-DD HH24:MI:SS'),100,1005,'Y','N','U','N','N','N','Y','3185bbca-7ff6-48c7-8c89-85d53c4e6226','Y',0,'N','N','N')
;
-- Jan 21, 2015 2:35:36 PM UTC
UPDATE AD_Column SET FKConstraintName='CActivity_CProject', FKConstraintType='N',Updated=TO_DATE('2015-01-21 14:35:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211816
;
-- Jan 21, 2015 2:35:36 PM UTC
ALTER TABLE C_Project ADD C_Activity_ID NUMBER(10) DEFAULT NULL
;
-- Jan 21, 2015 2:35:36 PM UTC
ALTER TABLE C_Project ADD CONSTRAINT CActivity_CProject FOREIGN KEY (C_Activity_ID) REFERENCES c_activity(c_activity_id) DEFERRABLE INITIALLY DEFERRED
;
-- Jan 21, 2015 2:36:11 PM UTC
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure) VALUES (211817,0,'Project Phase','Phase of a Project',325,'C_ProjectPhase_ID',10,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_DATE('2015-01-21 14:36:10','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-01-21 14:36:10','YYYY-MM-DD HH24:MI:SS'),100,2073,'N','N','U','N','N','N','Y','1f63af31-8b20-4738-af31-6c6d11a4f7a6','Y',0,'N','N')
;
-- Jan 21, 2015 2:36:12 PM UTC
UPDATE AD_Column SET FKConstraintName='CProjectPhase_MProduction', FKConstraintType='N',Updated=TO_DATE('2015-01-21 14:36:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211817
;
-- Jan 21, 2015 2:36:12 PM UTC
ALTER TABLE M_Production ADD C_ProjectPhase_ID NUMBER(10) DEFAULT NULL
;
-- Jan 21, 2015 2:36:12 PM UTC
ALTER TABLE M_Production ADD CONSTRAINT CProjectPhase_MProduction FOREIGN KEY (C_ProjectPhase_ID) REFERENCES c_projectphase(c_projectphase_id) DEFERRABLE INITIALLY DEFERRED
;
-- Jan 21, 2015 2:36:34 PM UTC
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure) VALUES (211818,0,'Project Task','Actual Project Task in a Phase','A Project Task in a Project Phase represents the actual work.',325,'C_ProjectTask_ID',10,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_DATE('2015-01-21 14:36:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-01-21 14:36:34','YYYY-MM-DD HH24:MI:SS'),100,2074,'N','N','U','N','N','N','Y','1826bb1e-7578-4a0f-96b2-e07e7a663ea9','Y',0,'N','N')
;
-- Jan 21, 2015 2:36:40 PM UTC
UPDATE AD_Column SET FKConstraintName='CProjectTask_MProduction', FKConstraintType='N',Updated=TO_DATE('2015-01-21 14:36:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211818
;
-- Jan 21, 2015 2:36:40 PM UTC
ALTER TABLE M_Production ADD C_ProjectTask_ID NUMBER(10) DEFAULT NULL
;
-- Jan 21, 2015 2:36:40 PM UTC
ALTER TABLE M_Production ADD CONSTRAINT CProjectTask_MProduction FOREIGN KEY (C_ProjectTask_ID) REFERENCES c_projecttask(c_projecttask_id) DEFERRABLE INITIALLY DEFERRED
;
-- Jan 21, 2015 2:38:15 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203482,'Production','Plan for producing a product','The Production uniquely identifies a Production Plan',797,211814,'Y',0,230,0,'N','N','N','N',0,0,'Y',TO_DATE('2015-01-21 14:38:15','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-01-21 14:38:15','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','df80dd06-76ac-4335-a036-3778748f607b','Y',230,1,1,1,'N','N','N')
;
-- Jan 21, 2015 2:39:38 PM UTC
UPDATE AD_Field SET SeqNo=230, ColumnSpan=2,Updated=TO_DATE('2015-01-21 14:39:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203482
;
-- Jan 21, 2015 2:40:21 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203483,'Production','Plan for producing a product','The Production uniquely identifies a Production Plan',799,211814,'Y',0,230,0,'N','N','N','N',0,0,'Y',TO_DATE('2015-01-21 14:40:20','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-01-21 14:40:20','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','4f1a024e-fb20-4691-ac6d-751c56952792','Y',230,1,1,1,'N','N','N')
;
-- Jan 21, 2015 2:40:34 PM UTC
UPDATE AD_Field SET SeqNo=230, ColumnSpan=2,Updated=TO_DATE('2015-01-21 14:40:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203483
;
-- Jan 21, 2015 2:40:58 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203484,'Production','Plan for producing a product','The Production uniquely identifies a Production Plan',796,211814,'Y',0,230,0,'N','N','N','N',0,0,'Y',TO_DATE('2015-01-21 14:40:58','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-01-21 14:40:58','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','7ea1e1e8-6825-4064-88ae-94cedf02154c','Y',230,1,1,1,'N','N','N')
;
-- Jan 21, 2015 2:41:11 PM UTC
UPDATE AD_Field SET SeqNo=230, ColumnSpan=2,Updated=TO_DATE('2015-01-21 14:41:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203484
;
-- Jan 21, 2015 2:42:24 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203485,'Trx Organization','Performing or initiating organization','The organization which performs or initiates this transaction (for another organization). The owning Organization may not be the transaction organization in a service bureau environment, with centralized services, and inter-organization transactions.',157,211815,'Y',0,360,0,'N','N','N','N',0,0,'Y',TO_DATE('2015-01-21 14:42:24','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-01-21 14:42:24','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','a136ba29-279f-48df-a909-882cae97769a','Y',360,1,1,1,'N','N','N')
;
-- Jan 21, 2015 2:42:42 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203486,'Activity','Business Activity','Activities indicate tasks that are performed and used to utilize Activity based Costing',157,211816,'Y',0,370,0,'N','N','N','N',0,0,'Y',TO_DATE('2015-01-21 14:42:42','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-01-21 14:42:42','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','c434e4e3-4bb3-4e92-874d-e95ce9ca62fd','Y',370,1,1,1,'N','N','N')
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=250, XPosition=1, ColumnSpan=2,Updated=TO_DATE('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203485
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=260, XPosition=4, ColumnSpan=2,Updated=TO_DATE('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203486
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=270,Updated=TO_DATE('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4455
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=280,Updated=TO_DATE('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4457
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=290,Updated=TO_DATE('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4456
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=300,Updated=TO_DATE('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13024
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=310,Updated=TO_DATE('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3066
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=320,Updated=TO_DATE('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6550
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=330,Updated=TO_DATE('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6544
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=340,Updated=TO_DATE('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6547
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=350,Updated=TO_DATE('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6549
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=360,Updated=TO_DATE('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6545
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=370,Updated=TO_DATE('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8237
;
-- Jan 21, 2015 2:46:18 PM UTC
UPDATE AD_Field SET DisplayLogic='@$Element_OT@=Y',Updated=TO_DATE('2015-01-21 14:46:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203485
;
-- Jan 21, 2015 2:46:52 PM UTC
UPDATE AD_Field SET DisplayLogic='@$Element_AY@=''Y''',Updated=TO_DATE('2015-01-21 14:46:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203486
;
-- Jan 21, 2015 2:48:22 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203487,'Project Phase','Phase of a Project',53344,211817,'N',0,260,0,'N','N','N','N',0,0,'Y',TO_DATE('2015-01-21 14:48:21','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-01-21 14:48:21','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','ac5a3ec0-fd0f-4dc8-bda2-71c3fc5f3592','Y',230,1,1,1,'N','N','N')
;
-- Jan 21, 2015 2:48:34 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203488,'Project Task','Actual Project Task in a Phase','A Project Task in a Project Phase represents the actual work.',53344,211818,'N',0,270,0,'N','N','N','N',0,0,'Y',TO_DATE('2015-01-21 14:48:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-01-21 14:48:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','baef708a-e28b-4e9c-9667-1108f931b12e','Y',240,1,1,1,'N','N','N')
;
SELECT register_migration_script('201501210001_IDEMPIERE-2416.sql') FROM dual
;

View File

@ -0,0 +1,183 @@
-- Jan 21, 2015 2:33:53 PM UTC
-- https://idempiere.atlassian.net/browse/IDEMPIERE-2416 - Improve Generate Production from Project - add columns/fields
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure) VALUES (211814,0,'Production','Plan for producing a product','The Production uniquely identifies a Production Plan',434,'M_Production_ID',22,'N','N','N','N','N',0,'N',30,0,0,'Y',TO_TIMESTAMP('2015-01-21 14:33:53','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-01-21 14:33:53','YYYY-MM-DD HH24:MI:SS'),100,1032,'N','N','U','N','N','N','Y','b7fa73b4-ea7f-4b3b-8cde-9e7d0bf31bb2','Y',0,'N','N')
;
-- Jan 21, 2015 2:34:42 PM UTC
UPDATE AD_Column SET FKConstraintName='MProduction_CProjectLine', FKConstraintType='N',Updated=TO_TIMESTAMP('2015-01-21 14:34:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211814
;
-- Jan 21, 2015 2:34:42 PM UTC
ALTER TABLE C_ProjectLine ADD COLUMN M_Production_ID NUMERIC(10) DEFAULT NULL
;
-- Jan 21, 2015 2:34:42 PM UTC
ALTER TABLE C_ProjectLine ADD CONSTRAINT MProduction_CProjectLine FOREIGN KEY (M_Production_ID) REFERENCES m_production(m_production_id) DEFERRABLE INITIALLY DEFERRED
;
-- Jan 21, 2015 2:34:55 PM UTC
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType) VALUES (211815,0,'Trx Organization','Performing or initiating organization','The organization which performs or initiates this transaction (for another organization). The owning Organization may not be the transaction organization in a service bureau environment, with centralized services, and inter-organization transactions.',203,'AD_OrgTrx_ID',22,'N','N','N','N','N',0,'N',18,130,0,0,'Y',TO_TIMESTAMP('2015-01-21 14:34:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-01-21 14:34:55','YYYY-MM-DD HH24:MI:SS'),100,112,'Y','N','U','N','N','N','Y','01a4a630-7218-4a18-b555-9c94d3b0cbf8','Y',0,'N','N','N')
;
-- Jan 21, 2015 2:35:01 PM UTC
UPDATE AD_Column SET FKConstraintName='ADOrgTrx_CProject', FKConstraintType='N',Updated=TO_TIMESTAMP('2015-01-21 14:35:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211815
;
-- Jan 21, 2015 2:35:01 PM UTC
ALTER TABLE C_Project ADD COLUMN AD_OrgTrx_ID NUMERIC(10) DEFAULT NULL
;
-- Jan 21, 2015 2:35:01 PM UTC
ALTER TABLE C_Project ADD CONSTRAINT ADOrgTrx_CProject FOREIGN KEY (AD_OrgTrx_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED
;
-- Jan 21, 2015 2:35:29 PM UTC
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType) VALUES (211816,0,'Activity','Business Activity','Activities indicate tasks that are performed and used to utilize Activity based Costing',203,'C_Activity_ID',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2015-01-21 14:35:29','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-01-21 14:35:29','YYYY-MM-DD HH24:MI:SS'),100,1005,'Y','N','U','N','N','N','Y','3185bbca-7ff6-48c7-8c89-85d53c4e6226','Y',0,'N','N','N')
;
-- Jan 21, 2015 2:35:36 PM UTC
UPDATE AD_Column SET FKConstraintName='CActivity_CProject', FKConstraintType='N',Updated=TO_TIMESTAMP('2015-01-21 14:35:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211816
;
-- Jan 21, 2015 2:35:36 PM UTC
ALTER TABLE C_Project ADD COLUMN C_Activity_ID NUMERIC(10) DEFAULT NULL
;
-- Jan 21, 2015 2:35:36 PM UTC
ALTER TABLE C_Project ADD CONSTRAINT CActivity_CProject FOREIGN KEY (C_Activity_ID) REFERENCES c_activity(c_activity_id) DEFERRABLE INITIALLY DEFERRED
;
-- Jan 21, 2015 2:36:11 PM UTC
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure) VALUES (211817,0,'Project Phase','Phase of a Project',325,'C_ProjectPhase_ID',10,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2015-01-21 14:36:10','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-01-21 14:36:10','YYYY-MM-DD HH24:MI:SS'),100,2073,'N','N','U','N','N','N','Y','1f63af31-8b20-4738-af31-6c6d11a4f7a6','Y',0,'N','N')
;
-- Jan 21, 2015 2:36:12 PM UTC
UPDATE AD_Column SET FKConstraintName='CProjectPhase_MProduction', FKConstraintType='N',Updated=TO_TIMESTAMP('2015-01-21 14:36:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211817
;
-- Jan 21, 2015 2:36:12 PM UTC
ALTER TABLE M_Production ADD COLUMN C_ProjectPhase_ID NUMERIC(10) DEFAULT NULL
;
-- Jan 21, 2015 2:36:12 PM UTC
ALTER TABLE M_Production ADD CONSTRAINT CProjectPhase_MProduction FOREIGN KEY (C_ProjectPhase_ID) REFERENCES c_projectphase(c_projectphase_id) DEFERRABLE INITIALLY DEFERRED
;
-- Jan 21, 2015 2:36:34 PM UTC
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure) VALUES (211818,0,'Project Task','Actual Project Task in a Phase','A Project Task in a Project Phase represents the actual work.',325,'C_ProjectTask_ID',10,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2015-01-21 14:36:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-01-21 14:36:34','YYYY-MM-DD HH24:MI:SS'),100,2074,'N','N','U','N','N','N','Y','1826bb1e-7578-4a0f-96b2-e07e7a663ea9','Y',0,'N','N')
;
-- Jan 21, 2015 2:36:40 PM UTC
UPDATE AD_Column SET FKConstraintName='CProjectTask_MProduction', FKConstraintType='N',Updated=TO_TIMESTAMP('2015-01-21 14:36:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211818
;
-- Jan 21, 2015 2:36:40 PM UTC
ALTER TABLE M_Production ADD COLUMN C_ProjectTask_ID NUMERIC(10) DEFAULT NULL
;
-- Jan 21, 2015 2:36:40 PM UTC
ALTER TABLE M_Production ADD CONSTRAINT CProjectTask_MProduction FOREIGN KEY (C_ProjectTask_ID) REFERENCES c_projecttask(c_projecttask_id) DEFERRABLE INITIALLY DEFERRED
;
-- Jan 21, 2015 2:38:15 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203482,'Production','Plan for producing a product','The Production uniquely identifies a Production Plan',797,211814,'Y',0,230,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2015-01-21 14:38:15','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-01-21 14:38:15','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','df80dd06-76ac-4335-a036-3778748f607b','Y',230,1,1,1,'N','N','N')
;
-- Jan 21, 2015 2:39:38 PM UTC
UPDATE AD_Field SET SeqNo=230, ColumnSpan=2,Updated=TO_TIMESTAMP('2015-01-21 14:39:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203482
;
-- Jan 21, 2015 2:40:21 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203483,'Production','Plan for producing a product','The Production uniquely identifies a Production Plan',799,211814,'Y',0,230,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2015-01-21 14:40:20','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-01-21 14:40:20','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','4f1a024e-fb20-4691-ac6d-751c56952792','Y',230,1,1,1,'N','N','N')
;
-- Jan 21, 2015 2:40:34 PM UTC
UPDATE AD_Field SET SeqNo=230, ColumnSpan=2,Updated=TO_TIMESTAMP('2015-01-21 14:40:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203483
;
-- Jan 21, 2015 2:40:58 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203484,'Production','Plan for producing a product','The Production uniquely identifies a Production Plan',796,211814,'Y',0,230,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2015-01-21 14:40:58','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-01-21 14:40:58','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','7ea1e1e8-6825-4064-88ae-94cedf02154c','Y',230,1,1,1,'N','N','N')
;
-- Jan 21, 2015 2:41:11 PM UTC
UPDATE AD_Field SET SeqNo=230, ColumnSpan=2,Updated=TO_TIMESTAMP('2015-01-21 14:41:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203484
;
-- Jan 21, 2015 2:42:24 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203485,'Trx Organization','Performing or initiating organization','The organization which performs or initiates this transaction (for another organization). The owning Organization may not be the transaction organization in a service bureau environment, with centralized services, and inter-organization transactions.',157,211815,'Y',0,360,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2015-01-21 14:42:24','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-01-21 14:42:24','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','a136ba29-279f-48df-a909-882cae97769a','Y',360,1,1,1,'N','N','N')
;
-- Jan 21, 2015 2:42:42 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203486,'Activity','Business Activity','Activities indicate tasks that are performed and used to utilize Activity based Costing',157,211816,'Y',0,370,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2015-01-21 14:42:42','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-01-21 14:42:42','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','c434e4e3-4bb3-4e92-874d-e95ce9ca62fd','Y',370,1,1,1,'N','N','N')
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=250, XPosition=1, ColumnSpan=2,Updated=TO_TIMESTAMP('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203485
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=260, XPosition=4, ColumnSpan=2,Updated=TO_TIMESTAMP('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203486
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=270,Updated=TO_TIMESTAMP('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4455
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=280,Updated=TO_TIMESTAMP('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4457
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=290,Updated=TO_TIMESTAMP('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4456
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=300,Updated=TO_TIMESTAMP('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13024
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=310,Updated=TO_TIMESTAMP('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3066
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=320,Updated=TO_TIMESTAMP('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6550
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=330,Updated=TO_TIMESTAMP('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6544
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=340,Updated=TO_TIMESTAMP('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6547
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=350,Updated=TO_TIMESTAMP('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6549
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=360,Updated=TO_TIMESTAMP('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6545
;
-- Jan 21, 2015 2:44:55 PM UTC
UPDATE AD_Field SET SeqNo=370,Updated=TO_TIMESTAMP('2015-01-21 14:44:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8237
;
-- Jan 21, 2015 2:46:18 PM UTC
UPDATE AD_Field SET DisplayLogic='@$Element_OT@=Y',Updated=TO_TIMESTAMP('2015-01-21 14:46:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203485
;
-- Jan 21, 2015 2:46:52 PM UTC
UPDATE AD_Field SET DisplayLogic='@$Element_AY@=''Y''',Updated=TO_TIMESTAMP('2015-01-21 14:46:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203486
;
-- Jan 21, 2015 2:48:22 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203487,'Project Phase','Phase of a Project',53344,211817,'N',0,260,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2015-01-21 14:48:21','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-01-21 14:48:21','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','ac5a3ec0-fd0f-4dc8-bda2-71c3fc5f3592','Y',230,1,1,1,'N','N','N')
;
-- Jan 21, 2015 2:48:34 PM UTC
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField) VALUES (203488,'Project Task','Actual Project Task in a Phase','A Project Task in a Project Phase represents the actual work.',53344,211818,'N',0,270,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2015-01-21 14:48:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-01-21 14:48:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','U','baef708a-e28b-4e9c-9667-1108f931b12e','Y',240,1,1,1,'N','N','N')
;
SELECT register_migration_script('201501210000_IDEMPIERE-2416.sql') FROM dual
;

View File

@ -131,12 +131,11 @@ public class ProjectGenProduction extends SvrProcess
return;
}
// TODO - need to add C_ProjectLine.M_Production_ID
// if (projectLine.getM_Production_ID() != 0)
// {
// addLog (projectLine.getLine() ,null,null, "Line was produced previously");
// return;
// }
if (projectLine.getM_Production_ID() != 0)
{
addLog (projectLine.getLine() ,null,null, "Line was produced previously");
return;
}
// Create to Production
MProduction production = null;
@ -155,9 +154,8 @@ public class ProjectGenProduction extends SvrProcess
production.saveEx();
// update ProjectLine
//TODO - need to add C_ProjectLine.M_Production_ID
//projectLine.setM_Production_ID(production.getM_Production_ID());
//projectLine.saveEx();
projectLine.setM_Production_ID(production.getM_Production_ID());
projectLine.saveEx();
addBufferLog (production.getM_Production_ID(),
production.getMovementDate(),

View File

@ -62,6 +62,19 @@ public interface I_C_Project
*/
public int getAD_Org_ID();
/** Column name AD_OrgTrx_ID */
public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID";
/** Set Trx Organization.
* Performing or initiating organization
*/
public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);
/** Get Trx Organization.
* Performing or initiating organization
*/
public int getAD_OrgTrx_ID();
/** Column name AD_User_ID */
public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
@ -77,6 +90,21 @@ public interface I_C_Project
public org.compiere.model.I_AD_User getAD_User() throws RuntimeException;
/** Column name C_Activity_ID */
public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID";
/** Set Activity.
* Business Activity
*/
public void setC_Activity_ID (int C_Activity_ID);
/** Get Activity.
* Business Activity
*/
public int getC_Activity_ID();
public org.compiere.model.I_C_Activity getC_Activity() throws RuntimeException;
/** Column name C_BPartner_ID */
public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";

View File

@ -333,6 +333,21 @@ public interface I_C_ProjectLine
public org.compiere.model.I_M_Product getM_Product() throws RuntimeException;
/** Column name M_Production_ID */
public static final String COLUMNNAME_M_Production_ID = "M_Production_ID";
/** Set Production.
* Plan for producing a product
*/
public void setM_Production_ID (int M_Production_ID);
/** Get Production.
* Plan for producing a product
*/
public int getM_Production_ID();
public org.compiere.model.I_M_Production getM_Production() throws RuntimeException;
/** Column name PlannedAmt */
public static final String COLUMNNAME_PlannedAmt = "PlannedAmt";

View File

@ -150,6 +150,36 @@ public interface I_M_Production
public org.compiere.model.I_C_Project getC_Project() throws RuntimeException;
/** Column name C_ProjectPhase_ID */
public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID";
/** Set Project Phase.
* Phase of a Project
*/
public void setC_ProjectPhase_ID (int C_ProjectPhase_ID);
/** Get Project Phase.
* Phase of a Project
*/
public int getC_ProjectPhase_ID();
public org.compiere.model.I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException;
/** Column name C_ProjectTask_ID */
public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID";
/** Set Project Task.
* Actual Project Task in a Phase
*/
public void setC_ProjectTask_ID (int C_ProjectTask_ID);
/** Get Project Task.
* Actual Project Task in a Phase
*/
public int getC_ProjectTask_ID();
public org.compiere.model.I_C_ProjectTask getC_ProjectTask() throws RuntimeException;
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";

View File

@ -78,13 +78,10 @@ public class MProduction extends X_M_Production implements DocAction {
setC_Project_ID(line.getC_Project_ID());
setC_BPartner_ID(project.getC_BPartner_ID());
setC_Campaign_ID(project.getC_Campaign_ID());
//TODO: add AD_OrgTrx_ID to C_Project and C_ProjectLine table
//setAD_OrgTrx_ID(project.getAD_OrgTrx_ID());
//TODO: add C_Activity_ID to C_Project and C_ProjectLine table
//setC_Activity_ID(project.getC_Activity_ID);
//TODO: add C_ProjectPhase_ID and C_ProjectTask_ID to M_Production table
//setC_ProjectPhase_ID(line.getC_ProjectPhase_ID());
//setC_ProjectTask_ID(line.getC_ProjectTask_ID());
setAD_OrgTrx_ID(project.getAD_OrgTrx_ID());
setC_Activity_ID(project.getC_Activity_ID());
setC_ProjectPhase_ID(line.getC_ProjectPhase_ID());
setC_ProjectTask_ID(line.getC_ProjectTask_ID());
setMovementDate( Env.getContextAsDate(p_ctx, "#Date"));
}

View File

@ -33,7 +33,7 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent
/**
*
*/
private static final long serialVersionUID = 20141030L;
private static final long serialVersionUID = 20150122L;
/** Standard Constructor */
public X_C_Project (Properties ctx, int C_Project_ID, String trxName)
@ -92,6 +92,29 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent
return sb.toString();
}
/** Set Trx Organization.
@param AD_OrgTrx_ID
Performing or initiating organization
*/
public void setAD_OrgTrx_ID (int AD_OrgTrx_ID)
{
if (AD_OrgTrx_ID < 1)
set_Value (COLUMNNAME_AD_OrgTrx_ID, null);
else
set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID));
}
/** Get Trx Organization.
@return Performing or initiating organization
*/
public int getAD_OrgTrx_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.compiere.model.I_AD_User getAD_User() throws RuntimeException
{
return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_Name)
@ -120,6 +143,34 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent
return ii.intValue();
}
public org.compiere.model.I_C_Activity getC_Activity() throws RuntimeException
{
return (org.compiere.model.I_C_Activity)MTable.get(getCtx(), org.compiere.model.I_C_Activity.Table_Name)
.getPO(getC_Activity_ID(), get_TrxName()); }
/** Set Activity.
@param C_Activity_ID
Business Activity
*/
public void setC_Activity_ID (int C_Activity_ID)
{
if (C_Activity_ID < 1)
set_Value (COLUMNNAME_C_Activity_ID, null);
else
set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID));
}
/** Get Activity.
@return Business Activity
*/
public int getC_Activity_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
{
return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)

View File

@ -32,7 +32,7 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent
/**
*
*/
private static final long serialVersionUID = 20141030L;
private static final long serialVersionUID = 20150122L;
/** Standard Constructor */
public X_C_ProjectLine (Properties ctx, int C_ProjectLine_ID, String trxName)
@ -511,6 +511,34 @@ public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent
return ii.intValue();
}
public org.compiere.model.I_M_Production getM_Production() throws RuntimeException
{
return (org.compiere.model.I_M_Production)MTable.get(getCtx(), org.compiere.model.I_M_Production.Table_Name)
.getPO(getM_Production_ID(), get_TrxName()); }
/** Set Production.
@param M_Production_ID
Plan for producing a product
*/
public void setM_Production_ID (int M_Production_ID)
{
if (M_Production_ID < 1)
set_ValueNoCheck (COLUMNNAME_M_Production_ID, null);
else
set_ValueNoCheck (COLUMNNAME_M_Production_ID, Integer.valueOf(M_Production_ID));
}
/** Get Production.
@return Plan for producing a product
*/
public int getM_Production_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_M_Production_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Planned Amount.
@param PlannedAmt
Planned amount for this project

View File

@ -33,7 +33,7 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent
/**
*
*/
private static final long serialVersionUID = 20141030L;
private static final long serialVersionUID = 20150122L;
/** Standard Constructor */
public X_M_Production (Properties ctx, int M_Production_ID, String trxName)
@ -247,6 +247,62 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent
return ii.intValue();
}
public org.compiere.model.I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException
{
return (org.compiere.model.I_C_ProjectPhase)MTable.get(getCtx(), org.compiere.model.I_C_ProjectPhase.Table_Name)
.getPO(getC_ProjectPhase_ID(), get_TrxName()); }
/** Set Project Phase.
@param C_ProjectPhase_ID
Phase of a Project
*/
public void setC_ProjectPhase_ID (int C_ProjectPhase_ID)
{
if (C_ProjectPhase_ID < 1)
set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, null);
else
set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID));
}
/** Get Project Phase.
@return Phase of a Project
*/
public int getC_ProjectPhase_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectPhase_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.compiere.model.I_C_ProjectTask getC_ProjectTask() throws RuntimeException
{
return (org.compiere.model.I_C_ProjectTask)MTable.get(getCtx(), org.compiere.model.I_C_ProjectTask.Table_Name)
.getPO(getC_ProjectTask_ID(), get_TrxName()); }
/** Set Project Task.
@param C_ProjectTask_ID
Actual Project Task in a Phase
*/
public void setC_ProjectTask_ID (int C_ProjectTask_ID)
{
if (C_ProjectTask_ID < 1)
set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, null);
else
set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID));
}
/** Get Project Task.
@return Actual Project Task in a Phase
*/
public int getC_ProjectTask_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectTask_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Create lines from.
@param CreateFrom
Process which will generate a new document lines based on an existing document