IDEMPIERE-3338 Document Status Indicator / integrate dashboard panel for Document Status (replaces Activities) - contributed by Adaxa - integrated to idempiere by Murilo - peer review and improvements by Carlos Ruiz
This commit is contained in:
parent
874ede8dce
commit
28505bf01b
|
@ -0,0 +1,958 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
CREATE TABLE pa_documentstatus ( pa_documentstatus_id number(10) NOT NULL, ad_client_id number(10) NOT NULL, ad_org_id number(10) NOT NULL, ad_role_id number(10) NULL, ad_user_id number(10) NULL, c_project_id number(10) NULL, created date NOT NULL, createdby number(10) NOT NULL, updated date NOT NULL, updatedby number(10) NOT NULL, name varchar(60) NOT NULL, description varchar(255) NULL, isactive char(1) DEFAULT 'Y' NOT NULL, seqno number(10) NOT NULL, name_printcolor_id number(10) NOT NULL, name_printfont_id number(10) NOT NULL, number_printcolor_id number(10) NOT NULL, number_printfont_id number(10) NOT NULL, ad_table_id number(10) NOT NULL, whereclause varchar(2000) NULL, ad_window_id number(10) NULL, ad_form_id number(10) DEFAULT NULL, CONSTRAINT pa_docstatus_active_check CHECK ((isactive IN ('Y', 'N'))), CONSTRAINT pa_documentstatus_key PRIMARY KEY (pa_documentstatus_id) );
|
||||
|
||||
-- IDEMPIERE-3338 - document status indicator
|
||||
-- 11/04/2017 18h49min47s BRT
|
||||
INSERT INTO AD_Table (AD_Table_ID,Name,TableName,LoadSeq,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,ImportTable,IsChangeLog,ReplicationType,CopyColumnsFromTable,IsCentrallyMaintained,AD_Table_UU,Processing,DatabaseViewDrop,CopyComponentsFromView) VALUES (200216,'Document Status','PA_DocumentStatus',0,'7',0,0,'Y',TO_DATE('2017-04-11 18:49:47','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:49:47','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','N','L','N','Y','902a22b1-891f-4d94-9438-bc305abce6be','N','N','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h49min48s BRT
|
||||
INSERT INTO AD_Sequence (Name,CurrentNext,IsAudited,StartNewYear,Description,IsActive,IsTableID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Sequence_ID,IsAutoSequence,StartNo,IncrementNo,CurrentNextSys,AD_Sequence_UU) VALUES ('PA_DocumentStatus',1000000,'N','N','Table PA_DocumentStatus','Y','Y',0,0,TO_DATE('2017-04-11 18:49:47','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:49:47','YYYY-MM-DD HH24:MI:SS'),100,200280,'Y',1000000,1,200000,'c9d7e750-6a14-4ee3-8ab0-0e52bddfc21e')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h50min6s BRT
|
||||
UPDATE AD_Table SET EntityType='D',Updated=TO_DATE('2017-04-11 18:50:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200216
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min28s BRT
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203069,0,0,'Y',TO_DATE('2017-04-11 18:52:27','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:27','YYYY-MM-DD HH24:MI:SS'),100,'PA_DocumentStatus_ID','Document Status','Document Status','D','a3621f9a-d7b8-4f9d-8609-dc75c9e2c28c')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min28s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212983,0.0,'Document Status',200216,'PA_DocumentStatus_ID',10,'Y','N','Y','N','N','N',13,0,0,'Y',TO_DATE('2017-04-11 18:52:27','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:27','YYYY-MM-DD HH24:MI:SS'),100,203069,'N','N','D','N','927e5a19-885a-497a-9ba2-403d2908c1f0','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min28s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (212984,0.0,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200216,129,'AD_Client_ID','@#AD_Client_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_DATE('2017-04-11 18:52:28','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:28','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','6a0e08b7-ed09-4fd7-aeb9-44ab50b3bbd8','N','D')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min28s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (212985,0.0,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200216,104,'AD_Org_ID','@#AD_Org_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_DATE('2017-04-11 18:52:28','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:28','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','N','1728852b-0ad3-4753-a026-baf63cf1b959','N','D')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min29s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (212986,0.0,'Role','Responsibility Role','The Role determines security and access a user who has this Role will have in the System.',200216,'AD_Role_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_DATE('2017-04-11 18:52:28','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:28','YYYY-MM-DD HH24:MI:SS'),100,123,'N','N','D','N','90e9c912-c550-4d02-9f4c-5a92cb7d43af','N','C')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min29s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212987,0.0,'User/Contact','User within the system - Internal or Business Partner Contact','The User identifies a unique user in the system. This could be an internal user or a business partner contact',200216,'AD_User_ID',10,'N','N','N','N','N','N',30,0,0,'Y',TO_DATE('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,138,'N','N','D','N','db3a0dd3-6b5f-408c-844c-c462921029f9','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min29s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212988,0.0,'Project','Financial Project','A Project allows you to track and control internal or external activities.',200216,'C_Project_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_DATE('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,208,'N','N','D','N','9448bc9d-bbde-4138-8690-df718a9d2216','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min29s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212989,0.0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200216,'Created','SYSDATE',29,'N','N','Y','N','N','N',16,0,0,'Y',TO_DATE('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','N','6b95d360-5f34-4f49-ba9e-621dee8a9ed5','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min29s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,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,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (212990,0.0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200216,'CreatedBy',10,'N','N','Y','N','N','N',18,110,0,0,'Y',TO_DATE('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','N','cb2a6103-3572-45b1-a2a8-aa24a35f62b0','N','D')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min30s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212991,0.0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200216,'Updated','SYSDATE',29,'N','N','Y','N','N','N',16,0,0,'Y',TO_DATE('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','N','f6d0f676-20de-45a9-b9fd-ac4faf4e1959','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min30s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,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,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (212992,0.0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200216,'UpdatedBy',10,'N','N','Y','N','N','N',18,110,0,0,'Y',TO_DATE('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','N','2104d6ed-0b66-409c-a2e8-45ddd01a24a0','N','D')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min30s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212993,0.0,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200216,'Name',60,'N','N','Y','N','Y','N',10,0,0,'Y',TO_DATE('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','N','fedee024-fd3b-4f3e-bc23-6bda6c4b78db','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min30s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212994,0.0,'Description','Optional short description of the record','A description is limited to 255 characters.',200216,'Description',255,'N','N','N','N','N','N',10,0,0,'Y',TO_DATE('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','N','ad1ad80c-8e42-4780-818e-454bd4355804','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min30s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212995,0.0,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200216,'IsActive','Y',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_DATE('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','b42b23a8-df07-4a4c-8a13-65a97210895f','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min30s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212996,0.0,'Sequence','Method of ordering records; lowest number comes first','The Sequence indicates the order of records',200216,'SeqNo',10,'N','N','Y','N','N','N',11,0,0,'Y',TO_DATE('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,566,'Y','N','D','N','b59e1982-78d1-453b-88e3-f91547844a4b','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min31s BRT
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203070,0,0,'Y',TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,'name_printcolor_id','Print Color for Name','Print Color for Name','D','beaed179-9c69-4e06-b2ac-06c58ec0aeb0')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min31s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212997,0.0,'Print Color for Name',200216,'name_printcolor_id',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,203070,'Y','N','D','N','037ba00c-ef76-41bb-8900-b7f2b10acfae','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min31s BRT
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203071,0,0,'Y',TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,'name_printfont_id','Print Font for Name','Print Font for Name','D','b52fe533-6588-4e69-93c0-35cae47c5c18')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min31s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212998,0.0,'Print Font for Name',200216,'name_printfont_id',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,203071,'Y','N','D','N','f0089b80-a8e4-45ce-991d-b93b378979de','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min31s BRT
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203072,0,0,'Y',TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,'number_printcolor_id','Print Color for Number','Print Color for Number','D','5b5d4d22-466f-4f5c-aafc-012bb2ae620f')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min31s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212999,0.0,'Print Color for Number',200216,'number_printcolor_id',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,203072,'Y','N','D','N','39b57a04-849b-46e4-9ef9-43eb38fb5edf','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min32s BRT
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203073,0,0,'Y',TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,'number_printfont_id','Print Font for Number','Print Font for Number','D','de84fd4d-4e60-4d5a-8893-b4c5ff3afe71')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min32s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (213000,0.0,'Print Font for Number',200216,'number_printfont_id',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,203073,'Y','N','D','N','0cc8ca2f-57b1-41e0-9392-a30af0db55ef','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min32s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (213001,0.0,'Table','Database Table information','The Database Table provides the information of the table definition',200216,'AD_Table_ID',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_DATE('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,126,'Y','N','D','N','e70d6dfe-516d-46c6-91fb-0f7a667a376c','N','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min32s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (213002,0.0,'Sql WHERE','Fully qualified SQL WHERE clause','The Where Clause indicates the SQL WHERE clause to use for record selection. The WHERE clause is added to the query. Fully qualified means "tablename.columnname".',200216,'WhereClause',2000,'N','N','N','N','N','N',14,0,0,'Y',TO_DATE('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,630,'Y','N','D','N','7d2461ca-2e72-4331-8013-320d99c2ec3a','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min32s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (213003,0.0,'Window','Data entry or display window','The Window field identifies a unique Window in the system.',200216,'AD_Window_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_DATE('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,143,'Y','N','D','N','b89f7162-e45f-406d-9e41-9befd58dfb18','N','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min33s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (213004,0.0,'Special Form','Special Form','The Special Form field identifies a unique Special Form in the system.',200216,'AD_Form_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_DATE('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,1298,'Y','N','D','N','adca4186-c9b6-483d-a897-9d361cc56d70','N','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min7s BRT
|
||||
INSERT INTO AD_Window (AD_Window_ID,Name,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,WindowType,Processing,EntityType,IsSOTrx,IsDefault,WinHeight,WinWidth,IsBetaFunctionality,AD_Window_UU) VALUES (200090,'Document Status',0,0,'Y',TO_DATE('2017-04-11 18:53:07','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:07','YYYY-MM-DD HH24:MI:SS'),100,'M','N','D','Y','N',0,0,'N','121c9bfb-4ba7-4ffc-a180-5fcada879abf')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min29s BRT
|
||||
INSERT INTO AD_Tab (AD_Tab_ID,Name,AD_Window_ID,SeqNo,IsSingleRow,AD_Table_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,HasTree,IsInfoTab,IsTranslationTab,IsReadOnly,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn) VALUES (200222,'Document Status',200090,10,'Y',200216,0,0,'Y',TO_DATE('2017-04-11 18:53:29','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:29','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N','N',0,'N','D','Y','Y','f8bf9ee8-5766-4360-a841-a3f7e04385c9','B')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min33s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204399,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200222,212984,'Y',10,10,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:33','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:33','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','54e533e5-8104-416f-85d6-6ef64fa8e488','Y',10,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min33s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (204400,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200222,212985,'Y',10,20,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:33','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:33','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','a1ea7d9b-71c9-4481-8136-bfa0da99b0e3','Y','Y',20,4,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min34s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204401,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200222,212993,'Y',60,30,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:33','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:33','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','130ad7cc-b993-497c-8927-d3bf16fc87b7','Y',30,5)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min34s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204402,'Description','Optional short description of the record','A description is limited to 255 characters.',200222,212994,'Y',255,40,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','22ade669-d167-4e89-aa2e-420c7576fac0','Y',40,5)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min34s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (204403,'Document Status',200222,212983,'N',10,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','fcf1977b-3fee-411a-be63-7ee701ccc8c7','N',2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min34s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204404,'Role','Responsibility Role','The Role determines security and access a user who has this Role will have in the System.',200222,212986,'Y',10,50,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','fcbda817-0402-4b0a-85d0-e9788d87f1ff','Y',50,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min34s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204405,'User/Contact','User within the system - Internal or Business Partner Contact','The User identifies a unique user in the system. This could be an internal user or a business partner contact',200222,212987,'Y',10,60,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','b9011734-3dbf-4f76-9625-4ef04321fce2','Y',60,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min34s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLogic,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204406,'Project','Financial Project','A Project allows you to track and control internal or external activities.',200222,212988,'Y','@$Element_PJ@=Y',10,70,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','95a5f650-d5f5-4281-b636-014e6ebddd28','Y',70,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min35s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204407,'Sequence','Method of ordering records; lowest number comes first','The Sequence indicates the order of records',200222,212996,'Y',10,80,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','9f4fa5bb-7029-44a0-8d30-bc7693aa9ded','Y',80,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min35s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204408,'Print Color for Name',200222,212997,'Y',10,90,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','b3d42399-056a-4976-bcc9-376008989484','Y',90,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min35s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204409,'Print Font for Name',200222,212998,'Y',10,100,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f2fc28d0-0204-4516-b317-a240b9fbc4e5','Y',100,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min35s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204410,'Print Color for Number',200222,212999,'Y',10,110,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','c4466995-fc95-4a39-a7d0-3e73f4085f94','Y',110,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min35s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204411,'Print Font for Number',200222,213000,'Y',10,120,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','7e1c5b6d-fe2b-4465-aecf-01d82ec54734','Y',120,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min35s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204412,'Table','Database Table information','The Database Table provides the information of the table definition',200222,213001,'Y',10,130,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','aee5d02a-37e6-41d4-9c93-7997132c806b','Y',130,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min36s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan,NumLines) VALUES (204413,'Sql WHERE','Fully qualified SQL WHERE clause','The Where Clause indicates the SQL WHERE clause to use for record selection. The WHERE clause is added to the query. Fully qualified means "tablename.columnname".',200222,213002,'Y',2000,140,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','d0e735e2-db4a-4a36-bb61-f24b2d322f06','Y',140,5,3)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min36s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204414,'Window','Data entry or display window','The Window field identifies a unique Window in the system.',200222,213003,'Y',10,150,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:36','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','a4fc124a-b401-403f-b640-29f088f30d71','Y',150,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min36s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204415,'Special Form','Special Form','The Special Form field identifies a unique Special Form in the system.',200222,213004,'Y',10,160,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:36','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f7c41944-d538-45e0-9d7b-e1ac783bbca4','Y',160,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min36s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,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) VALUES (204416,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200222,212995,'Y',1,170,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-11 18:53:36','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 18:53:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','330a2d54-eceb-43f0-b23e-fcd87ddd053e','Y',170,2,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min52s BRT
|
||||
UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-11 18:53:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204403
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204416
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204404
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204405
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204406
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET SeqNo=90, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204407
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204408
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=130, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204410
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET SeqNo=140, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204412
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET SeqNo=150, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204413
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET SeqNo=160, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204414
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=170, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204415
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h59min31s BRT
|
||||
UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=266, FKConstraintType=NULL,Updated=TO_DATE('2017-04-11 18:59:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212997
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h59min43s BRT
|
||||
UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=266, FKConstraintType=NULL,Updated=TO_DATE('2017-04-11 18:59:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212998
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h59min56s BRT
|
||||
UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=266, FKConstraintType=NULL,Updated=TO_DATE('2017-04-11 18:59:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212999
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h0min6s BRT
|
||||
UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=266, FKConstraintType=NULL,Updated=TO_DATE('2017-04-11 19:00:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213000
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h0min45s BRT
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203076,0,0,'Y',TO_DATE('2017-04-11 19:00:44','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 19:00:44','YYYY-MM-DD HH24:MI:SS'),100,'PA_DocumentStatus_UU','PA_DocumentStatus_UU','PA_DocumentStatus_UU','D','8c2e3e95-1e24-4189-b3cc-c516e8c132a8')
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h0min45s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (213007,1.0,'PA_DocumentStatus_UU',200216,'PA_DocumentStatus_UU',36,'N','N','N','N','N','N',10,0,0,'Y',TO_DATE('2017-04-11 19:00:44','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 19:00:44','YYYY-MM-DD HH24:MI:SS'),100,203076,'Y','N','D','N','a44a25de-f95f-4806-bdc5-2e54305ca0bb','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h0min45s BRT
|
||||
ALTER TABLE PA_DocumentStatus ADD PA_DocumentStatus_UU VARCHAR2(36) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h0min45s BRT
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT PA_DocumentStatus_UU_idx UNIQUE (PA_DocumentStatus_UU)
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h1min59s BRT
|
||||
UPDATE AD_Table SET AD_Window_ID=200090,Updated=TO_DATE('2017-04-11 19:01:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200216
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h2min26s BRT
|
||||
UPDATE AD_Table SET Name='Document Status Indicator',Updated=TO_DATE('2017-04-11 19:02:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200216
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h2min45s BRT
|
||||
UPDATE AD_Tab SET Name='Document Status Indicator',Updated=TO_DATE('2017-04-11 19:02:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200222
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min28s BRT
|
||||
INSERT INTO AD_Menu (AD_Menu_ID,Name,Action,AD_Window_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,AD_Menu_UU) VALUES (200145,'Document Status Indicator','W',200090,0,0,'Y',TO_DATE('2017-04-11 19:03:28','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 19:03:28','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','D','Y','6e7804fa-ea65-4f7c-b724-ba3ec71ca0a2')
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min28s BRT
|
||||
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', SysDate, 100, SysDate, 100,t.AD_Tree_ID, 200145, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200145)
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53242
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53296
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200145
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53203
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=586
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=138
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=139
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200065
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200063
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=249
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=141
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=300
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=589
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200000
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=295
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=216
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=140
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=142
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53012
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=143
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=201
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=19, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=176
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=20, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200072
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=21, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53086
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=22, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=239
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=23, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=517
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=24, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=499
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=25, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53089
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=26, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53090
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=27, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200038
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=28, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200141
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=29, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=50001
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h4min42s BRT
|
||||
INSERT INTO PA_DashboardContent (Name,AD_Org_ID,Created,CreatedBy,UpdatedBy,IsActive,Line,Updated,AD_Client_ID,PA_DashboardContent_ID,ColumnNo,ZulFilePath,IsCollapsible,GoalDisplay,PA_DashboardContent_UU,IsShowInDashboard,IsEmbedReportContent,IsCollapsedByDefault,AD_User_ID,AD_Role_ID,IsShowinLogin) VALUES ('Document Status window display',0,TO_DATE('2017-04-11 19:04:42','YYYY-MM-DD HH24:MI:SS'),100,100,'Y',0,TO_DATE('2017-04-11 19:04:42','YYYY-MM-DD HH24:MI:SS'),0,200003,1,'/zul/docstatus.zul','Y','T','ff808989-6264-4c4c-98a9-83c8b0fe00ef','Y','N','N',0,0,'Y')
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h5min43s BRT
|
||||
UPDATE AD_Column SET AD_Reference_Value_ID=267,Updated=TO_DATE('2017-04-11 19:05:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212998
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h5min49s BRT
|
||||
UPDATE AD_Column SET AD_Reference_Value_ID=267,Updated=TO_DATE('2017-04-11 19:05:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213000
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h6min40s BRT
|
||||
INSERT INTO PA_DocumentStatus (PA_DocumentStatus_ID,AD_Client_ID,AD_Org_ID,AD_Role_ID,AD_User_ID,Created,CreatedBy,Updated,UpdatedBy,Name,IsActive,SeqNo,name_printcolor_id,name_printfont_id,number_printcolor_id,number_printfont_id,AD_Table_ID,WhereClause,AD_Window_ID,PA_DocumentStatus_UU) VALUES (200000,11,0,null,null,TO_DATE('2017-04-11 19:06:39','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 19:06:39','YYYY-MM-DD HH24:MI:SS'),100,'Sales Orders received today','Y',50,100,129,102,129,259,'C_Order.IsSoTrx=''Y'' and c_Order.DateOrdered > SYSDATE-1',143,'07fa8eef-2ad7-476a-b1ce-ebc6a5caf6fc')
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h7min35s BRT
|
||||
INSERT INTO PA_DocumentStatus (PA_DocumentStatus_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Name,IsActive,SeqNo,name_printcolor_id,name_printfont_id,number_printcolor_id,number_printfont_id,AD_Table_ID,WhereClause,AD_Window_ID,PA_DocumentStatus_UU) VALUES (200001,11,0,TO_DATE('2017-04-11 19:07:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-11 19:07:35','YYYY-MM-DD HH24:MI:SS'),100,'Pending Customer Shipments','Y',60,100,129,102,129,319,'M_InOut.IsSOTrx=''Y'' AND M_InOut.Processed=''N''',169,'e6df3b28-7ba1-4277-99e8-fa4ff9bfd082')
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h7min49s BRT
|
||||
UPDATE AD_Column SET DefaultValue='-1',Updated=TO_DATE('2017-04-11 19:07:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212986
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h8min18s BRT
|
||||
UPDATE AD_Column SET DefaultValue='-1',Updated=TO_DATE('2017-04-11 19:08:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212987
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 5:59:43 PM CEST
|
||||
UPDATE AD_Table SET IsChangeLog='Y',Updated=TO_DATE('2017-04-12 17:59:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200216
|
||||
;
|
||||
|
||||
-- IDEMPIERE-3338 Document Status Indicator
|
||||
-- Apr 12, 2017 6:20:01 PM CEST
|
||||
UPDATE PA_DashboardContent SET IsActive='N',Updated=TO_DATE('2017-04-12 18:20:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE PA_DashboardContent_ID=50000
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 6:20:14 PM CEST
|
||||
UPDATE PA_DashboardContent SET Name='Activities', ColumnNo=0,Updated=TO_DATE('2017-04-12 18:20:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE PA_DashboardContent_ID=200003
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 6:23:42 PM CEST
|
||||
INSERT INTO PA_DocumentStatus (PA_DocumentStatus_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Name,IsActive,SeqNo,name_printcolor_id,name_printfont_id,number_printcolor_id,number_printfont_id,AD_Table_ID,WhereClause,AD_Window_ID,PA_DocumentStatus_UU) VALUES (200002,0,0,TO_DATE('2017-04-12 18:23:42','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 18:23:42','YYYY-MM-DD HH24:MI:SS'),10,'Notice','Y',10,100,131,100,131,389,'AD_Client_ID=@#AD_Client_ID@ AND AD_User_ID IN (0,@#AD_User_ID@) AND Processed=''N'' AND AD_BroadcastMessage_ID IS NULL',193,'5243bd4a-7da4-44bb-90dd-08846ad3fcf1')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:23:51 PM CEST
|
||||
INSERT INTO PA_DocumentStatus (PA_DocumentStatus_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Name,IsActive,SeqNo,name_printcolor_id,name_printfont_id,number_printcolor_id,number_printfont_id,AD_Table_ID,WhereClause,AD_Window_ID,PA_DocumentStatus_UU) VALUES (200003,0,0,TO_DATE('2017-04-12 19:23:51','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:23:51','YYYY-MM-DD HH24:MI:SS'),100,'Request','Y',20,100,131,100,131,417,'(SalesRep_ID=@#AD_User_ID@ OR AD_Role_ID=@#AD_Role_ID@) AND Processed=''N'' AND (DateNextAction IS NULL OR TRUNC(DateNextAction) <= TRUNC(SysDate)) AND (R_Status_ID IS NULL OR R_Status_ID IN (SELECT R_Status_ID FROM R_Status WHERE IsClosed=''N''))',201,'202b749a-cf08-41fc-b93c-67c6a28a6786')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:27:03 PM CEST
|
||||
INSERT INTO PA_DocumentStatus (PA_DocumentStatus_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Name,IsActive,SeqNo,name_printcolor_id,name_printfont_id,number_printcolor_id,number_printfont_id,AD_Table_ID,WhereClause,AD_Form_ID,PA_DocumentStatus_UU) VALUES (200004,0,0,TO_DATE('2017-04-12 19:27:03','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:27:03','YYYY-MM-DD HH24:MI:SS'),100,'Request','Y',30,100,131,100,131,644,'a.Processed=''N'' AND a.WFState=''OS'' AND ("
|
||||
/* Owner of Activity */
|
||||
a.AD_User_ID=@#AD_User_ID@
|
||||
/* Invoker (if no invoker = all) */
|
||||
OR EXISTS (SELECT * FROM AD_WF_Responsible r WHERE a.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID"
|
||||
AND r.ResponsibleType=''H'' AND COALESCE(r.AD_User_ID,0)=0 AND COALESCE(r.AD_Role_ID,0)=0 AND (a.AD_User_ID=@#AD_User_ID@ OR a.AD_User_ID IS NULL))
|
||||
/* Responsible User */
|
||||
OR EXISTS (SELECT * FROM AD_WF_Responsible r WHERE a.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID"
|
||||
AND r.ResponsibleType=''H'' AND r.AD_User_ID=@#AD_User_ID@)
|
||||
/* Responsible Role */
|
||||
OR EXISTS (SELECT * FROM AD_WF_Responsible r INNER JOIN AD_User_Roles ur ON (r.AD_Role_ID=ur.AD_Role_ID)"
|
||||
WHERE a.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID AND r.ResponsibleType=''R'' AND ur.AD_User_ID=@#AD_User_ID@)
|
||||
) AND a.AD_Client_ID=@#AD_Client_ID@
|
||||
',117,'fc908088-6254-4e4f-b070-0de535fef6fd')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:28:32 PM CEST
|
||||
INSERT INTO PA_DocumentStatus (PA_DocumentStatus_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Name,IsActive,SeqNo,name_printcolor_id,name_printfont_id,number_printcolor_id,number_printfont_id,AD_Table_ID,WhereClause,AD_Window_ID,PA_DocumentStatus_UU) VALUES (200005,0,0,TO_DATE('2017-04-12 19:28:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:28:31','YYYY-MM-DD HH24:MI:SS'),100,'Unprocessed Documents','Y',40,100,131,100,131,53221,'AD_Client_ID=@#AD_Client_ID@ AND CreatedBy=@#AD_User_ID@',53086,'3b78213b-9cd6-44a8-81d9-65e84b91bfdc')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:33:08 PM CEST
|
||||
UPDATE PA_DocumentStatus SET WhereClause='AD_WF_Activity.Processed=''N'' AND AD_WF_Activity.WFState=''OS'' AND (
|
||||
/* Owner of Activity */
|
||||
AD_WF_Activity.AD_User_ID=@#AD_User_ID@
|
||||
/* Invoker (if no invoker = all) */
|
||||
OR EXISTS (SELECT * FROM AD_WF_Responsible r WHERE AD_WF_Activity.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID
|
||||
AND r.ResponsibleType=''H'' AND COALESCE(r.AD_User_ID,0)=0 AND COALESCE(r.AD_Role_ID,0)=0 AND (AD_WF_Activity.AD_User_ID=@#AD_User_ID@ OR AD_WF_Activity.AD_User_ID IS NULL))
|
||||
/* Responsible User */
|
||||
OR EXISTS (SELECT * FROM AD_WF_Responsible r WHERE AD_WF_Activity.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID
|
||||
AND r.ResponsibleType=''H'' AND r.AD_User_ID=@#AD_User_ID@)
|
||||
/* Responsible Role */
|
||||
OR EXISTS (SELECT * FROM AD_WF_Responsible r INNER JOIN AD_User_Roles ur ON (r.AD_Role_ID=ur.AD_Role_ID)
|
||||
WHERE AD_WF_Activity.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID AND r.ResponsibleType=''R'' AND ur.AD_User_ID=@#AD_User_ID@)
|
||||
) AND AD_WF_Activity.AD_Client_ID=@#AD_Client_ID@',Updated=TO_DATE('2017-04-12 19:33:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE PA_DocumentStatus_ID=200004
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:33:59 PM CEST
|
||||
UPDATE PA_DocumentStatus SET Name='Workflow Activities',Updated=TO_DATE('2017-04-12 19:33:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE PA_DocumentStatus_ID=200004
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:37:14 PM CEST
|
||||
UPDATE AD_Tab SET OrderByClause='PA_DocumentStatus.SeqNo',Updated=TO_DATE('2017-04-12 19:37:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200222
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:44:46 PM CEST
|
||||
INSERT INTO AD_Table (AD_Table_ID,Name,Description,AD_Window_ID,TableName,LoadSeq,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,IsChangeLog,ReplicationType,IsCentrallyMaintained,AD_Table_UU,Processing) VALUES (200217,'Document Status Trl',NULL,200090,'PA_DocumentStatus_Trl',145,'7',0,0,'Y',TO_DATE('2017-04-12 19:44:46','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:44:46','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','L','Y','4b3df9cc-86c7-4fb3-9b35-10b6ec28de7e','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:44:46 PM CEST
|
||||
INSERT INTO AD_Sequence (Name,CurrentNext,IsAudited,StartNewYear,Description,IsActive,IsTableID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Sequence_ID,IsAutoSequence,StartNo,IncrementNo,CurrentNextSys,AD_Sequence_UU) VALUES ('PA_DocumentStatus_Trl',1000000,'N','N','Table PA_DocumentStatus_Trl','Y','Y',0,0,TO_DATE('2017-04-12 19:44:46','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:44:46','YYYY-MM-DD HH24:MI:SS'),100,200281,'Y',1000000,1,200000,'48314e8b-356c-48fd-bb18-95386def6cf3')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:10 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,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,IsToolbarButton,IsSecure,FKConstraintType) VALUES (213008,1,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200217,129,'AD_Client_ID','@AD_Client_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_DATE('2017-04-12 19:45:10','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:45:10','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','N','N','Y','7652cb1e-f3ea-4ee7-b308-8b538eebf5f8','N','N','N','D')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:11 PM CEST
|
||||
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,IsToolbarButton,IsSecure,FKConstraintType) VALUES (213009,1,'Column','Column in the table','Link to the database column of the table',200217,'AD_Column_ID',22,'N','Y','Y','N','N',0,'N',19,0,0,'Y',TO_DATE('2017-04-12 19:45:10','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:45:10','YYYY-MM-DD HH24:MI:SS'),100,104,'N','N','D','N','N','N','Y','1b4493d8-8994-41ea-9d3d-5f134cd1d198','Y','N','N','C')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:11 PM CEST
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203077,0,0,'Y',TO_DATE('2017-04-12 19:45:11','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:45:11','YYYY-MM-DD HH24:MI:SS'),100,'PA_DocumentStatus_Trl_UU','PA_DocumentStatus_Trl_UU','PA_DocumentStatus_Trl_UU','D','a5557e5f-8777-43f6-89d7-6c9794616afb')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:11 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,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,IsToolbarButton,IsSecure) VALUES (213010,1.00,'PA_DocumentStatus_Trl_UU',200217,'PA_DocumentStatus_Trl_UU',36,'N','N','N','N','N','N',10,0,0,'Y',TO_DATE('2017-04-12 19:45:11','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:45:11','YYYY-MM-DD HH24:MI:SS'),100,203077,'Y','N','D','N','N','N','Y','bd57b0dc-f859-485a-a8a2-2cd8627986a3','N','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:12 PM CEST
|
||||
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,IsToolbarButton,IsSecure,FKConstraintType) VALUES (213011,1,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200217,'AD_Language',6,'N','Y','Y','N','N',0,'N',18,106,0,0,'Y',TO_DATE('2017-04-12 19:45:11','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:45:11','YYYY-MM-DD HH24:MI:SS'),100,109,'N','N','D','N','N','N','Y','1f56790c-872a-49f3-ab50-266254f9de72','Y','N','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:12 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,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,IsToolbarButton,IsSecure,FKConstraintType) VALUES (213012,1,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200217,104,'AD_Org_ID','@AD_Org_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_DATE('2017-04-12 19:45:12','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:45:12','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','N','N','N','Y','dbdce8aa-6e2b-4f06-a806-23f2f807dd94','N','N','N','D')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:13 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,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,IsToolbarButton,IsSecure) VALUES (213013,1,'Created','Date this record was created','The Created field indicates the date that this record was created.',200217,'Created','SYSDATE',7,'N','N','Y','N','N',0,'N',16,0,0,'Y',TO_DATE('2017-04-12 19:45:12','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:45:12','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','N','N','N','Y','c673a880-09c1-4e62-bba9-3d2dd3ae3c13','N','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:13 PM CEST
|
||||
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,IsToolbarButton,IsSecure,FKConstraintType) VALUES (213014,1,'Created By','User who created this records','The Created By field indicates the user who created this record.',200217,'CreatedBy',22,'N','N','Y','N','N',0,'N',18,110,0,0,'Y',TO_DATE('2017-04-12 19:45:13','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:45:13','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','N','N','N','Y','d80db012-4c4c-427d-bf93-893c549b1d84','N','N','N','D')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:13 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,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,IsToolbarButton,IsSecure) VALUES (213015,1,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200217,'IsActive','Y',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_DATE('2017-04-12 19:45:13','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:45:13','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','N','N','Y','8c9f048b-cddb-4e25-b1a2-9298c10e6d18','N','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:14 PM CEST
|
||||
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,IsToolbarButton,IsSecure) VALUES (213016,1,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200217,'IsTranslated',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_DATE('2017-04-12 19:45:13','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:45:13','YYYY-MM-DD HH24:MI:SS'),100,420,'Y','N','D','N','N','N','Y','0255dbe6-841d-4ed8-824d-1ab18c11c90f','Y','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:14 PM CEST
|
||||
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,IsToolbarButton,IsSecure) VALUES (213017,1,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200217,'Name',60,'N','N','Y','N','N',0,'N',10,0,0,'Y',TO_DATE('2017-04-12 19:45:14','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:45:14','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','N','N','N','Y','8729a576-e682-4776-ae44-b087e69e794a','Y','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:14 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,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,IsToolbarButton,IsSecure) VALUES (213018,1,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200217,'Updated','SYSDATE',7,'N','N','Y','N','N',0,'N',16,0,0,'Y',TO_DATE('2017-04-12 19:45:14','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:45:14','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','N','N','N','Y','7de627e8-f738-496e-888e-67ac2ea9eecd','N','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:15 PM CEST
|
||||
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,IsToolbarButton,IsSecure,FKConstraintType) VALUES (213019,1,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200217,'UpdatedBy',22,'N','N','Y','N','N',0,'N',18,110,0,0,'Y',TO_DATE('2017-04-12 19:45:14','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:45:14','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','N','N','N','Y','33ba98a5-9c99-49e6-addb-0c059408153c','N','N','N','D')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:46:15 PM CEST
|
||||
UPDATE AD_Column SET IsTranslated='Y',Updated=TO_DATE('2017-04-12 19:46:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212993
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:23 PM CEST
|
||||
UPDATE AD_Element SET ColumnName='Name_PrintColor_ID', EntityType='D',Updated=TO_DATE('2017-04-12 19:47:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203070
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:23 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='Name_PrintColor_ID', Name='Print Color for Name', Description=NULL, Help=NULL WHERE AD_Element_ID=203070
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:23 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Name_PrintColor_ID', Name='Print Color for Name', Description=NULL, Help=NULL, AD_Element_ID=203070 WHERE UPPER(ColumnName)='NAME_PRINTCOLOR_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:23 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Name_PrintColor_ID', Name='Print Color for Name', Description=NULL, Help=NULL WHERE AD_Element_ID=203070 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:23 PM CEST
|
||||
UPDATE AD_InfoColumn SET ColumnName='Name_PrintColor_ID', Name='Print Color for Name', Description=NULL, Help=NULL WHERE AD_Element_ID=203070 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:50 PM CEST
|
||||
UPDATE AD_Element SET ColumnName='Name_PrintFont_ID', EntityType='D',Updated=TO_DATE('2017-04-12 19:47:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203071
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:50 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='Name_PrintFont_ID', Name='Print Font for Name', Description=NULL, Help=NULL WHERE AD_Element_ID=203071
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:50 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Name_PrintFont_ID', Name='Print Font for Name', Description=NULL, Help=NULL, AD_Element_ID=203071 WHERE UPPER(ColumnName)='NAME_PRINTFONT_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:50 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Name_PrintFont_ID', Name='Print Font for Name', Description=NULL, Help=NULL WHERE AD_Element_ID=203071 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:50 PM CEST
|
||||
UPDATE AD_InfoColumn SET ColumnName='Name_PrintFont_ID', Name='Print Font for Name', Description=NULL, Help=NULL WHERE AD_Element_ID=203071 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:24 PM CEST
|
||||
UPDATE AD_Element SET ColumnName='Number_PrintColor_ID', EntityType='D',Updated=TO_DATE('2017-04-12 19:48:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203072
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:24 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='Number_PrintColor_ID', Name='Print Color for Number', Description=NULL, Help=NULL WHERE AD_Element_ID=203072
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:24 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Number_PrintColor_ID', Name='Print Color for Number', Description=NULL, Help=NULL, AD_Element_ID=203072 WHERE UPPER(ColumnName)='NUMBER_PRINTCOLOR_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:24 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Number_PrintColor_ID', Name='Print Color for Number', Description=NULL, Help=NULL WHERE AD_Element_ID=203072 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:24 PM CEST
|
||||
UPDATE AD_InfoColumn SET ColumnName='Number_PrintColor_ID', Name='Print Color for Number', Description=NULL, Help=NULL WHERE AD_Element_ID=203072 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:37 PM CEST
|
||||
UPDATE AD_Element SET ColumnName='Number_PrintFont_ID', EntityType='D',Updated=TO_DATE('2017-04-12 19:48:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203073
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:37 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='Number_PrintFont_ID', Name='Print Font for Number', Description=NULL, Help=NULL WHERE AD_Element_ID=203073
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:37 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Number_PrintFont_ID', Name='Print Font for Number', Description=NULL, Help=NULL, AD_Element_ID=203073 WHERE UPPER(ColumnName)='NUMBER_PRINTFONT_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:37 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Number_PrintFont_ID', Name='Print Font for Number', Description=NULL, Help=NULL WHERE AD_Element_ID=203073 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:37 PM CEST
|
||||
UPDATE AD_InfoColumn SET ColumnName='Number_PrintFont_ID', Name='Print Font for Number', Description=NULL, Help=NULL WHERE AD_Element_ID=203073 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:05 PM CEST
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='ADColumn_PADocumentStatusTrl', FKConstraintType='C',Updated=TO_DATE('2017-04-12 19:51:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213009
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:05 PM CEST
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='ADLanguage_PADocumentStatusTrl', FKConstraintType='N',Updated=TO_DATE('2017-04-12 19:51:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213011
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:05 PM CEST
|
||||
CREATE TABLE PA_DocumentStatus_Trl (AD_Client_ID NUMBER(10) NOT NULL, PA_DocumentStatus_ID NUMBER(10) NOT NULL, AD_Language VARCHAR2(6) NOT NULL, AD_Org_ID NUMBER(10) NOT NULL, Created DATE DEFAULT SYSDATE NOT NULL, CreatedBy NUMBER(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, IsTranslated CHAR(1) CHECK (IsTranslated IN ('Y','N')) NOT NULL, Name VARCHAR2(60) NOT NULL, PA_DocumentStatus_Trl_UU VARCHAR2(36) DEFAULT NULL , Updated DATE DEFAULT SYSDATE NOT NULL, UpdatedBy NUMBER(10) NOT NULL, CONSTRAINT PA_DocumentStatus_Trl_UU_idx UNIQUE (PA_DocumentStatus_Trl_UU))
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:05 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus_Trl ADD CONSTRAINT PADocumentStatus_PADocumentSta FOREIGN KEY (PA_DocumentStatus_ID) REFERENCES pa_documentstatus(pa_documentstatus_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:05 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus_Trl ADD CONSTRAINT ADLanguage_PADocumentStatusTrl FOREIGN KEY (AD_Language) REFERENCES ad_language(ad_language) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:42 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='ADForm_PADocumentStatus', FKConstraintType='N',Updated=TO_DATE('2017-04-12 19:51:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213004
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:42 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus MODIFY AD_Form_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:42 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT ADForm_PADocumentStatus FOREIGN KEY (AD_Form_ID) REFERENCES ad_form(ad_form_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:53 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='ADRole_PADocumentStatus', FKConstraintType='C',Updated=TO_DATE('2017-04-12 19:51:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212986
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:53 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus MODIFY AD_Role_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:53 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT ADRole_PADocumentStatus FOREIGN KEY (AD_Role_ID) REFERENCES ad_role(ad_role_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:02 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='ADTable_PADocumentStatus', FKConstraintType='N',Updated=TO_DATE('2017-04-12 19:52:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213001
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:02 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus MODIFY AD_Table_ID NUMBER(10)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:02 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT ADTable_PADocumentStatus FOREIGN KEY (AD_Table_ID) REFERENCES ad_table(ad_table_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:07 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='ADUser_PADocumentStatus', FKConstraintType='N',Updated=TO_DATE('2017-04-12 19:52:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212987
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:07 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus MODIFY AD_User_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:07 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT ADUser_PADocumentStatus FOREIGN KEY (AD_User_ID) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:14 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='ADWindow_PADocumentStatus', FKConstraintType='N',Updated=TO_DATE('2017-04-12 19:52:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213003
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:14 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus MODIFY AD_Window_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:14 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT ADWindow_PADocumentStatus FOREIGN KEY (AD_Window_ID) REFERENCES ad_window(ad_window_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:21 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='CProject_PADocumentStatus', FKConstraintType='N',Updated=TO_DATE('2017-04-12 19:52:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212988
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:21 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus MODIFY C_Project_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:21 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT CProject_PADocumentStatus FOREIGN KEY (C_Project_ID) REFERENCES c_project(c_project_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:38 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='NamePrintColor_PADocumentStatu', FKConstraintType='N',Updated=TO_DATE('2017-04-12 19:52:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212997
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:38 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus MODIFY Name_PrintColor_ID NUMBER(10)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:38 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT NamePrintColor_PADocumentStatu FOREIGN KEY (Name_PrintColor_ID) REFERENCES ad_printcolor(ad_printcolor_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:44 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='NamePrintFont_PADocumentStatus', FKConstraintType='N',Updated=TO_DATE('2017-04-12 19:52:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212998
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:44 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus MODIFY Name_PrintFont_ID NUMBER(10)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:44 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT NamePrintFont_PADocumentStatus FOREIGN KEY (Name_PrintFont_ID) REFERENCES ad_printfont(ad_printfont_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:49 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='NumberPrintColor_PADocumentSta', FKConstraintType='N',Updated=TO_DATE('2017-04-12 19:52:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212999
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:49 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus MODIFY Number_PrintColor_ID NUMBER(10)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:49 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT NumberPrintColor_PADocumentSta FOREIGN KEY (Number_PrintColor_ID) REFERENCES ad_printcolor(ad_printcolor_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:53 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='NumberPrintFont_PADocumentStat', FKConstraintType='N',Updated=TO_DATE('2017-04-12 19:52:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213000
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:53 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus MODIFY Number_PrintFont_ID NUMBER(10)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:53 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT NumberPrintFont_PADocumentStat FOREIGN KEY (Number_PrintFont_ID) REFERENCES ad_printfont(ad_printfont_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:54:34 PM CEST
|
||||
INSERT INTO AD_Tab (AD_Tab_ID,Name,AD_Window_ID,SeqNo,IsSingleRow,AD_Table_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,HasTree,IsInfoTab,IsTranslationTab,IsReadOnly,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn) VALUES (200223,'Document Status Translation',200090,20,'Y',200217,0,0,'Y',TO_DATE('2017-04-12 19:54:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:54:34','YYYY-MM-DD HH24:MI:SS'),100,'N','N','Y','N','N','N',1,'N','D','N','N','16c4fe42-d942-4297-bb65-2724fd7cb9c2','B')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:50 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204417,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200223,213008,'Y',22,10,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-12 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','15123f16-e255-4268-80e6-a98d49001584','Y',10,2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:50 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (204418,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200223,213012,'Y',22,20,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-12 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','48191488-6fd2-43b6-a4f5-f5a71729b547','Y','Y',20,4,2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:51 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204419,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200223,213017,'Y',60,30,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-12 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','1bf6cf12-c803-48d2-bc90-5daedfa723ca','Y',30,5)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:51 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204420,'Column','Column in the table','Link to the database column of the table',200223,213009,'Y',22,40,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-12 19:57:51','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:57:51','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','d8d17984-1d12-4f59-9b58-e74ea680d608','Y',40,2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:51 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (204421,'PA_DocumentStatus_Trl_UU',200223,213010,'N',36,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-12 19:57:51','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:57:51','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ee8f2240-8427-464d-9623-38d25e2ff8d3','N',2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:52 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204422,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200223,213011,'Y',6,50,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-12 19:57:51','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:57:51','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','74e8ff6f-7eec-4c20-baa7-7d4ddcd8933c','Y',50,2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:53 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,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) VALUES (204423,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200223,213016,'Y',1,60,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-12 19:57:52','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:57:52','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','18f64c4e-57ac-4e38-967e-08a69b47d924','Y',60,2,2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:53 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,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) VALUES (204424,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200223,213015,'Y',1,70,'N','N','N','N',0,0,'Y',TO_DATE('2017-04-12 19:57:53','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-04-12 19:57:53','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','c8f4c5bc-2fdc-4117-9693-c96b92b46ab9','Y',70,2,2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:58:22 PM CEST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-12 19:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204420
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:58:22 PM CEST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-12 19:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204422
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:58:22 PM CEST
|
||||
UPDATE AD_Field SET SeqNo=50, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-12 19:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204419
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:58:22 PM CEST
|
||||
UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-12 19:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204421
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:58:57 PM CEST
|
||||
UPDATE AD_Column SET Name='Document Status', Description=NULL, Help=NULL, ColumnName='PA_DocumentStatus_ID', FieldLength=10, AD_Element_ID=203069, IsUpdateable='N', FKConstraintName=NULL, FKConstraintType='N',Updated=TO_DATE('2017-04-12 19:58:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213009
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:58:58 PM CEST
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='PADocumentStatus_PADocumentSta', FKConstraintType='N',Updated=TO_DATE('2017-04-12 19:58:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213009
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 8:00:17 PM CEST
|
||||
UPDATE AD_Field SET Name='Document Status', Description=NULL, Help=NULL, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2017-04-12 20:00:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204420
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 8:14:49 PM CEST
|
||||
INSERT INTO AD_TableIndex (AD_Client_ID,AD_Org_ID,AD_TableIndex_ID,AD_TableIndex_UU,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,AD_Table_ID,IsCreateConstraint,IsUnique,Processing,TableIndexDrop,IsKey) VALUES (0,0,201041,'f3338dcb-c411-4f07-934e-9a0b01172a73',TO_DATE('2017-04-12 20:14:49','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','pa_documentstatus_trl_pkey',TO_DATE('2017-04-12 20:14:49','YYYY-MM-DD HH24:MI:SS'),100,200217,'Y','Y','N','N','Y')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 8:15:16 PM CEST
|
||||
INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201276,'571005cd-0f89-45ce-9b87-f91d005b099e',TO_DATE('2017-04-12 20:15:16','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_DATE('2017-04-12 20:15:16','YYYY-MM-DD HH24:MI:SS'),100,213009,201041,10)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 8:15:25 PM CEST
|
||||
INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201277,'53eee079-7aca-45a6-badb-8bcf5ea1c4f7',TO_DATE('2017-04-12 20:15:25','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_DATE('2017-04-12 20:15:25','YYYY-MM-DD HH24:MI:SS'),100,213011,201041,20)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 8:15:30 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus_Trl ADD CONSTRAINT pa_documentstatus_trl_pkey PRIMARY KEY (PA_DocumentStatus_ID,AD_Language)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 9:05:00 PM CEST
|
||||
UPDATE AD_Tab SET IsTranslationTab='N',Updated=TO_DATE('2017-04-12 21:05:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200223
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201704112221_IDEMPIERE-3338.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,955 @@
|
|||
CREATE TABLE pa_documentstatus ( pa_documentstatus_id numeric(10) NOT NULL, ad_client_id numeric(10) NOT NULL, ad_org_id numeric(10) NOT NULL, ad_role_id numeric(10) NULL, ad_user_id numeric(10) NULL, c_project_id numeric(10) NULL, created timestamp NOT NULL, createdby numeric(10) NOT NULL, updated timestamp NOT NULL, updatedby numeric(10) NOT NULL, name varchar(60) NOT NULL, description varchar(255) NULL, isactive bpchar(1) NOT NULL DEFAULT 'Y'::bpchar, seqno numeric(10) NOT NULL, name_printcolor_id numeric(10) NOT NULL, name_printfont_id numeric(10) NOT NULL, number_printcolor_id numeric(10) NOT NULL, number_printfont_id numeric(10) NOT NULL, ad_table_id numeric(10) NOT NULL, whereclause varchar(2000) NULL, ad_window_id numeric(10) NULL, ad_form_id numeric(10) NULL DEFAULT NULL::numeric, CONSTRAINT pa_docstatus_active_check CHECK ((isactive = ANY (ARRAY['Y'::bpchar, 'N'::bpchar]))), CONSTRAINT pa_documentstatus_key PRIMARY KEY (pa_documentstatus_id) ) ;
|
||||
|
||||
-- IDEMPIERE-3338 - document status indicator
|
||||
-- 11/04/2017 18h49min47s BRT
|
||||
INSERT INTO AD_Table (AD_Table_ID,Name,TableName,LoadSeq,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,ImportTable,IsChangeLog,ReplicationType,CopyColumnsFromTable,IsCentrallyMaintained,AD_Table_UU,Processing,DatabaseViewDrop,CopyComponentsFromView) VALUES (200216,'Document Status','PA_DocumentStatus',0,'7',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:49:47','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:49:47','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','N','L','N','Y','902a22b1-891f-4d94-9438-bc305abce6be','N','N','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h49min48s BRT
|
||||
INSERT INTO AD_Sequence (Name,CurrentNext,IsAudited,StartNewYear,Description,IsActive,IsTableID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Sequence_ID,IsAutoSequence,StartNo,IncrementNo,CurrentNextSys,AD_Sequence_UU) VALUES ('PA_DocumentStatus',1000000,'N','N','Table PA_DocumentStatus','Y','Y',0,0,TO_TIMESTAMP('2017-04-11 18:49:47','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:49:47','YYYY-MM-DD HH24:MI:SS'),100,200280,'Y',1000000,1,200000,'c9d7e750-6a14-4ee3-8ab0-0e52bddfc21e')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h50min6s BRT
|
||||
UPDATE AD_Table SET EntityType='D',Updated=TO_TIMESTAMP('2017-04-11 18:50:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200216
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min28s BRT
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203069,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:27','YYYY-MM-DD HH24:MI:SS'),100,'PA_DocumentStatus_ID','Document Status','Document Status','D','a3621f9a-d7b8-4f9d-8609-dc75c9e2c28c')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min28s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212983,0.0,'Document Status',200216,'PA_DocumentStatus_ID',10,'Y','N','Y','N','N','N',13,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:27','YYYY-MM-DD HH24:MI:SS'),100,203069,'N','N','D','N','927e5a19-885a-497a-9ba2-403d2908c1f0','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min28s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (212984,0.0,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200216,129,'AD_Client_ID','@#AD_Client_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:28','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','6a0e08b7-ed09-4fd7-aeb9-44ab50b3bbd8','N','D')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min28s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (212985,0.0,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200216,104,'AD_Org_ID','@#AD_Org_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:28','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','N','1728852b-0ad3-4753-a026-baf63cf1b959','N','D')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min29s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (212986,0.0,'Role','Responsibility Role','The Role determines security and access a user who has this Role will have in the System.',200216,'AD_Role_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:28','YYYY-MM-DD HH24:MI:SS'),100,123,'N','N','D','N','90e9c912-c550-4d02-9f4c-5a92cb7d43af','N','C')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min29s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212987,0.0,'User/Contact','User within the system - Internal or Business Partner Contact','The User identifies a unique user in the system. This could be an internal user or a business partner contact',200216,'AD_User_ID',10,'N','N','N','N','N','N',30,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,138,'N','N','D','N','db3a0dd3-6b5f-408c-844c-c462921029f9','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min29s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212988,0.0,'Project','Financial Project','A Project allows you to track and control internal or external activities.',200216,'C_Project_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,208,'N','N','D','N','9448bc9d-bbde-4138-8690-df718a9d2216','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min29s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212989,0.0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200216,'Created','SYSDATE',29,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','N','6b95d360-5f34-4f49-ba9e-621dee8a9ed5','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min29s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,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,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (212990,0.0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200216,'CreatedBy',10,'N','N','Y','N','N','N',18,110,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:29','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','N','cb2a6103-3572-45b1-a2a8-aa24a35f62b0','N','D')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min30s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212991,0.0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200216,'Updated','SYSDATE',29,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','N','f6d0f676-20de-45a9-b9fd-ac4faf4e1959','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min30s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,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,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (212992,0.0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200216,'UpdatedBy',10,'N','N','Y','N','N','N',18,110,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','N','2104d6ed-0b66-409c-a2e8-45ddd01a24a0','N','D')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min30s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212993,0.0,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200216,'Name',60,'N','N','Y','N','Y','N',10,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','N','fedee024-fd3b-4f3e-bc23-6bda6c4b78db','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min30s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212994,0.0,'Description','Optional short description of the record','A description is limited to 255 characters.',200216,'Description',255,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','N','ad1ad80c-8e42-4780-818e-454bd4355804','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min30s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212995,0.0,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200216,'IsActive','Y',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','b42b23a8-df07-4a4c-8a13-65a97210895f','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min30s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212996,0.0,'Sequence','Method of ordering records; lowest number comes first','The Sequence indicates the order of records',200216,'SeqNo',10,'N','N','Y','N','N','N',11,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:30','YYYY-MM-DD HH24:MI:SS'),100,566,'Y','N','D','N','b59e1982-78d1-453b-88e3-f91547844a4b','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min31s BRT
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203070,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,'name_printcolor_id','Print Color for Name','Print Color for Name','D','beaed179-9c69-4e06-b2ac-06c58ec0aeb0')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min31s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212997,0.0,'Print Color for Name',200216,'name_printcolor_id',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,203070,'Y','N','D','N','037ba00c-ef76-41bb-8900-b7f2b10acfae','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min31s BRT
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203071,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,'name_printfont_id','Print Font for Name','Print Font for Name','D','b52fe533-6588-4e69-93c0-35cae47c5c18')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min31s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212998,0.0,'Print Font for Name',200216,'name_printfont_id',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,203071,'Y','N','D','N','f0089b80-a8e4-45ce-991d-b93b378979de','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min31s BRT
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203072,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,'number_printcolor_id','Print Color for Number','Print Color for Number','D','5b5d4d22-466f-4f5c-aafc-012bb2ae620f')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min31s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (212999,0.0,'Print Color for Number',200216,'number_printcolor_id',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,203072,'Y','N','D','N','39b57a04-849b-46e4-9ef9-43eb38fb5edf','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min32s BRT
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203073,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,'number_printfont_id','Print Font for Number','Print Font for Number','D','de84fd4d-4e60-4d5a-8893-b4c5ff3afe71')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min32s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (213000,0.0,'Print Font for Number',200216,'number_printfont_id',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:31','YYYY-MM-DD HH24:MI:SS'),100,203073,'Y','N','D','N','0cc8ca2f-57b1-41e0-9392-a30af0db55ef','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min32s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (213001,0.0,'Table','Database Table information','The Database Table provides the information of the table definition',200216,'AD_Table_ID',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,126,'Y','N','D','N','e70d6dfe-516d-46c6-91fb-0f7a667a376c','N','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min32s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (213002,0.0,'Sql WHERE','Fully qualified SQL WHERE clause','The Where Clause indicates the SQL WHERE clause to use for record selection. The WHERE clause is added to the query. Fully qualified means "tablename.columnname".',200216,'WhereClause',2000,'N','N','N','N','N','N',14,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,630,'Y','N','D','N','7d2461ca-2e72-4331-8013-320d99c2ec3a','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min32s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (213003,0.0,'Window','Data entry or display window','The Window field identifies a unique Window in the system.',200216,'AD_Window_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,143,'Y','N','D','N','b89f7162-e45f-406d-9e41-9befd58dfb18','N','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h52min33s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (213004,0.0,'Special Form','Special Form','The Special Form field identifies a unique Special Form in the system.',200216,'AD_Form_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:52:32','YYYY-MM-DD HH24:MI:SS'),100,1298,'Y','N','D','N','adca4186-c9b6-483d-a897-9d361cc56d70','N','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min7s BRT
|
||||
INSERT INTO AD_Window (AD_Window_ID,Name,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,WindowType,Processing,EntityType,IsSOTrx,IsDefault,WinHeight,WinWidth,IsBetaFunctionality,AD_Window_UU) VALUES (200090,'Document Status',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:07','YYYY-MM-DD HH24:MI:SS'),100,'M','N','D','Y','N',0,0,'N','121c9bfb-4ba7-4ffc-a180-5fcada879abf')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min29s BRT
|
||||
INSERT INTO AD_Tab (AD_Tab_ID,Name,AD_Window_ID,SeqNo,IsSingleRow,AD_Table_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,HasTree,IsInfoTab,IsTranslationTab,IsReadOnly,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn) VALUES (200222,'Document Status',200090,10,'Y',200216,0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:29','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:29','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N','N',0,'N','D','Y','Y','f8bf9ee8-5766-4360-a841-a3f7e04385c9','B')
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min33s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204399,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200222,212984,'Y',10,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:33','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','54e533e5-8104-416f-85d6-6ef64fa8e488','Y',10,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min33s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (204400,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200222,212985,'Y',10,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:33','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','a1ea7d9b-71c9-4481-8136-bfa0da99b0e3','Y','Y',20,4,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min34s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204401,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200222,212993,'Y',60,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:33','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','130ad7cc-b993-497c-8927-d3bf16fc87b7','Y',30,5)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min34s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204402,'Description','Optional short description of the record','A description is limited to 255 characters.',200222,212994,'Y',255,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','22ade669-d167-4e89-aa2e-420c7576fac0','Y',40,5)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min34s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (204403,'Document Status',200222,212983,'N',10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','fcf1977b-3fee-411a-be63-7ee701ccc8c7','N',2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min34s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204404,'Role','Responsibility Role','The Role determines security and access a user who has this Role will have in the System.',200222,212986,'Y',10,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','fcbda817-0402-4b0a-85d0-e9788d87f1ff','Y',50,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min34s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204405,'User/Contact','User within the system - Internal or Business Partner Contact','The User identifies a unique user in the system. This could be an internal user or a business partner contact',200222,212987,'Y',10,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','b9011734-3dbf-4f76-9625-4ef04321fce2','Y',60,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min34s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLogic,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204406,'Project','Financial Project','A Project allows you to track and control internal or external activities.',200222,212988,'Y','@$Element_PJ@=Y',10,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','95a5f650-d5f5-4281-b636-014e6ebddd28','Y',70,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min35s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204407,'Sequence','Method of ordering records; lowest number comes first','The Sequence indicates the order of records',200222,212996,'Y',10,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','9f4fa5bb-7029-44a0-8d30-bc7693aa9ded','Y',80,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min35s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204408,'Print Color for Name',200222,212997,'Y',10,90,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','b3d42399-056a-4976-bcc9-376008989484','Y',90,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min35s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204409,'Print Font for Name',200222,212998,'Y',10,100,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f2fc28d0-0204-4516-b317-a240b9fbc4e5','Y',100,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min35s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204410,'Print Color for Number',200222,212999,'Y',10,110,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','c4466995-fc95-4a39-a7d0-3e73f4085f94','Y',110,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min35s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204411,'Print Font for Number',200222,213000,'Y',10,120,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','7e1c5b6d-fe2b-4465-aecf-01d82ec54734','Y',120,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min35s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204412,'Table','Database Table information','The Database Table provides the information of the table definition',200222,213001,'Y',10,130,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','aee5d02a-37e6-41d4-9c93-7997132c806b','Y',130,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min36s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan,NumLines) VALUES (204413,'Sql WHERE','Fully qualified SQL WHERE clause','The Where Clause indicates the SQL WHERE clause to use for record selection. The WHERE clause is added to the query. Fully qualified means "tablename.columnname".',200222,213002,'Y',2000,140,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','d0e735e2-db4a-4a36-bb61-f24b2d322f06','Y',140,5,3)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min36s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204414,'Window','Data entry or display window','The Window field identifies a unique Window in the system.',200222,213003,'Y',10,150,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','a4fc124a-b401-403f-b640-29f088f30d71','Y',150,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min36s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204415,'Special Form','Special Form','The Special Form field identifies a unique Special Form in the system.',200222,213004,'Y',10,160,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f7c41944-d538-45e0-9d7b-e1ac783bbca4','Y',160,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min36s BRT
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,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) VALUES (204416,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200222,212995,'Y',1,170,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-11 18:53:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 18:53:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','330a2d54-eceb-43f0-b23e-fcd87ddd053e','Y',170,2,2)
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h53min52s BRT
|
||||
UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:53:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204403
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204416
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204404
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204405
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204406
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET SeqNo=90, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204407
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204408
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=130, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204410
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET SeqNo=140, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204412
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET SeqNo=150, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204413
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET SeqNo=160, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204414
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h56min17s BRT
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=170, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204415
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h59min31s BRT
|
||||
UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=266, FKConstraintType=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:59:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212997
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h59min43s BRT
|
||||
UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=266, FKConstraintType=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:59:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212998
|
||||
;
|
||||
|
||||
-- 11/04/2017 18h59min56s BRT
|
||||
UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=266, FKConstraintType=NULL,Updated=TO_TIMESTAMP('2017-04-11 18:59:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212999
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h0min6s BRT
|
||||
UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=266, FKConstraintType=NULL,Updated=TO_TIMESTAMP('2017-04-11 19:00:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213000
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h0min45s BRT
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203076,0,0,'Y',TO_TIMESTAMP('2017-04-11 19:00:44','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 19:00:44','YYYY-MM-DD HH24:MI:SS'),100,'PA_DocumentStatus_UU','PA_DocumentStatus_UU','PA_DocumentStatus_UU','D','8c2e3e95-1e24-4189-b3cc-c516e8c132a8')
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h0min45s BRT
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (213007,1.0,'PA_DocumentStatus_UU',200216,'PA_DocumentStatus_UU',36,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2017-04-11 19:00:44','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 19:00:44','YYYY-MM-DD HH24:MI:SS'),100,203076,'Y','N','D','N','a44a25de-f95f-4806-bdc5-2e54305ca0bb','N')
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h0min45s BRT
|
||||
ALTER TABLE PA_DocumentStatus ADD COLUMN PA_DocumentStatus_UU VARCHAR(36) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h0min45s BRT
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT PA_DocumentStatus_UU_idx UNIQUE (PA_DocumentStatus_UU)
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h1min59s BRT
|
||||
UPDATE AD_Table SET AD_Window_ID=200090,Updated=TO_TIMESTAMP('2017-04-11 19:01:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200216
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h2min26s BRT
|
||||
UPDATE AD_Table SET Name='Document Status Indicator',Updated=TO_TIMESTAMP('2017-04-11 19:02:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200216
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h2min45s BRT
|
||||
UPDATE AD_Tab SET Name='Document Status Indicator',Updated=TO_TIMESTAMP('2017-04-11 19:02:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200222
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min28s BRT
|
||||
INSERT INTO AD_Menu (AD_Menu_ID,Name,"action",AD_Window_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,AD_Menu_UU) VALUES (200145,'Document Status Indicator','W',200090,0,0,'Y',TO_TIMESTAMP('2017-04-11 19:03:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 19:03:28','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','D','Y','6e7804fa-ea65-4f7c-b724-ba3ec71ca0a2')
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min28s BRT
|
||||
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', statement_timestamp(), 100, statement_timestamp(), 100,t.AD_Tree_ID, 200145, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200145)
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=218
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=153
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=263
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=166
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=203
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53242
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=236
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=183
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=160
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=278
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=345
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53296
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53014
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53108
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200145
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53203
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=586
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=138
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=139
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200065
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200063
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=249
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=141
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=300
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=589
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200000
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=295
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=13, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=216
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=14, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=140
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=15, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=142
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=16, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53012
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=17, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=143
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=18, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=201
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=19, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=176
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=20, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200072
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=21, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53086
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=22, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=239
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=23, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=517
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=24, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=499
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=25, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53089
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=26, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53090
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=27, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200038
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=28, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200141
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h3min47s BRT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=29, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=50001
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h4min42s BRT
|
||||
INSERT INTO PA_DashboardContent (Name,AD_Org_ID,Created,CreatedBy,UpdatedBy,IsActive,Line,Updated,AD_Client_ID,PA_DashboardContent_ID,ColumnNo,ZulFilePath,IsCollapsible,GoalDisplay,PA_DashboardContent_UU,IsShowInDashboard,IsEmbedReportContent,IsCollapsedByDefault,AD_User_ID,AD_Role_ID,IsShowinLogin) VALUES ('Document Status window display',0,TO_TIMESTAMP('2017-04-11 19:04:42','YYYY-MM-DD HH24:MI:SS'),100,100,'Y',0,TO_TIMESTAMP('2017-04-11 19:04:42','YYYY-MM-DD HH24:MI:SS'),0,200003,1,'/zul/docstatus.zul','Y','T','ff808989-6264-4c4c-98a9-83c8b0fe00ef','Y','N','N',0,0,'Y')
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h5min43s BRT
|
||||
UPDATE AD_Column SET AD_Reference_Value_ID=267,Updated=TO_TIMESTAMP('2017-04-11 19:05:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212998
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h5min49s BRT
|
||||
UPDATE AD_Column SET AD_Reference_Value_ID=267,Updated=TO_TIMESTAMP('2017-04-11 19:05:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213000
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h6min40s BRT
|
||||
INSERT INTO PA_DocumentStatus (PA_DocumentStatus_ID,AD_Client_ID,AD_Org_ID,AD_Role_ID,AD_User_ID,Created,CreatedBy,Updated,UpdatedBy,Name,IsActive,SeqNo,name_printcolor_id,name_printfont_id,number_printcolor_id,number_printfont_id,AD_Table_ID,WhereClause,AD_Window_ID,PA_DocumentStatus_UU) VALUES (200000,11,0,null,null,TO_TIMESTAMP('2017-04-11 19:06:39','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 19:06:39','YYYY-MM-DD HH24:MI:SS'),100,'Sales Orders received today','Y',50,100,129,102,129,259,'C_Order.IsSoTrx=''Y'' and c_Order.DateOrdered > SYSDATE-1',143,'07fa8eef-2ad7-476a-b1ce-ebc6a5caf6fc')
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h7min35s BRT
|
||||
INSERT INTO PA_DocumentStatus (PA_DocumentStatus_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Name,IsActive,SeqNo,name_printcolor_id,name_printfont_id,number_printcolor_id,number_printfont_id,AD_Table_ID,WhereClause,AD_Window_ID,PA_DocumentStatus_UU) VALUES (200001,11,0,TO_TIMESTAMP('2017-04-11 19:07:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-11 19:07:35','YYYY-MM-DD HH24:MI:SS'),100,'Pending Customer Shipments','Y',60,100,129,102,129,319,'M_InOut.IsSOTrx=''Y'' AND M_InOut.Processed=''N''',169,'e6df3b28-7ba1-4277-99e8-fa4ff9bfd082')
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h7min49s BRT
|
||||
UPDATE AD_Column SET DefaultValue='-1',Updated=TO_TIMESTAMP('2017-04-11 19:07:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212986
|
||||
;
|
||||
|
||||
-- 11/04/2017 19h8min18s BRT
|
||||
UPDATE AD_Column SET DefaultValue='-1',Updated=TO_TIMESTAMP('2017-04-11 19:08:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212987
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 5:59:43 PM CEST
|
||||
UPDATE AD_Table SET IsChangeLog='Y',Updated=TO_TIMESTAMP('2017-04-12 17:59:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200216
|
||||
;
|
||||
|
||||
-- IDEMPIERE-3338 Document Status Indicator
|
||||
-- Apr 12, 2017 6:20:01 PM CEST
|
||||
UPDATE PA_DashboardContent SET IsActive='N',Updated=TO_TIMESTAMP('2017-04-12 18:20:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE PA_DashboardContent_ID=50000
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 6:20:14 PM CEST
|
||||
UPDATE PA_DashboardContent SET Name='Activities', ColumnNo=0,Updated=TO_TIMESTAMP('2017-04-12 18:20:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE PA_DashboardContent_ID=200003
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 6:23:42 PM CEST
|
||||
INSERT INTO PA_DocumentStatus (PA_DocumentStatus_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Name,IsActive,SeqNo,name_printcolor_id,name_printfont_id,number_printcolor_id,number_printfont_id,AD_Table_ID,WhereClause,AD_Window_ID,PA_DocumentStatus_UU) VALUES (200002,0,0,TO_TIMESTAMP('2017-04-12 18:23:42','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 18:23:42','YYYY-MM-DD HH24:MI:SS'),10,'Notice','Y',10,100,131,100,131,389,'AD_Client_ID=@#AD_Client_ID@ AND AD_User_ID IN (0,@#AD_User_ID@) AND Processed=''N'' AND AD_BroadcastMessage_ID IS NULL',193,'5243bd4a-7da4-44bb-90dd-08846ad3fcf1')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:23:51 PM CEST
|
||||
INSERT INTO PA_DocumentStatus (PA_DocumentStatus_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Name,IsActive,SeqNo,name_printcolor_id,name_printfont_id,number_printcolor_id,number_printfont_id,AD_Table_ID,WhereClause,AD_Window_ID,PA_DocumentStatus_UU) VALUES (200003,0,0,TO_TIMESTAMP('2017-04-12 19:23:51','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:23:51','YYYY-MM-DD HH24:MI:SS'),100,'Request','Y',20,100,131,100,131,417,'(SalesRep_ID=@#AD_User_ID@ OR AD_Role_ID=@#AD_Role_ID@) AND Processed=''N'' AND (DateNextAction IS NULL OR TRUNC(DateNextAction) <= TRUNC(SysDate)) AND (R_Status_ID IS NULL OR R_Status_ID IN (SELECT R_Status_ID FROM R_Status WHERE IsClosed=''N''))',201,'202b749a-cf08-41fc-b93c-67c6a28a6786')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:27:03 PM CEST
|
||||
INSERT INTO PA_DocumentStatus (PA_DocumentStatus_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Name,IsActive,SeqNo,name_printcolor_id,name_printfont_id,number_printcolor_id,number_printfont_id,AD_Table_ID,WhereClause,AD_Form_ID,PA_DocumentStatus_UU) VALUES (200004,0,0,TO_TIMESTAMP('2017-04-12 19:27:03','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:27:03','YYYY-MM-DD HH24:MI:SS'),100,'Request','Y',30,100,131,100,131,644,'a.Processed=''N'' AND a.WFState=''OS'' AND ("
|
||||
/* Owner of Activity */
|
||||
a.AD_User_ID=@#AD_User_ID@
|
||||
/* Invoker (if no invoker = all) */
|
||||
OR EXISTS (SELECT * FROM AD_WF_Responsible r WHERE a.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID"
|
||||
AND r.ResponsibleType=''H'' AND COALESCE(r.AD_User_ID,0)=0 AND COALESCE(r.AD_Role_ID,0)=0 AND (a.AD_User_ID=@#AD_User_ID@ OR a.AD_User_ID IS NULL))
|
||||
/* Responsible User */
|
||||
OR EXISTS (SELECT * FROM AD_WF_Responsible r WHERE a.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID"
|
||||
AND r.ResponsibleType=''H'' AND r.AD_User_ID=@#AD_User_ID@)
|
||||
/* Responsible Role */
|
||||
OR EXISTS (SELECT * FROM AD_WF_Responsible r INNER JOIN AD_User_Roles ur ON (r.AD_Role_ID=ur.AD_Role_ID)"
|
||||
WHERE a.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID AND r.ResponsibleType=''R'' AND ur.AD_User_ID=@#AD_User_ID@)
|
||||
) AND a.AD_Client_ID=@#AD_Client_ID@
|
||||
',117,'fc908088-6254-4e4f-b070-0de535fef6fd')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:28:32 PM CEST
|
||||
INSERT INTO PA_DocumentStatus (PA_DocumentStatus_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Name,IsActive,SeqNo,name_printcolor_id,name_printfont_id,number_printcolor_id,number_printfont_id,AD_Table_ID,WhereClause,AD_Window_ID,PA_DocumentStatus_UU) VALUES (200005,0,0,TO_TIMESTAMP('2017-04-12 19:28:31','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:28:31','YYYY-MM-DD HH24:MI:SS'),100,'Unprocessed Documents','Y',40,100,131,100,131,53221,'AD_Client_ID=@#AD_Client_ID@ AND CreatedBy=@#AD_User_ID@',53086,'3b78213b-9cd6-44a8-81d9-65e84b91bfdc')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:33:08 PM CEST
|
||||
UPDATE PA_DocumentStatus SET WhereClause='AD_WF_Activity.Processed=''N'' AND AD_WF_Activity.WFState=''OS'' AND (
|
||||
/* Owner of Activity */
|
||||
AD_WF_Activity.AD_User_ID=@#AD_User_ID@
|
||||
/* Invoker (if no invoker = all) */
|
||||
OR EXISTS (SELECT * FROM AD_WF_Responsible r WHERE AD_WF_Activity.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID
|
||||
AND r.ResponsibleType=''H'' AND COALESCE(r.AD_User_ID,0)=0 AND COALESCE(r.AD_Role_ID,0)=0 AND (AD_WF_Activity.AD_User_ID=@#AD_User_ID@ OR AD_WF_Activity.AD_User_ID IS NULL))
|
||||
/* Responsible User */
|
||||
OR EXISTS (SELECT * FROM AD_WF_Responsible r WHERE AD_WF_Activity.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID
|
||||
AND r.ResponsibleType=''H'' AND r.AD_User_ID=@#AD_User_ID@)
|
||||
/* Responsible Role */
|
||||
OR EXISTS (SELECT * FROM AD_WF_Responsible r INNER JOIN AD_User_Roles ur ON (r.AD_Role_ID=ur.AD_Role_ID)
|
||||
WHERE AD_WF_Activity.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID AND r.ResponsibleType=''R'' AND ur.AD_User_ID=@#AD_User_ID@)
|
||||
) AND AD_WF_Activity.AD_Client_ID=@#AD_Client_ID@',Updated=TO_TIMESTAMP('2017-04-12 19:33:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE PA_DocumentStatus_ID=200004
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:33:59 PM CEST
|
||||
UPDATE PA_DocumentStatus SET Name='Workflow Activities',Updated=TO_TIMESTAMP('2017-04-12 19:33:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE PA_DocumentStatus_ID=200004
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:37:14 PM CEST
|
||||
UPDATE AD_Tab SET OrderByClause='PA_DocumentStatus.SeqNo',Updated=TO_TIMESTAMP('2017-04-12 19:37:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200222
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:44:46 PM CEST
|
||||
INSERT INTO AD_Table (AD_Table_ID,Name,Description,AD_Window_ID,TableName,LoadSeq,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,IsChangeLog,ReplicationType,IsCentrallyMaintained,AD_Table_UU,Processing) VALUES (200217,'Document Status Trl',NULL,200090,'PA_DocumentStatus_Trl',145,'7',0,0,'Y',TO_TIMESTAMP('2017-04-12 19:44:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:44:46','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','L','Y','4b3df9cc-86c7-4fb3-9b35-10b6ec28de7e','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:44:46 PM CEST
|
||||
INSERT INTO AD_Sequence (Name,CurrentNext,IsAudited,StartNewYear,Description,IsActive,IsTableID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Sequence_ID,IsAutoSequence,StartNo,IncrementNo,CurrentNextSys,AD_Sequence_UU) VALUES ('PA_DocumentStatus_Trl',1000000,'N','N','Table PA_DocumentStatus_Trl','Y','Y',0,0,TO_TIMESTAMP('2017-04-12 19:44:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:44:46','YYYY-MM-DD HH24:MI:SS'),100,200281,'Y',1000000,1,200000,'48314e8b-356c-48fd-bb18-95386def6cf3')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:10 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,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,IsToolbarButton,IsSecure,FKConstraintType) VALUES (213008,1,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200217,129,'AD_Client_ID','@AD_Client_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:45:10','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:45:10','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','N','N','Y','7652cb1e-f3ea-4ee7-b308-8b538eebf5f8','N','N','N','D')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:11 PM CEST
|
||||
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,IsToolbarButton,IsSecure,FKConstraintType) VALUES (213009,1,'Column','Column in the table','Link to the database column of the table',200217,'AD_Column_ID',22,'N','Y','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:45:10','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:45:10','YYYY-MM-DD HH24:MI:SS'),100,104,'N','N','D','N','N','N','Y','1b4493d8-8994-41ea-9d3d-5f134cd1d198','Y','N','N','C')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:11 PM CEST
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203077,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:45:11','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:45:11','YYYY-MM-DD HH24:MI:SS'),100,'PA_DocumentStatus_Trl_UU','PA_DocumentStatus_Trl_UU','PA_DocumentStatus_Trl_UU','D','a5557e5f-8777-43f6-89d7-6c9794616afb')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:11 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,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,IsToolbarButton,IsSecure) VALUES (213010,1.00,'PA_DocumentStatus_Trl_UU',200217,'PA_DocumentStatus_Trl_UU',36,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:45:11','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:45:11','YYYY-MM-DD HH24:MI:SS'),100,203077,'Y','N','D','N','N','N','Y','bd57b0dc-f859-485a-a8a2-2cd8627986a3','N','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:12 PM CEST
|
||||
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,IsToolbarButton,IsSecure,FKConstraintType) VALUES (213011,1,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200217,'AD_Language',6,'N','Y','Y','N','N',0,'N',18,106,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:45:11','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:45:11','YYYY-MM-DD HH24:MI:SS'),100,109,'N','N','D','N','N','N','Y','1f56790c-872a-49f3-ab50-266254f9de72','Y','N','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:12 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,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,IsToolbarButton,IsSecure,FKConstraintType) VALUES (213012,1,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200217,104,'AD_Org_ID','@AD_Org_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:45:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:45:12','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','N','N','N','Y','dbdce8aa-6e2b-4f06-a806-23f2f807dd94','N','N','N','D')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:13 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,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,IsToolbarButton,IsSecure) VALUES (213013,1,'Created','Date this record was created','The Created field indicates the date that this record was created.',200217,'Created','SYSDATE',7,'N','N','Y','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:45:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:45:12','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','N','N','N','Y','c673a880-09c1-4e62-bba9-3d2dd3ae3c13','N','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:13 PM CEST
|
||||
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,IsToolbarButton,IsSecure,FKConstraintType) VALUES (213014,1,'Created By','User who created this records','The Created By field indicates the user who created this record.',200217,'CreatedBy',22,'N','N','Y','N','N',0,'N',18,110,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:45:13','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:45:13','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','N','N','N','Y','d80db012-4c4c-427d-bf93-893c549b1d84','N','N','N','D')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:13 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,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,IsToolbarButton,IsSecure) VALUES (213015,1,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200217,'IsActive','Y',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:45:13','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:45:13','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','N','N','Y','8c9f048b-cddb-4e25-b1a2-9298c10e6d18','N','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:14 PM CEST
|
||||
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,IsToolbarButton,IsSecure) VALUES (213016,1,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200217,'IsTranslated',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:45:13','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:45:13','YYYY-MM-DD HH24:MI:SS'),100,420,'Y','N','D','N','N','N','Y','0255dbe6-841d-4ed8-824d-1ab18c11c90f','Y','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:14 PM CEST
|
||||
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,IsToolbarButton,IsSecure) VALUES (213017,1,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200217,'Name',60,'N','N','Y','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:45:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:45:14','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','N','N','N','Y','8729a576-e682-4776-ae44-b087e69e794a','Y','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:14 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,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,IsToolbarButton,IsSecure) VALUES (213018,1,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200217,'Updated','SYSDATE',7,'N','N','Y','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:45:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:45:14','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','N','N','N','Y','7de627e8-f738-496e-888e-67ac2ea9eecd','N','N','N')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:45:15 PM CEST
|
||||
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,IsToolbarButton,IsSecure,FKConstraintType) VALUES (213019,1,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200217,'UpdatedBy',22,'N','N','Y','N','N',0,'N',18,110,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:45:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:45:14','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','N','N','N','Y','33ba98a5-9c99-49e6-addb-0c059408153c','N','N','N','D')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:46:15 PM CEST
|
||||
UPDATE AD_Column SET IsTranslated='Y',Updated=TO_TIMESTAMP('2017-04-12 19:46:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212993
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:23 PM CEST
|
||||
UPDATE AD_Element SET ColumnName='Name_PrintColor_ID', EntityType='D',Updated=TO_TIMESTAMP('2017-04-12 19:47:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203070
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:23 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='Name_PrintColor_ID', Name='Print Color for Name', Description=NULL, Help=NULL WHERE AD_Element_ID=203070
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:23 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Name_PrintColor_ID', Name='Print Color for Name', Description=NULL, Help=NULL, AD_Element_ID=203070 WHERE UPPER(ColumnName)='NAME_PRINTCOLOR_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:23 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Name_PrintColor_ID', Name='Print Color for Name', Description=NULL, Help=NULL WHERE AD_Element_ID=203070 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:23 PM CEST
|
||||
UPDATE AD_InfoColumn SET ColumnName='Name_PrintColor_ID', Name='Print Color for Name', Description=NULL, Help=NULL WHERE AD_Element_ID=203070 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:50 PM CEST
|
||||
UPDATE AD_Element SET ColumnName='Name_PrintFont_ID', EntityType='D',Updated=TO_TIMESTAMP('2017-04-12 19:47:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203071
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:50 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='Name_PrintFont_ID', Name='Print Font for Name', Description=NULL, Help=NULL WHERE AD_Element_ID=203071
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:50 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Name_PrintFont_ID', Name='Print Font for Name', Description=NULL, Help=NULL, AD_Element_ID=203071 WHERE UPPER(ColumnName)='NAME_PRINTFONT_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:50 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Name_PrintFont_ID', Name='Print Font for Name', Description=NULL, Help=NULL WHERE AD_Element_ID=203071 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:47:50 PM CEST
|
||||
UPDATE AD_InfoColumn SET ColumnName='Name_PrintFont_ID', Name='Print Font for Name', Description=NULL, Help=NULL WHERE AD_Element_ID=203071 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:24 PM CEST
|
||||
UPDATE AD_Element SET ColumnName='Number_PrintColor_ID', EntityType='D',Updated=TO_TIMESTAMP('2017-04-12 19:48:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203072
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:24 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='Number_PrintColor_ID', Name='Print Color for Number', Description=NULL, Help=NULL WHERE AD_Element_ID=203072
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:24 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Number_PrintColor_ID', Name='Print Color for Number', Description=NULL, Help=NULL, AD_Element_ID=203072 WHERE UPPER(ColumnName)='NUMBER_PRINTCOLOR_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:24 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Number_PrintColor_ID', Name='Print Color for Number', Description=NULL, Help=NULL WHERE AD_Element_ID=203072 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:24 PM CEST
|
||||
UPDATE AD_InfoColumn SET ColumnName='Number_PrintColor_ID', Name='Print Color for Number', Description=NULL, Help=NULL WHERE AD_Element_ID=203072 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:37 PM CEST
|
||||
UPDATE AD_Element SET ColumnName='Number_PrintFont_ID', EntityType='D',Updated=TO_TIMESTAMP('2017-04-12 19:48:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203073
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:37 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='Number_PrintFont_ID', Name='Print Font for Number', Description=NULL, Help=NULL WHERE AD_Element_ID=203073
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:37 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Number_PrintFont_ID', Name='Print Font for Number', Description=NULL, Help=NULL, AD_Element_ID=203073 WHERE UPPER(ColumnName)='NUMBER_PRINTFONT_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:37 PM CEST
|
||||
UPDATE AD_Process_Para SET ColumnName='Number_PrintFont_ID', Name='Print Font for Number', Description=NULL, Help=NULL WHERE AD_Element_ID=203073 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:48:37 PM CEST
|
||||
UPDATE AD_InfoColumn SET ColumnName='Number_PrintFont_ID', Name='Print Font for Number', Description=NULL, Help=NULL WHERE AD_Element_ID=203073 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:05 PM CEST
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='ADColumn_PADocumentStatusTrl', FKConstraintType='C',Updated=TO_TIMESTAMP('2017-04-12 19:51:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213009
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:05 PM CEST
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='ADLanguage_PADocumentStatusTrl', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-04-12 19:51:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213011
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:05 PM CEST
|
||||
CREATE TABLE PA_DocumentStatus_Trl (AD_Client_ID NUMERIC(10) NOT NULL, PA_DocumentStatus_ID NUMERIC(10) NOT NULL, AD_Language VARCHAR(6) NOT NULL, AD_Org_ID NUMERIC(10) NOT NULL, Created TIMESTAMP DEFAULT statement_timestamp() NOT NULL, CreatedBy NUMERIC(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, IsTranslated CHAR(1) CHECK (IsTranslated IN ('Y','N')) NOT NULL, Name VARCHAR(60) NOT NULL, PA_DocumentStatus_Trl_UU VARCHAR(36) DEFAULT NULL , Updated TIMESTAMP DEFAULT statement_timestamp() NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, CONSTRAINT PA_DocumentStatus_Trl_UU_idx UNIQUE (PA_DocumentStatus_Trl_UU))
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:05 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus_Trl ADD CONSTRAINT PADocumentStatus_PADocumentSta FOREIGN KEY (PA_DocumentStatus_ID) REFERENCES pa_documentstatus(pa_documentstatus_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:05 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus_Trl ADD CONSTRAINT ADLanguage_PADocumentStatusTrl FOREIGN KEY (AD_Language) REFERENCES ad_language(ad_language) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:42 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='ADForm_PADocumentStatus', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-04-12 19:51:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213004
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:42 PM CEST
|
||||
INSERT INTO t_alter_column values('pa_documentstatus','AD_Form_ID','NUMERIC(10)',null,'NULL')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:42 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT ADForm_PADocumentStatus FOREIGN KEY (AD_Form_ID) REFERENCES ad_form(ad_form_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:53 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='ADRole_PADocumentStatus', FKConstraintType='C',Updated=TO_TIMESTAMP('2017-04-12 19:51:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212986
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:53 PM CEST
|
||||
INSERT INTO t_alter_column values('pa_documentstatus','AD_Role_ID','NUMERIC(10)',null,'NULL')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:51:53 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT ADRole_PADocumentStatus FOREIGN KEY (AD_Role_ID) REFERENCES ad_role(ad_role_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:02 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='ADTable_PADocumentStatus', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-04-12 19:52:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213001
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:02 PM CEST
|
||||
INSERT INTO t_alter_column values('pa_documentstatus','AD_Table_ID','NUMERIC(10)',null,null)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:02 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT ADTable_PADocumentStatus FOREIGN KEY (AD_Table_ID) REFERENCES ad_table(ad_table_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:07 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='ADUser_PADocumentStatus', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-04-12 19:52:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212987
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:07 PM CEST
|
||||
INSERT INTO t_alter_column values('pa_documentstatus','AD_User_ID','NUMERIC(10)',null,'NULL')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:07 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT ADUser_PADocumentStatus FOREIGN KEY (AD_User_ID) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:14 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='ADWindow_PADocumentStatus', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-04-12 19:52:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213003
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:14 PM CEST
|
||||
INSERT INTO t_alter_column values('pa_documentstatus','AD_Window_ID','NUMERIC(10)',null,'NULL')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:14 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT ADWindow_PADocumentStatus FOREIGN KEY (AD_Window_ID) REFERENCES ad_window(ad_window_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:21 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='CProject_PADocumentStatus', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-04-12 19:52:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212988
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:21 PM CEST
|
||||
INSERT INTO t_alter_column values('pa_documentstatus','C_Project_ID','NUMERIC(10)',null,'NULL')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:21 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT CProject_PADocumentStatus FOREIGN KEY (C_Project_ID) REFERENCES c_project(c_project_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:38 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='NamePrintColor_PADocumentStatu', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-04-12 19:52:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212997
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:38 PM CEST
|
||||
INSERT INTO t_alter_column values('pa_documentstatus','Name_PrintColor_ID','NUMERIC(10)',null,null)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:38 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT NamePrintColor_PADocumentStatu FOREIGN KEY (Name_PrintColor_ID) REFERENCES ad_printcolor(ad_printcolor_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:44 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='NamePrintFont_PADocumentStatus', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-04-12 19:52:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212998
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:44 PM CEST
|
||||
INSERT INTO t_alter_column values('pa_documentstatus','Name_PrintFont_ID','NUMERIC(10)',null,null)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:44 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT NamePrintFont_PADocumentStatus FOREIGN KEY (Name_PrintFont_ID) REFERENCES ad_printfont(ad_printfont_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:49 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='NumberPrintColor_PADocumentSta', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-04-12 19:52:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=212999
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:49 PM CEST
|
||||
INSERT INTO t_alter_column values('pa_documentstatus','Number_PrintColor_ID','NUMERIC(10)',null,null)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:49 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT NumberPrintColor_PADocumentSta FOREIGN KEY (Number_PrintColor_ID) REFERENCES ad_printcolor(ad_printcolor_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:53 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='NumberPrintFont_PADocumentStat', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-04-12 19:52:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213000
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:53 PM CEST
|
||||
INSERT INTO t_alter_column values('pa_documentstatus','Number_PrintFont_ID','NUMERIC(10)',null,null)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:52:53 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus ADD CONSTRAINT NumberPrintFont_PADocumentStat FOREIGN KEY (Number_PrintFont_ID) REFERENCES ad_printfont(ad_printfont_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:54:34 PM CEST
|
||||
INSERT INTO AD_Tab (AD_Tab_ID,Name,AD_Window_ID,SeqNo,IsSingleRow,AD_Table_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,HasTree,IsInfoTab,IsTranslationTab,IsReadOnly,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn) VALUES (200223,'Document Status Translation',200090,20,'Y',200217,0,0,'Y',TO_TIMESTAMP('2017-04-12 19:54:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:54:34','YYYY-MM-DD HH24:MI:SS'),100,'N','N','Y','N','N','N',1,'N','D','N','N','16c4fe42-d942-4297-bb65-2724fd7cb9c2','B')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:50 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204417,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200223,213008,'Y',22,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-12 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','15123f16-e255-4268-80e6-a98d49001584','Y',10,2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:50 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (204418,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200223,213012,'Y',22,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-12 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','48191488-6fd2-43b6-a4f5-f5a71729b547','Y','Y',20,4,2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:51 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204419,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200223,213017,'Y',60,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-12 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','1bf6cf12-c803-48d2-bc90-5daedfa723ca','Y',30,5)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:51 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204420,'Column','Column in the table','Link to the database column of the table',200223,213009,'Y',22,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-12 19:57:51','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:57:51','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','d8d17984-1d12-4f59-9b58-e74ea680d608','Y',40,2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:51 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (204421,'PA_DocumentStatus_Trl_UU',200223,213010,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-12 19:57:51','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:57:51','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ee8f2240-8427-464d-9623-38d25e2ff8d3','N',2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:52 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (204422,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200223,213011,'Y',6,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-12 19:57:51','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:57:51','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','74e8ff6f-7eec-4c20-baa7-7d4ddcd8933c','Y',50,2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:53 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,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) VALUES (204423,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200223,213016,'Y',1,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-12 19:57:52','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:57:52','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','18f64c4e-57ac-4e38-967e-08a69b47d924','Y',60,2,2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:57:53 PM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,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) VALUES (204424,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200223,213015,'Y',1,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2017-04-12 19:57:53','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-04-12 19:57:53','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','c8f4c5bc-2fdc-4117-9693-c96b92b46ab9','Y',70,2,2)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:58:22 PM CEST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-12 19:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204420
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:58:22 PM CEST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-12 19:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204422
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:58:22 PM CEST
|
||||
UPDATE AD_Field SET SeqNo=50, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-12 19:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204419
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:58:22 PM CEST
|
||||
UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-12 19:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204421
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:58:57 PM CEST
|
||||
UPDATE AD_Column SET Name='Document Status', Description=NULL, Help=NULL, ColumnName='PA_DocumentStatus_ID', FieldLength=10, AD_Element_ID=203069, IsUpdateable='N', FKConstraintName=NULL, FKConstraintType='N',Updated=TO_TIMESTAMP('2017-04-12 19:58:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213009
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 7:58:58 PM CEST
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='PADocumentStatus_PADocumentSta', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-04-12 19:58:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213009
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 8:00:17 PM CEST
|
||||
UPDATE AD_Field SET Name='Document Status', Description=NULL, Help=NULL, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2017-04-12 20:00:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204420
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 8:14:49 PM CEST
|
||||
INSERT INTO AD_TableIndex (AD_Client_ID,AD_Org_ID,AD_TableIndex_ID,AD_TableIndex_UU,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,AD_Table_ID,IsCreateConstraint,IsUnique,Processing,TableIndexDrop,IsKey) VALUES (0,0,201041,'f3338dcb-c411-4f07-934e-9a0b01172a73',TO_TIMESTAMP('2017-04-12 20:14:49','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','pa_documentstatus_trl_pkey',TO_TIMESTAMP('2017-04-12 20:14:49','YYYY-MM-DD HH24:MI:SS'),100,200217,'Y','Y','N','N','Y')
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 8:15:16 PM CEST
|
||||
INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201276,'571005cd-0f89-45ce-9b87-f91d005b099e',TO_TIMESTAMP('2017-04-12 20:15:16','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2017-04-12 20:15:16','YYYY-MM-DD HH24:MI:SS'),100,213009,201041,10)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 8:15:25 PM CEST
|
||||
INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201277,'53eee079-7aca-45a6-badb-8bcf5ea1c4f7',TO_TIMESTAMP('2017-04-12 20:15:25','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2017-04-12 20:15:25','YYYY-MM-DD HH24:MI:SS'),100,213011,201041,20)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 8:15:30 PM CEST
|
||||
ALTER TABLE PA_DocumentStatus_Trl ADD CONSTRAINT pa_documentstatus_trl_pkey PRIMARY KEY (PA_DocumentStatus_ID,AD_Language)
|
||||
;
|
||||
|
||||
-- Apr 12, 2017 9:05:00 PM CEST
|
||||
UPDATE AD_Tab SET IsTranslationTab='N',Updated=TO_TIMESTAMP('2017-04-12 21:05:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200223
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201704112221_IDEMPIERE-3338.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,306 @@
|
|||
/******************************************************************************
|
||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for PA_DocumentStatus
|
||||
* @author Adempiere (generated)
|
||||
* @version 1.04.1rc19
|
||||
*/
|
||||
public interface I_PA_DocumentStatus
|
||||
{
|
||||
|
||||
/** TableName=PA_DocumentStatus */
|
||||
public static final String Table_Name = "PA_DocumentStatus";
|
||||
|
||||
/** AD_Table_ID=53898 */
|
||||
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 7 - System - Client - Org
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(7);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_Form_ID */
|
||||
public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID";
|
||||
|
||||
/** Set Special Form.
|
||||
* Special Form
|
||||
*/
|
||||
public void setAD_Form_ID (int AD_Form_ID);
|
||||
|
||||
/** Get Special Form.
|
||||
* Special Form
|
||||
*/
|
||||
public int getAD_Form_ID();
|
||||
|
||||
public I_AD_Form getAD_Form() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organisation.
|
||||
* Organisational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organisation.
|
||||
* Organisational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name AD_Role_ID */
|
||||
public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID";
|
||||
|
||||
/** Set Role.
|
||||
* Responsibility Role
|
||||
*/
|
||||
public void setAD_Role_ID (int AD_Role_ID);
|
||||
|
||||
/** Get Role.
|
||||
* Responsibility Role
|
||||
*/
|
||||
public int getAD_Role_ID();
|
||||
|
||||
public I_AD_Role getAD_Role() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Table_ID */
|
||||
public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID";
|
||||
|
||||
/** Set Table.
|
||||
* Database Table information
|
||||
*/
|
||||
public void setAD_Table_ID (int AD_Table_ID);
|
||||
|
||||
/** Get Table.
|
||||
* Database Table information
|
||||
*/
|
||||
public int getAD_Table_ID();
|
||||
|
||||
public I_AD_Table getAD_Table() throws RuntimeException;
|
||||
|
||||
/** Column name AD_User_ID */
|
||||
public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
|
||||
|
||||
/** Set User/Contact.
|
||||
* User within the system - Internal or Business Partner Contact
|
||||
*/
|
||||
public void setAD_User_ID (int AD_User_ID);
|
||||
|
||||
/** Get User/Contact.
|
||||
* User within the system - Internal or Business Partner Contact
|
||||
*/
|
||||
public int getAD_User_ID();
|
||||
|
||||
public I_AD_User getAD_User() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Window_ID */
|
||||
public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID";
|
||||
|
||||
/** Set Window.
|
||||
* Data entry or display window
|
||||
*/
|
||||
public void setAD_Window_ID (int AD_Window_ID);
|
||||
|
||||
/** Get Window.
|
||||
* Data entry or display window
|
||||
*/
|
||||
public int getAD_Window_ID();
|
||||
|
||||
public I_AD_Window getAD_Window() throws RuntimeException;
|
||||
|
||||
/** Column name C_Project_ID */
|
||||
public static final String COLUMNNAME_C_Project_ID = "C_Project_ID";
|
||||
|
||||
/** Set Project.
|
||||
* Financial Project
|
||||
*/
|
||||
public void setC_Project_ID (int C_Project_ID);
|
||||
|
||||
/** Get Project.
|
||||
* Financial Project
|
||||
*/
|
||||
public int getC_Project_ID();
|
||||
|
||||
public I_C_Project getC_Project() throws RuntimeException;
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name Description */
|
||||
public static final String COLUMNNAME_Description = "Description";
|
||||
|
||||
/** Set Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description);
|
||||
|
||||
/** Get Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public String getDescription();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name Name */
|
||||
public static final String COLUMNNAME_Name = "Name";
|
||||
|
||||
/** Set Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name);
|
||||
|
||||
/** Get Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName();
|
||||
|
||||
/** Column name Name_PrintColor_ID */
|
||||
public static final String COLUMNNAME_Name_PrintColor_ID = "Name_PrintColor_ID";
|
||||
|
||||
/** Set Name Colour */
|
||||
public void setName_PrintColor_ID (int Name_PrintColor_ID);
|
||||
|
||||
/** Get Name Colour */
|
||||
public int getName_PrintColor_ID();
|
||||
|
||||
public I_AD_PrintColor getName_PrintColor() throws RuntimeException;
|
||||
|
||||
/** Column name Name_PrintFont_ID */
|
||||
public static final String COLUMNNAME_Name_PrintFont_ID = "Name_PrintFont_ID";
|
||||
|
||||
/** Set Name Font */
|
||||
public void setName_PrintFont_ID (int Name_PrintFont_ID);
|
||||
|
||||
/** Get Name Font */
|
||||
public int getName_PrintFont_ID();
|
||||
|
||||
public I_AD_PrintFont getName_PrintFont() throws RuntimeException;
|
||||
|
||||
/** Column name Number_PrintColor_ID */
|
||||
public static final String COLUMNNAME_Number_PrintColor_ID = "Number_PrintColor_ID";
|
||||
|
||||
/** Set Number Colour */
|
||||
public void setNumber_PrintColor_ID (int Number_PrintColor_ID);
|
||||
|
||||
/** Get Number Colour */
|
||||
public int getNumber_PrintColor_ID();
|
||||
|
||||
public I_AD_PrintColor getNumber_PrintColor() throws RuntimeException;
|
||||
|
||||
/** Column name Number_PrintFont_ID */
|
||||
public static final String COLUMNNAME_Number_PrintFont_ID = "Number_PrintFont_ID";
|
||||
|
||||
/** Set Number Font */
|
||||
public void setNumber_PrintFont_ID (int Number_PrintFont_ID);
|
||||
|
||||
/** Get Number Font */
|
||||
public int getNumber_PrintFont_ID();
|
||||
|
||||
public I_AD_PrintFont getNumber_PrintFont() throws RuntimeException;
|
||||
|
||||
/** Column name SeqNo */
|
||||
public static final String COLUMNNAME_SeqNo = "SeqNo";
|
||||
|
||||
/** Set Sequence.
|
||||
* Method of ordering records;
|
||||
lowest number comes first
|
||||
*/
|
||||
public void setSeqNo (int SeqNo);
|
||||
|
||||
/** Get Sequence.
|
||||
* Method of ordering records;
|
||||
lowest number comes first
|
||||
*/
|
||||
public int getSeqNo();
|
||||
|
||||
/** Column name PA_DocumentStatus_ID */
|
||||
public static final String COLUMNNAME_PA_DocumentStatus_ID = "PA_DocumentStatus_ID";
|
||||
|
||||
/** Set Document Status Indicator */
|
||||
public void setPA_DocumentStatus_ID (int PA_DocumentStatus_ID);
|
||||
|
||||
/** Get Document Status Indicator */
|
||||
public int getPA_DocumentStatus_ID();
|
||||
|
||||
/** Column name Updated */
|
||||
public static final String COLUMNNAME_Updated = "Updated";
|
||||
|
||||
/** Get Updated.
|
||||
* Date this record was updated
|
||||
*/
|
||||
public Timestamp getUpdated();
|
||||
|
||||
/** Column name UpdatedBy */
|
||||
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||
|
||||
/** Get Updated By.
|
||||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
|
||||
/** Column name WhereClause */
|
||||
public static final String COLUMNNAME_WhereClause = "WhereClause";
|
||||
|
||||
/** Set Sql WHERE.
|
||||
* Fully qualified SQL WHERE clause
|
||||
*/
|
||||
public void setWhereClause (String WhereClause);
|
||||
|
||||
/** Get Sql WHERE.
|
||||
* Fully qualified SQL WHERE clause
|
||||
*/
|
||||
public String getWhereClause();
|
||||
}
|
|
@ -0,0 +1,128 @@
|
|||
/**********************************************************************
|
||||
* This file is part of iDempiere ERP Open Source *
|
||||
* http://www.idempiere.org *
|
||||
* *
|
||||
* Copyright (C) Contributors *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License *
|
||||
* as published by the Free Software Foundation; either version 2 *
|
||||
* of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the Free Software *
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
|
||||
* MA 02110-1301, USA. *
|
||||
* *
|
||||
* Contributors: *
|
||||
* - Adaxa *
|
||||
* - Murilo Ht *
|
||||
* - Carlos Ruiz *
|
||||
**********************************************************************/
|
||||
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
|
||||
public class MDocumentStatus extends X_PA_DocumentStatus {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 5908220133480463782L;
|
||||
|
||||
public MDocumentStatus(Properties ctx, int PA_DocumentStatus_ID, String trxName) {
|
||||
super(ctx, PA_DocumentStatus_ID, trxName);
|
||||
}
|
||||
|
||||
public MDocumentStatus(Properties ctx, ResultSet rs, String trxName) {
|
||||
super(ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Document Status Indicators
|
||||
* @param ctx context
|
||||
* @param AD_User_ID user
|
||||
* @param AD_Role_ID
|
||||
* @return array of document status
|
||||
*/
|
||||
public static MDocumentStatus[] getDocumentStatusIndicators(Properties ctx, int AD_User_ID, int AD_Role_ID)
|
||||
{
|
||||
if (AD_User_ID < 0)
|
||||
return new MDocumentStatus[0];
|
||||
|
||||
String whereClause = "AD_Client_ID IN (0,?) AND ((AD_User_ID IS NULL OR AD_User_ID=?) AND ( AD_Role_ID IS NULL OR AD_Role_ID=?))";
|
||||
|
||||
List<MDocumentStatus> list = new Query(ctx, MDocumentStatus.Table_Name, whereClause, null)
|
||||
.setOnlyActiveRecords(true)
|
||||
.setOrderBy(MDocumentStatus.COLUMNNAME_SeqNo)
|
||||
.setParameters(Env.getAD_Client_ID(ctx), AD_User_ID, AD_Role_ID)
|
||||
.list();
|
||||
|
||||
/* Verify access for user/role */
|
||||
List<MDocumentStatus> listWithAccess = new ArrayList<MDocumentStatus>();
|
||||
for (MDocumentStatus ds : list) {
|
||||
if (ds.getAD_Window_ID() > 0) {
|
||||
Boolean access = MRole.getDefault().getWindowAccess(ds.getAD_Window_ID());
|
||||
if (access != null)
|
||||
listWithAccess.add(ds);
|
||||
} else if (ds.getAD_Form_ID() > 0) {
|
||||
Boolean access = MRole.getDefault().getFormAccess(ds.getAD_Form_ID());
|
||||
if (access != null)
|
||||
listWithAccess.add(ds);
|
||||
}
|
||||
}
|
||||
|
||||
MDocumentStatus[] retValue = new MDocumentStatus[listWithAccess.size ()];
|
||||
listWithAccess.toArray (retValue);
|
||||
return retValue;
|
||||
} // getDocumentStatusIndicators
|
||||
|
||||
public static int evaluate(MDocumentStatus documentStatus) {
|
||||
StringBuffer sql = new StringBuffer("SELECT COUNT(*) FROM ");
|
||||
String tableName = MTable.getTableName(Env.getCtx(), documentStatus.getAD_Table_ID());
|
||||
sql.append(tableName);
|
||||
String where = getWhereClause(documentStatus);
|
||||
if (where != null && where.trim().length() > 0)
|
||||
sql.append(" WHERE " ).append(where);
|
||||
String sqlS = MRole.getDefault().addAccessSQL(sql.toString(), tableName, false, true);
|
||||
return DB.getSQLValue(null, sqlS);
|
||||
}
|
||||
|
||||
public static String getWhereClause(MDocumentStatus documentStatus) {
|
||||
StringBuffer where = new StringBuffer(" AD_Client_ID=" + Env.getAD_Client_ID(Env.getCtx()) );
|
||||
if (documentStatus.getC_Project_ID() > 0)
|
||||
{
|
||||
where.append(" AND C_Project_ID=").append(documentStatus.getC_Project_ID());
|
||||
}
|
||||
if (documentStatus.getAD_Org_ID() > 0)
|
||||
{
|
||||
where.append(" AND AD_Org_ID=").append(documentStatus.getAD_Org_ID());
|
||||
}
|
||||
String extra = documentStatus.getWhereClause();
|
||||
if (extra != null && extra.trim().length() > 0)
|
||||
{
|
||||
where.append(" AND ( ").append(extra).append(" ) ");
|
||||
}
|
||||
return Env.parseContext(Env.getCtx(), 0, where.toString(), false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("MDocumentStatus[");
|
||||
sb.append(get_ID()).append("-").append(getName())
|
||||
.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,446 @@
|
|||
/******************************************************************************
|
||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Model for PA_DocumentStatus
|
||||
* @author Adempiere (generated)
|
||||
* @version 1.04.1rc19 - $Id$ */
|
||||
public class X_PA_DocumentStatus extends PO implements I_PA_DocumentStatus, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20151116L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_PA_DocumentStatus (Properties ctx, int PA_DocumentStatus_ID, String trxName)
|
||||
{
|
||||
super (ctx, PA_DocumentStatus_ID, trxName);
|
||||
/** if (PA_DocumentStatus_ID == 0)
|
||||
{
|
||||
setAD_Table_ID (0);
|
||||
setName (null);
|
||||
setName_PrintColor_ID (0);
|
||||
setName_PrintFont_ID (0);
|
||||
setNumber_PrintColor_ID (0);
|
||||
setNumber_PrintFont_ID (0);
|
||||
setSeqNo (0);
|
||||
setPA_DocumentStatus_ID (0);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_PA_DocumentStatus (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/** AccessLevel
|
||||
* @return 7 - System - Client - Org
|
||||
*/
|
||||
protected int get_AccessLevel()
|
||||
{
|
||||
return accessLevel.intValue();
|
||||
}
|
||||
|
||||
/** Load Meta Data */
|
||||
protected POInfo initPO (Properties ctx)
|
||||
{
|
||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
||||
return poi;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuffer sb = new StringBuffer ("X_PA_DocumentStatus[")
|
||||
.append(get_ID()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public I_AD_Form getAD_Form() throws RuntimeException
|
||||
{
|
||||
return (I_AD_Form)MTable.get(getCtx(), I_AD_Form.Table_Name)
|
||||
.getPO(getAD_Form_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Special Form.
|
||||
@param AD_Form_ID
|
||||
Special Form
|
||||
*/
|
||||
public void setAD_Form_ID (int AD_Form_ID)
|
||||
{
|
||||
if (AD_Form_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Form_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID));
|
||||
}
|
||||
|
||||
/** Get Special Form.
|
||||
@return Special Form
|
||||
*/
|
||||
public int getAD_Form_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Form_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public I_AD_Role getAD_Role() throws RuntimeException
|
||||
{
|
||||
return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name)
|
||||
.getPO(getAD_Role_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Role.
|
||||
@param AD_Role_ID
|
||||
Responsibility Role
|
||||
*/
|
||||
public void setAD_Role_ID (int AD_Role_ID)
|
||||
{
|
||||
if (AD_Role_ID < 0)
|
||||
set_Value (COLUMNNAME_AD_Role_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
|
||||
}
|
||||
|
||||
/** Get Role.
|
||||
@return Responsibility Role
|
||||
*/
|
||||
public int getAD_Role_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public I_AD_Table getAD_Table() throws RuntimeException
|
||||
{
|
||||
return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name)
|
||||
.getPO(getAD_Table_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Table.
|
||||
@param AD_Table_ID
|
||||
Database Table information
|
||||
*/
|
||||
public void setAD_Table_ID (int AD_Table_ID)
|
||||
{
|
||||
if (AD_Table_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Table_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID));
|
||||
}
|
||||
|
||||
/** Get Table.
|
||||
@return Database Table information
|
||||
*/
|
||||
public int getAD_Table_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public I_AD_User getAD_User() throws RuntimeException
|
||||
{
|
||||
return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name)
|
||||
.getPO(getAD_User_ID(), get_TrxName()); }
|
||||
|
||||
/** Set User/Contact.
|
||||
@param AD_User_ID
|
||||
User within the system - Internal or Business Partner Contact
|
||||
*/
|
||||
public void setAD_User_ID (int AD_User_ID)
|
||||
{
|
||||
if (AD_User_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_User_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
|
||||
}
|
||||
|
||||
/** Get User/Contact.
|
||||
@return User within the system - Internal or Business Partner Contact
|
||||
*/
|
||||
public int getAD_User_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public I_AD_Window getAD_Window() throws RuntimeException
|
||||
{
|
||||
return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name)
|
||||
.getPO(getAD_Window_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Window.
|
||||
@param AD_Window_ID
|
||||
Data entry or display window
|
||||
*/
|
||||
public void setAD_Window_ID (int AD_Window_ID)
|
||||
{
|
||||
if (AD_Window_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Window_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID));
|
||||
}
|
||||
|
||||
/** Get Window.
|
||||
@return Data entry or display window
|
||||
*/
|
||||
public int getAD_Window_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public I_C_Project getC_Project() throws RuntimeException
|
||||
{
|
||||
return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name)
|
||||
.getPO(getC_Project_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Project.
|
||||
@param C_Project_ID
|
||||
Financial Project
|
||||
*/
|
||||
public void setC_Project_ID (int C_Project_ID)
|
||||
{
|
||||
if (C_Project_ID < 1)
|
||||
set_Value (COLUMNNAME_C_Project_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID));
|
||||
}
|
||||
|
||||
/** Get Project.
|
||||
@return Financial Project
|
||||
*/
|
||||
public int getC_Project_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Description.
|
||||
@param Description
|
||||
Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description)
|
||||
{
|
||||
set_Value (COLUMNNAME_Description, Description);
|
||||
}
|
||||
|
||||
/** Get Description.
|
||||
@return Optional short description of the record
|
||||
*/
|
||||
public String getDescription ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Description);
|
||||
}
|
||||
|
||||
/** Set Name.
|
||||
@param Name
|
||||
Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name)
|
||||
{
|
||||
set_Value (COLUMNNAME_Name, Name);
|
||||
}
|
||||
|
||||
/** Get Name.
|
||||
@return Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Name);
|
||||
}
|
||||
|
||||
/** Get Record ID/ColumnName
|
||||
@return ID/ColumnName pair
|
||||
*/
|
||||
public KeyNamePair getKeyNamePair()
|
||||
{
|
||||
return new KeyNamePair(get_ID(), getName());
|
||||
}
|
||||
|
||||
public I_AD_PrintColor getName_PrintColor() throws RuntimeException
|
||||
{
|
||||
return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name)
|
||||
.getPO(getName_PrintColor_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Name Colour.
|
||||
@param Name_PrintColor_ID Name Colour */
|
||||
public void setName_PrintColor_ID (int Name_PrintColor_ID)
|
||||
{
|
||||
if (Name_PrintColor_ID < 1)
|
||||
set_Value (COLUMNNAME_Name_PrintColor_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_Name_PrintColor_ID, Integer.valueOf(Name_PrintColor_ID));
|
||||
}
|
||||
|
||||
/** Get Name Colour.
|
||||
@return Name Colour */
|
||||
public int getName_PrintColor_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_Name_PrintColor_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public I_AD_PrintFont getName_PrintFont() throws RuntimeException
|
||||
{
|
||||
return (I_AD_PrintFont)MTable.get(getCtx(), I_AD_PrintFont.Table_Name)
|
||||
.getPO(getName_PrintFont_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Name Font.
|
||||
@param Name_PrintFont_ID Name Font */
|
||||
public void setName_PrintFont_ID (int Name_PrintFont_ID)
|
||||
{
|
||||
if (Name_PrintFont_ID < 1)
|
||||
set_Value (COLUMNNAME_Name_PrintFont_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_Name_PrintFont_ID, Integer.valueOf(Name_PrintFont_ID));
|
||||
}
|
||||
|
||||
/** Get Name Font.
|
||||
@return Name Font */
|
||||
public int getName_PrintFont_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_Name_PrintFont_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public I_AD_PrintColor getNumber_PrintColor() throws RuntimeException
|
||||
{
|
||||
return (I_AD_PrintColor)MTable.get(getCtx(), I_AD_PrintColor.Table_Name)
|
||||
.getPO(getNumber_PrintColor_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Number Colour.
|
||||
@param Number_PrintColor_ID Number Colour */
|
||||
public void setNumber_PrintColor_ID (int Number_PrintColor_ID)
|
||||
{
|
||||
if (Number_PrintColor_ID < 1)
|
||||
set_Value (COLUMNNAME_Number_PrintColor_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_Number_PrintColor_ID, Integer.valueOf(Number_PrintColor_ID));
|
||||
}
|
||||
|
||||
/** Get Number Colour.
|
||||
@return Number Colour */
|
||||
public int getNumber_PrintColor_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_Number_PrintColor_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public I_AD_PrintFont getNumber_PrintFont() throws RuntimeException
|
||||
{
|
||||
return (I_AD_PrintFont)MTable.get(getCtx(), I_AD_PrintFont.Table_Name)
|
||||
.getPO(getNumber_PrintFont_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Number Font.
|
||||
@param Number_PrintFont_ID Number Font */
|
||||
public void setNumber_PrintFont_ID (int Number_PrintFont_ID)
|
||||
{
|
||||
if (Number_PrintFont_ID < 1)
|
||||
set_Value (COLUMNNAME_Number_PrintFont_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_Number_PrintFont_ID, Integer.valueOf(Number_PrintFont_ID));
|
||||
}
|
||||
|
||||
/** Get Number Font.
|
||||
@return Number Font */
|
||||
public int getNumber_PrintFont_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_Number_PrintFont_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Sequence.
|
||||
@param SeqNo
|
||||
Method of ordering records; lowest number comes first
|
||||
*/
|
||||
public void setSeqNo (int SeqNo)
|
||||
{
|
||||
set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo));
|
||||
}
|
||||
|
||||
/** Get Sequence.
|
||||
@return Method of ordering records; lowest number comes first
|
||||
*/
|
||||
public int getSeqNo ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Document Status Indicator.
|
||||
@param PA_DocumentStatus_ID Document Status Indicator */
|
||||
public void setPA_DocumentStatus_ID (int PA_DocumentStatus_ID)
|
||||
{
|
||||
if (PA_DocumentStatus_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_PA_DocumentStatus_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_PA_DocumentStatus_ID, Integer.valueOf(PA_DocumentStatus_ID));
|
||||
}
|
||||
|
||||
/** Get Document Status Indicator.
|
||||
@return Document Status Indicator */
|
||||
public int getPA_DocumentStatus_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_PA_DocumentStatus_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Sql WHERE.
|
||||
@param WhereClause
|
||||
Fully qualified SQL WHERE clause
|
||||
*/
|
||||
public void setWhereClause (String WhereClause)
|
||||
{
|
||||
set_Value (COLUMNNAME_WhereClause, WhereClause);
|
||||
}
|
||||
|
||||
/** Get Sql WHERE.
|
||||
@return Fully qualified SQL WHERE clause
|
||||
*/
|
||||
public String getWhereClause ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_WhereClause);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,156 @@
|
|||
/**********************************************************************
|
||||
* This file is part of iDempiere ERP Open Source *
|
||||
* http://www.idempiere.org *
|
||||
* *
|
||||
* Copyright (C) Contributors *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License *
|
||||
* as published by the Free Software Foundation; either version 2 *
|
||||
* of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the Free Software *
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
|
||||
* MA 02110-1301, USA. *
|
||||
* *
|
||||
* Contributors: *
|
||||
* - Adaxa *
|
||||
* - Murilo Ht *
|
||||
* - Carlos Ruiz *
|
||||
**********************************************************************/
|
||||
|
||||
package org.adempiere.webui.apps.graph;
|
||||
|
||||
import org.adempiere.webui.apps.AEnv;
|
||||
import org.adempiere.webui.component.Label;
|
||||
import org.adempiere.webui.component.Panel;
|
||||
import org.adempiere.webui.component.Window;
|
||||
import org.adempiere.webui.component.ZkCssHelper;
|
||||
import org.adempiere.webui.panel.ADForm;
|
||||
import org.adempiere.webui.session.SessionManager;
|
||||
import org.compiere.model.MDocumentStatus;
|
||||
import org.compiere.model.MQuery;
|
||||
import org.compiere.print.MPrintColor;
|
||||
import org.compiere.print.MPrintFont;
|
||||
import org.compiere.util.Env;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zul.Div;
|
||||
|
||||
/**
|
||||
* Document Status Indicator
|
||||
*/
|
||||
public class WDocumentStatusIndicator extends Panel implements EventListener<Event> {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 794746556509546913L;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param goal goal model
|
||||
*/
|
||||
public WDocumentStatusIndicator(MDocumentStatus documentStatus)
|
||||
{
|
||||
super();
|
||||
|
||||
m_documentStatus = documentStatus;
|
||||
|
||||
init();
|
||||
this.setSclass("activities-box");
|
||||
|
||||
refresh();
|
||||
updateUI();
|
||||
} // WDocumentStatusIndicator
|
||||
|
||||
private MDocumentStatus m_documentStatus = null;
|
||||
private int statusCount;
|
||||
private Label statusLabel;
|
||||
|
||||
/**
|
||||
* Get Document Status
|
||||
* @return Document Status
|
||||
*/
|
||||
public MDocumentStatus getDocumentStatus()
|
||||
{
|
||||
return m_documentStatus;
|
||||
} // getGoal
|
||||
|
||||
/**
|
||||
* Init Graph Display
|
||||
*/
|
||||
private void init()
|
||||
{
|
||||
Div div = new Div();
|
||||
appendChild(div);
|
||||
Label nameLabel = new Label();
|
||||
nameLabel.setText(m_documentStatus.get_Translation(MDocumentStatus.COLUMNNAME_Name) + ": ");
|
||||
int AD_PrintColor_ID = m_documentStatus.getName_PrintColor_ID();
|
||||
MPrintColor printColor = MPrintColor.get(Env.getCtx(), AD_PrintColor_ID);
|
||||
String color = ZkCssHelper.createHexColorString(printColor.getColor());
|
||||
int AD_PrintFont_ID = m_documentStatus.getName_PrintFont_ID();
|
||||
MPrintFont printFont = MPrintFont.get(AD_PrintFont_ID);
|
||||
String family = printFont.getFont().getFamily();
|
||||
boolean bold = printFont.getFont().isBold();
|
||||
boolean italic = printFont.getFont().isItalic();
|
||||
int pointSize = printFont.getFont().getSize();
|
||||
String fontStyle = "font-family:'"+family+"';font-weight:"+(bold ? "bold" : "normal")+";font-style:"+(italic ? "italic" : "normal")+";font-size:"+pointSize+"pt";
|
||||
nameLabel.setStyle("color:#"+color+";"+fontStyle);
|
||||
div.appendChild(nameLabel);
|
||||
|
||||
statusLabel = new Label();
|
||||
AD_PrintColor_ID = m_documentStatus.getNumber_PrintColor_ID();
|
||||
printColor = MPrintColor.get(Env.getCtx(), AD_PrintColor_ID);
|
||||
color = ZkCssHelper.createHexColorString(printColor.getColor());
|
||||
AD_PrintFont_ID = m_documentStatus.getNumber_PrintFont_ID();
|
||||
printFont = MPrintFont.get(AD_PrintFont_ID);
|
||||
family = printFont.getFont().getFamily();
|
||||
bold = printFont.getFont().isBold();
|
||||
italic = printFont.getFont().isItalic();
|
||||
pointSize = printFont.getFont().getSize();
|
||||
fontStyle = "font-family:'"+family+"';font-weight:"+(bold ? "bold" : "normal")+";font-style:"+(italic ? "italic" : "normal")+";font-size:"+pointSize+"pt";
|
||||
int margin = pointSize;
|
||||
String marginStyle = "margin-top:"+margin+"pt;"+"margin-bottom:"+margin+"pt;";
|
||||
statusLabel.setStyle("color:#"+color+";"+fontStyle+";"+marginStyle);
|
||||
div.appendChild(statusLabel);
|
||||
|
||||
this.addEventListener(Events.ON_CLICK, this);
|
||||
}
|
||||
|
||||
|
||||
public void onEvent(Event event) throws Exception
|
||||
{
|
||||
int AD_Window_ID = m_documentStatus.getAD_Window_ID();
|
||||
int AD_Form_ID = m_documentStatus.getAD_Form_ID();
|
||||
if (AD_Window_ID > 0)
|
||||
{
|
||||
MQuery query = new MQuery(m_documentStatus.getAD_Table_ID());
|
||||
query.addRestriction(MDocumentStatus.getWhereClause(m_documentStatus));
|
||||
AEnv.zoom(AD_Window_ID, query);
|
||||
}
|
||||
else if ( AD_Form_ID > 0 )
|
||||
{
|
||||
ADForm form = ADForm.openForm(AD_Form_ID);
|
||||
|
||||
form.setAttribute(Window.MODE_KEY, Window.MODE_EMBEDDED);
|
||||
SessionManager.getAppDesktop().showWindow(form);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void refresh() {
|
||||
statusCount = MDocumentStatus.evaluate(m_documentStatus);
|
||||
}
|
||||
|
||||
public void updateUI() {
|
||||
statusLabel.setText(Integer.toString(statusCount));
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,117 @@
|
|||
/**********************************************************************
|
||||
* This file is part of iDempiere ERP Open Source *
|
||||
* http://www.idempiere.org *
|
||||
* *
|
||||
* Copyright (C) Contributors *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License *
|
||||
* as published by the Free Software Foundation; either version 2 *
|
||||
* of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the Free Software *
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
|
||||
* MA 02110-1301, USA. *
|
||||
* *
|
||||
* Contributors: *
|
||||
* - Adaxa *
|
||||
* - Murilo Ht *
|
||||
* - Carlos Ruiz *
|
||||
**********************************************************************/
|
||||
|
||||
package org.adempiere.webui.apps.graph;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.adempiere.webui.component.Grid;
|
||||
import org.adempiere.webui.component.Panel;
|
||||
import org.adempiere.webui.component.Row;
|
||||
import org.adempiere.webui.component.Rows;
|
||||
import org.compiere.model.MDocumentStatus;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.Env;
|
||||
|
||||
public class WDocumentStatusPanel extends Panel {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 7473476079783059880L;
|
||||
|
||||
private List<WDocumentStatusIndicator> indicatorList = new ArrayList<WDocumentStatusIndicator>();
|
||||
|
||||
/** Document Status Indicators */
|
||||
private MDocumentStatus[] m_indicators = null;
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (WDocumentStatusPanel.class);
|
||||
|
||||
/**
|
||||
* Get Panel if User has Document Status Indicators
|
||||
* @return panel pr null
|
||||
*/
|
||||
public static WDocumentStatusPanel get()
|
||||
{
|
||||
int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
|
||||
int AD_Role_ID = Env.getAD_Role_ID(Env.getCtx());
|
||||
MDocumentStatus[] indicators = MDocumentStatus.getDocumentStatusIndicators(Env.getCtx(), AD_User_ID, AD_Role_ID);
|
||||
if (indicators.length == 0)
|
||||
return null;
|
||||
return new WDocumentStatusPanel(indicators);
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* Constructor
|
||||
* @param Document Status Indicators
|
||||
*/
|
||||
private WDocumentStatusPanel (MDocumentStatus[] indicators)
|
||||
{
|
||||
super ();
|
||||
m_indicators = indicators;
|
||||
init();
|
||||
}
|
||||
|
||||
/**
|
||||
* Static/Dynamic Init
|
||||
*/
|
||||
private void init()
|
||||
{
|
||||
log.info("");
|
||||
Grid grid = new Grid();
|
||||
appendChild(grid);
|
||||
grid.setWidth("100%");
|
||||
grid.makeNoStrip();
|
||||
grid.setOddRowSclass("even");
|
||||
|
||||
Rows rows = new Rows();
|
||||
grid.appendChild(rows);
|
||||
|
||||
for (int i = 0; i < m_indicators.length; i++)
|
||||
{
|
||||
Row row = new Row();
|
||||
rows.appendChild(row);
|
||||
|
||||
WDocumentStatusIndicator pi = new WDocumentStatusIndicator(m_indicators[i]);
|
||||
row.appendChild(pi);
|
||||
indicatorList.add(pi);
|
||||
}
|
||||
} // init
|
||||
|
||||
public void refresh() {
|
||||
for (WDocumentStatusIndicator indicator : indicatorList) {
|
||||
indicator.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
public void updateUI() {
|
||||
for (WDocumentStatusIndicator indicator : indicatorList) {
|
||||
indicator.updateUI();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
/**********************************************************************
|
||||
* This file is part of iDempiere ERP Open Source *
|
||||
* http://www.idempiere.org *
|
||||
* *
|
||||
* Copyright (C) Contributors *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License *
|
||||
* as published by the Free Software Foundation; either version 2 *
|
||||
* of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the Free Software *
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
|
||||
* MA 02110-1301, USA. *
|
||||
* *
|
||||
* Contributors: *
|
||||
* - Adaxa *
|
||||
* - Murilo Ht *
|
||||
* - Carlos Ruiz *
|
||||
**********************************************************************/
|
||||
|
||||
package org.adempiere.webui.dashboard;
|
||||
|
||||
import org.adempiere.webui.apps.graph.WDocumentStatusPanel;
|
||||
import org.adempiere.webui.util.ServerPushTemplate;
|
||||
|
||||
public class DPDocumentStatus extends DashboardPanel {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 2089844018551832142L;
|
||||
|
||||
private WDocumentStatusPanel statusPanel;
|
||||
|
||||
@Override
|
||||
public void refresh(ServerPushTemplate template) {
|
||||
statusPanel.refresh();
|
||||
template.execute(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateUI() {
|
||||
statusPanel.updateUI();
|
||||
}
|
||||
|
||||
public DPDocumentStatus()
|
||||
{
|
||||
super();
|
||||
|
||||
statusPanel = WDocumentStatusPanel.get();
|
||||
if (statusPanel != null) this.appendChild(statusPanel);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<window use="org.adempiere.webui.dashboard.DPDocumentStatus"/>
|
Loading…
Reference in New Issue