diff --git a/migration/iD10/oracle/202205131118_IDEMPIERE-5259.sql b/migration/iD10/oracle/202205131118_IDEMPIERE-5259.sql new file mode 100644 index 0000000000..8347f4ad3c --- /dev/null +++ b/migration/iD10/oracle/202205131118_IDEMPIERE-5259.sql @@ -0,0 +1,1247 @@ +-- IDEMPIERE-5259 - Labels feature +SELECT register_migration_script('202205131118_IDEMPIERE-5259.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- May 13, 2022, 11:18:40 AM BRT +INSERT INTO AD_Table (AD_Table_ID,Name,Description,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,CreateWindowFromTable) VALUES (200343,'Label Category','Category of a Label','AD_LabelCategory',0,'6',0,0,'Y',TO_TIMESTAMP('2022-05-13 11:18:40','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:18:40','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','N','N','D','N','Y','L','N','Y','8d7d25d9-ff82-4ae6-be5f-ba91b6b5f8f8','N','N','N','N') +; + +-- May 13, 2022, 11:18:41 AM 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 ('AD_LabelCategory',1000000,'N','N','Table AD_LabelCategory','Y','Y',0,0,TO_TIMESTAMP('2022-05-13 11:18:40','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:18:40','YYYY-MM-DD HH24:MI:SS'),10,200411,'Y',1000000,1,200000,'bab419bd-7722-48be-b218-17a90b6de0e4') +; + +-- May 13, 2022, 11:20:49 AM BRT +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203589,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:20:49','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:20:49','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelCategory_ID','Label Category','Category of a Label','Identifies the category which this label belongs to.','Label Category','D','8dfa237a-1a47-4c54-964a-6456d1f24649') +; + +-- May 13, 2022, 11:21:05 AM BRT +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203590,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:21:04','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:21:04','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelCategory_UU','Label Category','Category of a Label','Identifies the category which this label belongs to.','Label Category','D','dbd35027-2b0c-4e30-ae9e-7eb780c3190b') +; + +-- May 13, 2022, 11:21:22 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214840,0,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200343,'AD_LabelCategory_ID',22,'Y','N','N','N','N',0,'N',13,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:21:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:21:21','YYYY-MM-DD HH24:MI:SS'),10,203589,'N','N','D','N','N','N','Y','11e85825-5c7b-46cd-aef6-a4e905363c1b','N',0,'N','N','N','N') +; + +-- May 13, 2022, 11:21:23 AM BRT +CREATE TABLE AD_LabelCategory (AD_LabelCategory_ID NUMBER(10) DEFAULT NULL , CONSTRAINT AD_LabelCategory_Key PRIMARY KEY (AD_LabelCategory_ID)) +; + +-- May 13, 2022, 11:21:35 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214841,0,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200343,'AD_LabelCategory_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:21:34','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:21:34','YYYY-MM-DD HH24:MI:SS'),10,203590,'N','N','D','N','N','N','Y','5edbd6c7-cb89-4657-bd0d-2e961ae7bca3','N',0,'N','N','N','N') +; + +-- May 13, 2022, 11:21:36 AM BRT +ALTER TABLE AD_LabelCategory ADD AD_LabelCategory_UU VARCHAR2(36 CHAR) DEFAULT NULL +; + +-- May 13, 2022, 11:21:37 AM BRT +ALTER TABLE AD_LabelCategory ADD CONSTRAINT AD_LabelCategory_UU_idx UNIQUE (AD_LabelCategory_UU) +; + +-- May 13, 2022, 11:21:57 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214842,0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200343,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:21:57','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:21:57','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','D','N','N','N','Y','8b76f511-26f1-43a2-8034-65505c1e728e','N',0,'N','N','D','N') +; + +-- May 13, 2022, 11:21:59 AM BRT +ALTER TABLE AD_LabelCategory ADD AD_Client_ID NUMBER(10) DEFAULT NULL +; + +-- May 13, 2022, 11:22:09 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214843,0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200343,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:22:08','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:22:08','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','N','N','Y','011208eb-83c1-49bd-9895-1eb80b414b4d','N',0,'N','N','D','N') +; + +-- May 13, 2022, 11:22:10 AM BRT +ALTER TABLE AD_LabelCategory ADD AD_Org_ID NUMBER(10) DEFAULT NULL +; + +-- May 13, 2022, 11:22:22 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214844,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200343,'Created','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:22:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:22:21','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','N','N','Y','b4d3e4bc-55ab-4ad3-a115-d79adc0f2025','N',0,'N','N','N') +; + +-- May 13, 2022, 11:22:24 AM BRT +ALTER TABLE AD_LabelCategory ADD Created DATE DEFAULT SYSDATE +; + +-- May 13, 2022, 11:22:35 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214845,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200343,'CreatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:22:35','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:22:35','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','N','N','Y','fb3b4534-5fe9-4e1b-b36e-07ec19382443','N',0,'N','N','D','N') +; + +-- May 13, 2022, 11:22:37 AM BRT +ALTER TABLE AD_LabelCategory ADD CreatedBy NUMBER(10) DEFAULT NULL +; + +-- May 13, 2022, 11:22:48 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214846,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200343,'Updated','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:22:47','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:22:47','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','N','N','Y','b29b98a8-db2b-4036-948d-b83b110350f5','N',0,'N','N','N') +; + +-- May 13, 2022, 11:22:49 AM BRT +ALTER TABLE AD_LabelCategory ADD Updated DATE DEFAULT SYSDATE +; + +-- May 13, 2022, 11:23:11 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214847,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200343,'UpdatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:23:10','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:23:10','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','N','N','Y','c9f7cd50-4f77-4d80-aaf4-78653ab0214f','N',0,'N','N','D','N') +; + +-- May 13, 2022, 11:23:13 AM BRT +ALTER TABLE AD_LabelCategory ADD UpdatedBy NUMBER(10) DEFAULT NULL +; + +-- May 13, 2022, 11:23:24 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214848,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.',200343,'IsActive','Y',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:23:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:23:23','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','N','N','Y','bb86da86-ed0d-48c9-a279-66c71d3b8793','N',0,'N','N','N') +; + +-- May 13, 2022, 11:23:26 AM BRT +ALTER TABLE AD_LabelCategory ADD IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) +; + +-- May 13, 2022, 11:26:09 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214849,0,'Description','Optional short description of the record','A description is limited to 255 characters.',200343,'Description',255,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:26:09','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:26:09','YYYY-MM-DD HH24:MI:SS'),10,275,'Y','Y','D','N','N','N','Y','0a52d6ad-da73-40df-97ac-6d6a403efa65','Y',10,'N','N','N') +; + +-- May 13, 2022, 11:26:11 AM BRT +ALTER TABLE AD_LabelCategory ADD Description VARCHAR2(255 CHAR) DEFAULT NULL +; + +-- May 13, 2022, 11:26:54 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214850,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.',200343,'Name',60,'N','N','N','N','Y',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:26:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:26:48','YYYY-MM-DD HH24:MI:SS'),10,469,'Y','Y','D','N','N','N','Y','e94eddd7-5311-4b90-95d3-bc94b27ff4ab','Y',20,'N','N','N') +; + +-- May 13, 2022, 11:27:03 AM BRT +UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2022-05-13 11:27:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214850 +; + +-- May 13, 2022, 11:27:14 AM BRT +ALTER TABLE AD_LabelCategory ADD Name VARCHAR2(60 CHAR) NOT NULL +; + +-- May 13, 2022, 11:27:58 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214851,0,'Label Style','Label CSS Style',200343,'AD_LabelStyle_ID',10,'N','N','N','N','N',0,'N',18,200121,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:27:57','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:27:57','YYYY-MM-DD HH24:MI:SS'),10,203011,'Y','N','D','N','N','N','Y','3bcc854e-e087-4a77-991a-3623b233e841','Y',0,'N','N','N','N') +; + +-- May 13, 2022, 11:28:00 AM BRT +UPDATE AD_Column SET FKConstraintName='ADLabelStyle_CLabelCategory', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-13 11:28:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214851 +; + +-- May 13, 2022, 11:28:00 AM BRT +ALTER TABLE AD_LabelCategory ADD AD_LabelStyle_ID NUMBER(10) DEFAULT NULL +; + +-- May 13, 2022, 11:28:00 AM BRT +ALTER TABLE AD_LabelCategory ADD CONSTRAINT ADLabelStyle_CLabelCategory FOREIGN KEY (AD_LabelStyle_ID) REFERENCES ad_style(ad_style_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 13, 2022, 1:07:24 PM BRT +UPDATE AD_Column SET IsTranslated='Y',Updated=TO_TIMESTAMP('2022-05-13 13:07:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214850 +; + +-- May 13, 2022, 1:10:05 PM BRT +UPDATE AD_Column SET IsTranslated='Y',Updated=TO_TIMESTAMP('2022-05-13 13:10:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214849 +; + +-- May 13, 2022, 1:10:52 PM BRT +INSERT INTO AD_Table (AD_Table_ID,Name,Description,TableName,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,IsChangeLog,ReplicationType,AD_Table_UU,Processing) VALUES (200344,'Label Category Trl','Category of a Label Trl','AD_LabelCategory_Trl','6',0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:51','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:51','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','N','D','Y','L','e8d3027c-e842-4d4c-9bb6-c3d5c52ef152','N') +; + +-- May 13, 2022, 1:10:52 PM 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 ('AD_LabelCategory_Trl',1000000,'N','N','Table AD_LabelCategory_Trl','Y','Y',0,0,TO_TIMESTAMP('2022-05-13 13:10:52','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:52','YYYY-MM-DD HH24:MI:SS'),10,200412,'Y',1000000,1,200000,'f7a0f1d6-cf6e-4eb3-9ae8-f5ee7a09fc7a') +; + +-- May 13, 2022, 1:10:53 PM 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,ReadOnlyLogic,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214852,0.0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200344,'AD_Client_ID','@#AD_Client_ID@',10,'N','N','Y','N','N','N',30,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:52','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:52','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','1=1','D','N','e2d814e3-245c-4220-be46-36f11bce8992','N') +; + +-- May 13, 2022, 1:10:53 PM 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 (214853,0.0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200344,'AD_Org_ID','@AD_Org_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:53','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:53','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','87b323c2-d2f8-44a3-b422-c8cd32c657dc','N') +; + +-- May 13, 2022, 1:10:54 PM 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 (214854,0.0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200344,'Created',7,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:53','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:53','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','e5341abe-0c1d-48c4-8ae7-94b1fbbac6a6','N') +; + +-- May 13, 2022, 1:10:54 PM 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) VALUES (214855,0.0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200344,'CreatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:54','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:54','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','8e55dced-75f2-49d0-86b9-c2233e311b87','N') +; + +-- May 13, 2022, 1:10:54 PM 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 (214856,0.0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200344,'Updated',7,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:54','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:54','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','d0cddc95-ead3-4d9e-9596-969d013a0e62','N') +; + +-- May 13, 2022, 1:10:55 PM 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) VALUES (214857,0.0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200344,'UpdatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:55','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:55','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','96aa9b94-3afe-45b4-9854-f5aec213751d','N') +; + +-- May 13, 2022, 1:10:55 PM 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 (214858,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.',200344,'IsActive','Y',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:55','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:55','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','4108a8d0-61dc-43c9-8b94-3d2d37500ffc','N') +; + +-- May 13, 2022, 1:10:56 PM 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 (214859,0.0,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200344,'AD_LabelCategory_ID',10,'N','Y','Y','N','N','N',30,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:55','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:55','YYYY-MM-DD HH24:MI:SS'),10,203589,'N','N','D','N','20022acb-0fd9-41a2-884b-ed64e7a524bb','N','C') +; + +-- May 13, 2022, 1:10:56 PM 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 (203591,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:56','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:56','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelCategory_Trl_UU','AD_LabelCategory_Trl_UU','AD_LabelCategory_Trl_UU','D','3bff663c-233f-4166-974f-cd4ea3aca21f') +; + +-- May 13, 2022, 1:10:57 PM 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 (214860,0.0,'AD_LabelCategory_Trl_UU',200344,'AD_LabelCategory_Trl_UU',36,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:56','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:56','YYYY-MM-DD HH24:MI:SS'),10,203591,'Y','N','D','N','28f0df30-e82c-4da8-8e84-8a8f75c2dc93','N') +; + +-- May 13, 2022, 1:10:58 PM 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) VALUES (214861,0.0,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200344,'AD_Language',6,'N','Y','Y','N','N','N',18,106,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:57','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:57','YYYY-MM-DD HH24:MI:SS'),10,109,'N','N','D','N','00899065-fc92-4340-a290-066cba0915cc','N') +; + +-- May 13, 2022, 1:10:58 PM 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 (214862,0.0,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200344,'IsTranslated','N',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:58','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:58','YYYY-MM-DD HH24:MI:SS'),10,420,'Y','N','D','N','093cb927-6ffd-4b7c-9bfd-dc28dbf3e773','N') +; + +-- May 13, 2022, 1:10:59 PM 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 (214863,0.0,'Description','Optional short description of the record','A description is limited to 255 characters.',200344,'Description',255,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:58','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:58','YYYY-MM-DD HH24:MI:SS'),10,275,'Y','N','D','N','cb14847f-9f1b-435d-9fed-495e391c439e','N') +; + +-- May 13, 2022, 1:10:59 PM 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,SeqNoSelection,IsToolbarButton) VALUES (214864,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.',200344,'Name',60,'N','N','Y','N','Y','N',10,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:59','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:59','YYYY-MM-DD HH24:MI:SS'),10,469,'Y','Y','D','N','24434a29-cd40-4c0f-bda6-aad5cd6e9753',10,'N') +; + +-- May 13, 2022, 1:11:00 PM BRT +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,IsKey) VALUES (0,0,201118,'1f37e22e-4935-4273-b057-cb3bfd26d4c4',TO_TIMESTAMP('2022-05-13 13:10:59','YYYY-MM-DD HH24:MI:SS'),10,'D','Y','AD_LabelCategory_Trl_pkey',TO_TIMESTAMP('2022-05-13 13:10:59','YYYY-MM-DD HH24:MI:SS'),10,200344,'Y','Y','N','Y') +; + +-- May 13, 2022, 1:11:00 PM BRT +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,201493,'3e48e4a1-223b-4856-b1e6-2b1cbcca3e07',TO_TIMESTAMP('2022-05-13 13:11:00','YYYY-MM-DD HH24:MI:SS'),10,'D','Y',TO_TIMESTAMP('2022-05-13 13:11:00','YYYY-MM-DD HH24:MI:SS'),10,214861,201118,1) +; + +-- May 13, 2022, 1:11:00 PM BRT +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,201494,'1e04a4ea-caff-4cf3-a544-e1e62fd1198c',TO_TIMESTAMP('2022-05-13 13:11:00','YYYY-MM-DD HH24:MI:SS'),10,'D','Y',TO_TIMESTAMP('2022-05-13 13:11:00','YYYY-MM-DD HH24:MI:SS'),10,214859,201118,2) +; + +-- May 16, 2022, 9:47:36 AM BRT +CREATE TABLE AD_LabelCategory_Trl (AD_Client_ID NUMBER(10) NOT NULL, AD_LabelCategory_ID NUMBER(10) NOT NULL, AD_LabelCategory_Trl_UU VARCHAR2(36 CHAR) DEFAULT NULL , AD_Language VARCHAR2(6 CHAR) NOT NULL, AD_Org_ID NUMBER(10) NOT NULL, Created DATE NOT NULL, CreatedBy NUMBER(10) NOT NULL, Description VARCHAR2(255 CHAR) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, IsTranslated CHAR(1) DEFAULT 'N' CHECK (IsTranslated IN ('Y','N')) NOT NULL, Name VARCHAR2(60 CHAR) NOT NULL, Updated DATE NOT NULL, UpdatedBy NUMBER(10) NOT NULL, CONSTRAINT AD_LabelCategory_Trl_UU_idx UNIQUE (AD_LabelCategory_Trl_UU)) +; + +-- May 16, 2022, 9:47:36 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT ADClient_ADLabelCategoryTrl FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:47:36 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT ADLabelCategory_ADLabelCategor FOREIGN KEY (AD_LabelCategory_ID) REFERENCES ad_labelcategory(ad_labelcategory_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:47:36 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT ADLanguage_ADLabelCategoryTrl FOREIGN KEY (AD_Language) REFERENCES ad_language(ad_language) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:47:36 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT ADOrg_ADLabelCategoryTrl FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:47:36 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT CreatedBy_ADLabelCategoryTrl FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:47:36 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT UpdatedBy_ADLabelCategoryTrl FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:48:43 AM BRT +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) VALUES (0,0,201119,'a3ee7ea1-7935-4687-98f7-d0afea3b7ce4',TO_TIMESTAMP('2022-05-16 09:48:42','YYYY-MM-DD HH24:MI:SS'),10,'D','Y','ad_labelcategory_trl_uu_idx',TO_TIMESTAMP('2022-05-16 09:48:42','YYYY-MM-DD HH24:MI:SS'),10,200344,'N','Y','N') +; + +-- May 16, 2022, 9:48:43 AM BRT +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201495,'00fe8bcf-8178-49e2-a1a4-d1c80e41492e',TO_TIMESTAMP('2022-05-16 09:48:43','YYYY-MM-DD HH24:MI:SS'),10,'Y',TO_TIMESTAMP('2022-05-16 09:48:43','YYYY-MM-DD HH24:MI:SS'),10,214860,201119,1) +; + +-- May 16, 2022, 9:48:43 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT AD_LabelCategory_Trl_pkey PRIMARY KEY (AD_Language,AD_LabelCategory_ID) +; + +-- May 16, 2022, 9:51:11 AM BRT +INSERT INTO AD_Table (AD_Table_ID,Name,Description,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,CreateWindowFromTable) VALUES (200345,'Label','Record Label','AD_Label',0,'6',0,0,'Y',TO_TIMESTAMP('2022-05-16 09:51:10','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:51:10','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','Y','N','D','N','Y','L','N','Y','a6c4c13f-73fc-4c78-be0f-4c0d052ddbd8','N','N','N','N') +; + +-- May 16, 2022, 9:51:12 AM 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 ('AD_Label',1000000,'N','N','Table AD_Label','Y','Y',0,0,TO_TIMESTAMP('2022-05-16 09:51:11','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:51:11','YYYY-MM-DD HH24:MI:SS'),10,200413,'Y',1000000,1,200000,'d8d6d09d-eae9-4ab6-a3ff-0a73e50f3a45') +; + +-- May 16, 2022, 9:52:35 AM BRT +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,PrintName,EntityType,AD_Element_UU) VALUES (203592,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:52:34','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:52:34','YYYY-MM-DD HH24:MI:SS'),10,'AD_Label_ID','Label','Record Label','Label','D','bc4f6ac2-ebb3-46e2-aaca-12efacf059cc') +; + +-- May 16, 2022, 9:52:41 AM BRT +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,PrintName,EntityType,AD_Element_UU) VALUES (203593,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:52:41','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:52:41','YYYY-MM-DD HH24:MI:SS'),10,'AD_Label_UU','Label','Record Label','Label','D','5d21d4cf-0aab-4340-a930-f9374a2dba1d') +; + +-- May 16, 2022, 9:52:59 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214865,0,'Label','Record Label',200345,'AD_Label_ID',22,'Y','N','N','N','N',0,'N',13,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:52:58','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:52:58','YYYY-MM-DD HH24:MI:SS'),10,203592,'N','N','D','N','N','N','Y','5af55b82-b90e-415a-a9a4-4a6fce441ac0','N',0,'N','N','N','N') +; + +-- May 16, 2022, 9:53:00 AM BRT +CREATE TABLE AD_Label (AD_Label_ID NUMBER(10) DEFAULT NULL , CONSTRAINT AD_Label_Key PRIMARY KEY (AD_Label_ID)) +; + +-- May 16, 2022, 9:53:10 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214866,0,'Label','Record Label',200345,'AD_Label_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:53:09','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:53:09','YYYY-MM-DD HH24:MI:SS'),10,203593,'N','N','D','N','N','N','Y','8d1b8d1c-1900-41cd-8c4e-97206633b5bd','N',0,'N','N','N','N') +; + +-- May 16, 2022, 9:53:11 AM BRT +ALTER TABLE AD_Label ADD AD_Label_UU VARCHAR2(36 CHAR) DEFAULT NULL +; + +-- May 16, 2022, 9:53:11 AM BRT +ALTER TABLE AD_Label ADD CONSTRAINT AD_Label_UU_idx UNIQUE (AD_Label_UU) +; + +-- May 16, 2022, 9:53:20 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214867,0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200345,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:53:19','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:53:19','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','D','N','N','N','Y','4d84cd2e-c1e9-479a-851e-39bb3f584623','N',0,'N','N','D','N') +; + +-- May 16, 2022, 9:53:21 AM BRT +ALTER TABLE AD_Label ADD AD_Client_ID NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 9:53:29 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214868,0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200345,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:53:29','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:53:29','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','N','N','Y','ae938961-d6c5-4377-abeb-952e357c1c90','N',0,'N','N','D','N') +; + +-- May 16, 2022, 9:53:31 AM BRT +ALTER TABLE AD_Label ADD AD_Org_ID NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 9:53:43 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214869,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200345,'Created','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:53:42','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:53:42','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','N','N','Y','451a7278-5b82-4ae6-b81e-e7a9266e65de','N',0,'N','N','N') +; + +-- May 16, 2022, 9:53:44 AM BRT +ALTER TABLE AD_Label ADD Created DATE DEFAULT SYSDATE +; + +-- May 16, 2022, 9:53:54 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214870,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200345,'CreatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:53:54','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:53:54','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','N','N','Y','cd1cfe10-6600-49b1-8f2e-c226b0fcadfa','N',0,'N','N','D','N') +; + +-- May 16, 2022, 9:53:55 AM BRT +ALTER TABLE AD_Label ADD CreatedBy NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 9:54:07 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214871,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200345,'Updated','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:54:06','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:54:06','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','N','N','Y','0190060d-869e-454a-892f-8511a9968084','N',0,'N','N','N') +; + +-- May 16, 2022, 9:54:08 AM BRT +ALTER TABLE AD_Label ADD Updated DATE DEFAULT SYSDATE +; + +-- May 16, 2022, 9:54:18 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214872,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200345,'UpdatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:54:17','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:54:17','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','N','N','Y','f757eafd-1872-4fd0-9ef4-e2ac111ef14a','N',0,'N','N','D','N') +; + +-- May 16, 2022, 9:54:19 AM BRT +ALTER TABLE AD_Label ADD UpdatedBy NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 9:54:28 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214873,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.',200345,'IsActive','Y',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:54:28','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:54:28','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','N','N','Y','6757a19f-fa5a-4909-974c-b0d9a690bb41','N',0,'N','N','N') +; + +-- May 16, 2022, 9:54:29 AM BRT +ALTER TABLE AD_Label ADD IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) +; + +-- May 16, 2022, 9:54:49 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214874,0,'Description','Optional short description of the record','A description is limited to 255 characters.',200345,'Description',255,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:54:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:54:48','YYYY-MM-DD HH24:MI:SS'),10,275,'Y','Y','D','N','N','N','Y','eb86b4a4-b1b3-4bfc-8c7c-6a3465308b56','Y',10,'N','N','N') +; + +-- May 16, 2022, 9:54:50 AM BRT +ALTER TABLE AD_Label ADD Description VARCHAR2(255 CHAR) DEFAULT NULL +; + +-- May 16, 2022, 9:55:07 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214875,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.',200345,'Name',60,'N','N','N','N','Y',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:55:07','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:55:07','YYYY-MM-DD HH24:MI:SS'),10,469,'Y','Y','D','N','N','N','Y','0eeb6f0a-2e9b-406f-be8e-3eefd69f2794','Y',20,'N','N','N') +; + +-- May 16, 2022, 9:55:12 AM BRT +UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2022-05-16 09:55:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214875 +; + +-- May 16, 2022, 9:55:14 AM BRT +ALTER TABLE AD_Label ADD Name VARCHAR2(60 CHAR) NOT NULL +; + +-- May 16, 2022, 9:56:06 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214876,0,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200345,'AD_LabelCategory_ID',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:56:05','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:56:05','YYYY-MM-DD HH24:MI:SS'),10,203589,'Y','N','D','N','N','N','Y','00738df6-68db-4eeb-b282-252cdca5f012','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 9:56:08 AM BRT +UPDATE AD_Column SET FKConstraintName='ADLabelCategory_ADLabel', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-16 09:56:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214876 +; + +-- May 16, 2022, 9:56:08 AM BRT +ALTER TABLE AD_Label ADD AD_LabelCategory_ID NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 9:56:08 AM BRT +ALTER TABLE AD_Label ADD CONSTRAINT ADLabelCategory_ADLabel FOREIGN KEY (AD_LabelCategory_ID) REFERENCES ad_labelcategory(ad_labelcategory_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:56:29 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214877,0,'Label Style','Label CSS Style',200345,'AD_LabelStyle_ID',10,'N','N','N','N','N',0,'N',18,200121,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:56:28','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:56:28','YYYY-MM-DD HH24:MI:SS'),10,203011,'Y','N','D','N','N','N','Y','1f70261c-8a78-40de-82d9-ce6fd8f3a1d3','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 9:56:30 AM BRT +UPDATE AD_Column SET FKConstraintName='ADLabelStyle_ADLabel', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-16 09:56:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214877 +; + +-- May 16, 2022, 9:56:30 AM BRT +ALTER TABLE AD_Label ADD AD_LabelStyle_ID NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 9:56:30 AM BRT +ALTER TABLE AD_Label ADD CONSTRAINT ADLabelStyle_ADLabel FOREIGN KEY (AD_LabelStyle_ID) REFERENCES ad_style(ad_style_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:57:32 AM BRT +UPDATE AD_Column SET IsTranslated='Y',Updated=TO_TIMESTAMP('2022-05-16 09:57:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214874 +; + +-- May 16, 2022, 9:57:43 AM BRT +UPDATE AD_Column SET IsTranslated='Y',Updated=TO_TIMESTAMP('2022-05-16 09:57:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214875 +; + +-- May 16, 2022, 9:58:20 AM BRT +INSERT INTO AD_Table (AD_Table_ID,Name,Description,TableName,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,IsChangeLog,ReplicationType,AD_Table_UU,Processing) VALUES (200346,'Label Trl','Record Label Trl','AD_Label_Trl','6',0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:19','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:19','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','N','D','Y','L','442fe197-6c17-4f78-be70-da69b541f604','N') +; + +-- May 16, 2022, 9:58:20 AM 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 ('AD_Label_Trl',1000000,'N','N','Table AD_Label_Trl','Y','Y',0,0,TO_TIMESTAMP('2022-05-16 09:58:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:20','YYYY-MM-DD HH24:MI:SS'),10,200414,'Y',1000000,1,200000,'07bf956f-da74-41b3-aec7-1dfb08152eac') +; + +-- May 16, 2022, 9:58:21 AM 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,ReadOnlyLogic,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214878,0.0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200346,'AD_Client_ID','@#AD_Client_ID@',10,'N','N','Y','N','N','N',30,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:20','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','1=1','D','N','ee0fb99d-9a18-4b81-9ab5-dac4e0ca16db','N') +; + +-- May 16, 2022, 9:58:21 AM 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 (214879,0.0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200346,'AD_Org_ID','@AD_Org_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:21','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','25033204-c4b3-4ac5-ae41-d4e29e20eba5','N') +; + +-- May 16, 2022, 9:58:22 AM 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 (214880,0.0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200346,'Created',7,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:21','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','f069e7c5-9721-4b0a-97b5-ca554adc9553','N') +; + +-- May 16, 2022, 9:58:22 AM 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) VALUES (214881,0.0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200346,'CreatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:22','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:22','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','04551a6a-77f5-445c-9802-c41964a4fb86','N') +; + +-- May 16, 2022, 9:58:23 AM 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 (214882,0.0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200346,'Updated',7,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:22','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:22','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','12310eea-000f-4018-ac6a-fb22c8f25bd8','N') +; + +-- May 16, 2022, 9:58:23 AM 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) VALUES (214883,0.0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200346,'UpdatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:23','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','69703e1f-79d5-48ac-972d-65f4f94acf60','N') +; + +-- May 16, 2022, 9:58:23 AM 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 (214884,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.',200346,'IsActive','Y',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:23','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','3ab8d9b7-070e-4080-8e3d-189a721fe064','N') +; + +-- May 16, 2022, 9:58:24 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,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 (214885,0.0,'Label','Record Label',200346,'AD_Label_ID',10,'N','Y','Y','N','N','N',30,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:23','YYYY-MM-DD HH24:MI:SS'),10,203592,'N','N','D','N','a8cae4fd-ae35-4a32-bb86-08baf356a3b5','N','C') +; + +-- May 16, 2022, 9:58:24 AM 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 (203594,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:24','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:24','YYYY-MM-DD HH24:MI:SS'),10,'AD_Label_Trl_UU','AD_Label_Trl_UU','AD_Label_Trl_UU','D','2ca2cab5-651f-4c6e-80d7-963f2b8ec440') +; + +-- May 16, 2022, 9:58:25 AM 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 (214886,0.0,'AD_Label_Trl_UU',200346,'AD_Label_Trl_UU',36,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:24','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:24','YYYY-MM-DD HH24:MI:SS'),10,203594,'Y','N','D','N','2a254844-432c-40f0-b11d-43dc26a587d8','N') +; + +-- May 16, 2022, 9:58:25 AM 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) VALUES (214887,0.0,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200346,'AD_Language',6,'N','Y','Y','N','N','N',18,106,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:25','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:25','YYYY-MM-DD HH24:MI:SS'),10,109,'N','N','D','N','4950a32e-f1b2-4dab-920b-4d88e706d5db','N') +; + +-- May 16, 2022, 9:58:26 AM 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 (214888,0.0,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200346,'IsTranslated','N',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:25','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:25','YYYY-MM-DD HH24:MI:SS'),10,420,'Y','N','D','N','8f4cfdfc-52ae-4273-9259-2e36af0095b0','N') +; + +-- May 16, 2022, 9:58:26 AM 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 (214889,0.0,'Description','Optional short description of the record','A description is limited to 255 characters.',200346,'Description',255,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:26','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:26','YYYY-MM-DD HH24:MI:SS'),10,275,'Y','N','D','N','7a18dcc3-e375-4a82-a957-090d8bb4db7b','N') +; + +-- May 16, 2022, 9:58:27 AM 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,SeqNoSelection,IsToolbarButton) VALUES (214890,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.',200346,'Name',60,'N','N','Y','N','Y','N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:26','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:26','YYYY-MM-DD HH24:MI:SS'),10,469,'Y','Y','D','N','5e09f949-cbed-407d-a216-3d2d676a3f2c',10,'N') +; + +-- May 16, 2022, 10:07:42 AM BRT +CREATE TABLE AD_Label_Trl (AD_Client_ID NUMBER(10) NOT NULL, AD_Label_ID NUMBER(10) NOT NULL, AD_Label_Trl_UU VARCHAR2(36 CHAR) DEFAULT NULL , AD_Language VARCHAR2(6 CHAR) NOT NULL, AD_Org_ID NUMBER(10) NOT NULL, Created DATE NOT NULL, CreatedBy NUMBER(10) NOT NULL, Description VARCHAR2(255 CHAR) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, IsTranslated CHAR(1) DEFAULT 'N' CHECK (IsTranslated IN ('Y','N')) NOT NULL, Name VARCHAR2(60 CHAR) NOT NULL, Updated DATE NOT NULL, UpdatedBy NUMBER(10) NOT NULL, CONSTRAINT AD_Label_Trl_UU_idx UNIQUE (AD_Label_Trl_UU)) +; + +-- May 16, 2022, 10:07:42 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT ADClient_ADLabelTrl FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:07:42 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT ADLabel_ADLabelTrl FOREIGN KEY (AD_Label_ID) REFERENCES ad_label(ad_label_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:07:42 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT ADLanguage_ADLabelTrl FOREIGN KEY (AD_Language) REFERENCES ad_language(ad_language) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:07:42 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT ADOrg_ADLabelTrl FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:07:42 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT CreatedBy_ADLabelTrl FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:07:42 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT UpdatedBy_ADLabelTrl FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:08:05 AM BRT +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) VALUES (0,0,201121,'9ca26156-5f14-43f2-9516-381a85a27dba',TO_TIMESTAMP('2022-05-16 10:08:04','YYYY-MM-DD HH24:MI:SS'),10,'D','Y','ad_label_trl_uu_idx',TO_TIMESTAMP('2022-05-16 10:08:04','YYYY-MM-DD HH24:MI:SS'),10,200346,'N','Y','N') +; + +-- May 16, 2022, 10:08:05 AM BRT +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201498,'2f522b7c-9487-4a35-8463-03bfc45771ed',TO_TIMESTAMP('2022-05-16 10:08:05','YYYY-MM-DD HH24:MI:SS'),10,'Y',TO_TIMESTAMP('2022-05-16 10:08:05','YYYY-MM-DD HH24:MI:SS'),10,214886,201121,1) +; + +-- May 16, 2022, 10:08:05 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT AD_Label_Trl_pkey PRIMARY KEY (AD_Language,AD_Label_ID) +; + +-- May 16, 2022, 10:12:09 AM 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,CreateWindowFromTable) VALUES (200347,'Label Assignment','AD_LabelAssignment',0,'6',0,0,'Y',TO_TIMESTAMP('2022-05-16 10:12:08','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:12:08','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','Y','N','D','N','Y','L','N','Y','7df38426-2bad-4064-879a-548d47606959','N','N','N','N') +; + +-- May 16, 2022, 10:12:09 AM 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 ('AD_LabelAssignment',1000000,'N','N','Table AD_LabelAssignment','Y','Y',0,0,TO_TIMESTAMP('2022-05-16 10:12:09','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:12:09','YYYY-MM-DD HH24:MI:SS'),10,200415,'Y',1000000,1,200000,'7bd27d64-cc9a-466d-8a09-39aa7cfdd5cf') +; + +-- May 16, 2022, 10:12:36 AM 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 (203595,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:12:35','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:12:35','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelAssignment_ID','Label Assignment','Label Assignment','D','5c954ef7-2e95-445a-9fda-40ec3c679c6e') +; + +-- May 16, 2022, 10:12:46 AM 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 (203596,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:12:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:12:45','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelAssignment_UU','Label Assignment','Label Assignment','D','c2023c8f-0c59-49d6-99f3-5646e49c56a6') +; + +-- May 16, 2022, 10:12:59 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214891,0,'Label Assignment',200347,'AD_LabelAssignment_ID',22,'Y','N','N','N','N',0,'N',13,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:12:59','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:12:59','YYYY-MM-DD HH24:MI:SS'),10,203595,'N','N','D','N','N','N','Y','45d996a0-7eb2-476c-b917-6de84d34cb7f','N',0,'N','N','N','N') +; + +-- May 16, 2022, 10:13:01 AM BRT +CREATE TABLE AD_LabelAssignment (AD_LabelAssignment_ID NUMBER(10) DEFAULT NULL , CONSTRAINT AD_LabelAssignment_Key PRIMARY KEY (AD_LabelAssignment_ID)) +; + +-- May 16, 2022, 10:13:10 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214892,0,'Label Assignment',200347,'AD_LabelAssignment_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:13:09','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:13:09','YYYY-MM-DD HH24:MI:SS'),10,203596,'N','N','D','N','N','N','Y','a07174cc-3eff-475a-a285-16b71515d426','N',0,'N','N','N','N') +; + +-- May 16, 2022, 10:13:11 AM BRT +ALTER TABLE AD_LabelAssignment ADD AD_LabelAssignment_UU VARCHAR2(36 CHAR) DEFAULT NULL +; + +-- May 16, 2022, 10:13:11 AM BRT +ALTER TABLE AD_LabelAssignment ADD CONSTRAINT AD_LabelAssignment_UU_idx UNIQUE (AD_LabelAssignment_UU) +; + +-- May 16, 2022, 10:13:22 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214893,0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200347,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:13:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:13:21','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','D','N','N','N','Y','5d2299a5-8ae0-44fb-8d5a-ca95335584af','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:13:24 AM BRT +ALTER TABLE AD_LabelAssignment ADD AD_Client_ID NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 10:13:34 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214894,0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200347,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:13:34','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:13:34','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','N','N','Y','e01e9b5b-06af-496e-926a-9592d774f5f9','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:13:36 AM BRT +ALTER TABLE AD_LabelAssignment ADD AD_Org_ID NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 10:13:46 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214895,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200347,'Created','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:13:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:13:45','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','N','N','Y','fdb743ce-ef92-4854-b565-6ecbf359557d','N',0,'N','N','N') +; + +-- May 16, 2022, 10:13:47 AM BRT +ALTER TABLE AD_LabelAssignment ADD Created DATE DEFAULT SYSDATE +; + +-- May 16, 2022, 10:13:57 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214896,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200347,'CreatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:13:56','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:13:56','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','N','N','Y','c1c1e5dc-148e-4cc7-98ad-a29a48e3efc7','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:13:58 AM BRT +ALTER TABLE AD_LabelAssignment ADD CreatedBy NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 10:14:12 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214897,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200347,'Updated','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:14:11','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:14:11','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','N','N','Y','32890a45-51c0-4fad-8a8d-8c79b0739994','N',0,'N','N','N') +; + +-- May 16, 2022, 10:14:13 AM BRT +ALTER TABLE AD_LabelAssignment ADD Updated DATE DEFAULT SYSDATE +; + +-- May 16, 2022, 10:14:24 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214898,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200347,'UpdatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:14:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:14:23','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','N','N','Y','0cf50ce3-6270-450a-b146-905245b87b2e','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:14:25 AM BRT +ALTER TABLE AD_LabelAssignment ADD UpdatedBy NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 10:14:36 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214899,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.',200347,'IsActive','Y',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:14:36','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:14:36','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','N','N','Y','6129cecb-56fe-4aa7-8a79-c02e3fba89be','N',0,'N','N','N') +; + +-- May 16, 2022, 10:14:38 AM BRT +ALTER TABLE AD_LabelAssignment ADD IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) +; + +-- May 16, 2022, 10:15:08 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214900,0,'Description','Optional short description of the record','A description is limited to 255 characters.',200347,'Description',255,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:15:07','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:15:07','YYYY-MM-DD HH24:MI:SS'),10,275,'Y','Y','D','N','N','N','Y','aeac2b6d-7410-4a49-b1d5-68842e54b074','Y',10,'N','N','N') +; + +-- May 16, 2022, 10:15:09 AM BRT +ALTER TABLE AD_LabelAssignment ADD Description VARCHAR2(255 CHAR) DEFAULT NULL +; + +-- May 16, 2022, 10:15:23 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214901,0,'Label','Record Label',200347,'AD_Label_ID',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:15:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:15:23','YYYY-MM-DD HH24:MI:SS'),10,203592,'N','N','D','N','N','N','Y','0bde1e53-70e3-4015-9598-0e97f3e433a6','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 10:15:25 AM BRT +UPDATE AD_Column SET FKConstraintName='ADLabel_ADLabelAssignment', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-16 10:15:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214901 +; + +-- May 16, 2022, 10:15:25 AM BRT +ALTER TABLE AD_LabelAssignment ADD AD_Label_ID NUMBER(10) NOT NULL +; + +-- May 16, 2022, 10:15:25 AM BRT +ALTER TABLE AD_LabelAssignment ADD CONSTRAINT ADLabel_ADLabelAssignment FOREIGN KEY (AD_Label_ID) REFERENCES ad_label(ad_label_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:15:42 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214902,0,'Table','Database Table information','The Database Table provides the information of the table definition',200347,'AD_Table_ID',10,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:15:42','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:15:42','YYYY-MM-DD HH24:MI:SS'),10,126,'N','N','D','N','N','N','Y','b1261ad0-f068-4785-ac4e-3ac8b78af0cd','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 10:15:44 AM BRT +UPDATE AD_Column SET FKConstraintName='ADTable_ADLabelAssignment', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-16 10:15:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214902 +; + +-- May 16, 2022, 10:15:44 AM BRT +ALTER TABLE AD_LabelAssignment ADD AD_Table_ID NUMBER(10) NOT NULL +; + +-- May 16, 2022, 10:15:44 AM BRT +ALTER TABLE AD_LabelAssignment ADD CONSTRAINT ADTable_ADLabelAssignment FOREIGN KEY (AD_Table_ID) REFERENCES ad_table(ad_table_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:16:01 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214903,0,'Record ID','Direct internal record ID','The Record ID is the internal unique identifier of a record. Please note that zooming to the record may not be successful for Orders, Invoices and Shipment/Receipts as sometimes the Sales Order type is not known.',200347,'Record_ID',22,'N','N','Y','N','N',0,'N',28,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:16:00','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:16:00','YYYY-MM-DD HH24:MI:SS'),10,538,'N','N','D','N','N','N','Y','9a4e7ee6-82ea-4aae-b987-b1e5763bf1ca','Y',0,'Y','N','N') +; + +-- May 16, 2022, 10:16:03 AM BRT +ALTER TABLE AD_LabelAssignment ADD Record_ID NUMBER(10) NOT NULL +; + +-- May 16, 2022, 10:25:49 AM 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,CreateWindowFromTable) VALUES (200348,'Label Category Table Access','AD_LabelCategoryTable',0,'6',0,0,'Y',TO_TIMESTAMP('2022-05-16 10:25:49','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:25:49','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','N','N','D','N','Y','L','N','Y','5e3cdf5b-9a02-4318-9315-431ffe458e1a','N','N','N','N') +; + +-- May 16, 2022, 10:25:50 AM 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 ('AD_LabelCategoryTable',1000000,'N','N','Table AD_LabelCategoryTable','Y','Y',0,0,TO_TIMESTAMP('2022-05-16 10:25:49','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:25:49','YYYY-MM-DD HH24:MI:SS'),10,200416,'Y',1000000,1,200000,'6a24fbc3-31d2-4ea6-a328-0c064367553c') +; + +-- May 16, 2022, 10:26:11 AM 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 (203597,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:26:11','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:26:11','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelCategoryTable_ID','Label Category Table Access','Label Category Table Access','D','13a0865c-948a-4aa1-894e-b77b10bd2181') +; + +-- May 16, 2022, 10:26:17 AM 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 (203598,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:26:16','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:26:16','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelCategoryTable_UU','Label Category Table Access','Label Category Table Access','D','580fab2c-f4e0-4fcc-9374-95a0c0f29eac') +; + +-- May 16, 2022, 10:26:28 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214904,0,'Label Category Table Access',200348,'AD_LabelCategoryTable_ID',22,'Y','N','N','N','N',0,'N',13,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:26:27','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:26:27','YYYY-MM-DD HH24:MI:SS'),10,203597,'N','N','D','N','N','N','Y','38e7ea83-c3b3-40eb-8785-0da28239205f','N',0,'N','N','N','N') +; + +-- May 16, 2022, 10:26:30 AM BRT +CREATE TABLE AD_LabelCategoryTable (AD_LabelCategoryTable_ID NUMBER(10) DEFAULT NULL , CONSTRAINT AD_LabelCategoryTable_Key PRIMARY KEY (AD_LabelCategoryTable_ID)) +; + +-- May 16, 2022, 10:26:38 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214905,0,'Label Category Table Access',200348,'AD_LabelCategoryTable_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:26:37','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:26:37','YYYY-MM-DD HH24:MI:SS'),10,203598,'N','N','D','N','N','N','Y','b2c0bd4e-7654-4d51-b81e-2dbfd29e6488','N',0,'N','N','N','N') +; + +-- May 16, 2022, 10:26:39 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD AD_LabelCategoryTable_UU VARCHAR2(36 CHAR) DEFAULT NULL +; + +-- May 16, 2022, 10:26:39 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD CONSTRAINT AD_LabelCategoryTable_UU_idx UNIQUE (AD_LabelCategoryTable_UU) +; + +-- May 16, 2022, 10:26:48 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214906,0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200348,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:26:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:26:48','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','D','N','N','N','Y','1cf99e59-2efd-4a7f-81d7-6c340a2ead7f','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:26:50 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD AD_Client_ID NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 10:26:59 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214907,0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200348,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:26:58','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:26:58','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','N','N','Y','74386679-a151-46e4-b9f6-48b9f38b14f8','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:27:00 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD AD_Org_ID NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 10:27:10 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214908,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200348,'Created','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:27:10','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:27:10','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','N','N','Y','7322cd98-d6d6-44a3-9027-7172bcb6b480','N',0,'N','N','N') +; + +-- May 16, 2022, 10:27:12 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD Created DATE DEFAULT SYSDATE +; + +-- May 16, 2022, 10:27:20 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214909,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200348,'CreatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:27:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:27:20','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','N','N','Y','c1d2993f-6272-449b-9c1f-676f9d838c34','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:27:23 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD CreatedBy NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 10:27:35 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214910,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200348,'Updated','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:27:34','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:27:34','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','N','N','Y','c58b4041-0395-4ba0-a481-8855b502c472','N',0,'N','N','N') +; + +-- May 16, 2022, 10:27:36 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD Updated DATE DEFAULT SYSDATE +; + +-- May 16, 2022, 10:27:45 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214911,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200348,'UpdatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:27:44','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:27:44','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','N','N','Y','9cf8519b-4ca8-46a1-b5ae-c16d06cd0755','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:27:47 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD UpdatedBy NUMBER(10) DEFAULT NULL +; + +-- May 16, 2022, 10:27:58 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214912,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.',200348,'IsActive','Y',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:27:57','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:27:57','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','N','N','Y','016ebe05-22d4-47b2-b30b-2cb66a80019b','N',0,'N','N','N') +; + +-- May 16, 2022, 10:27:59 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) +; + +-- May 16, 2022, 10:28:11 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214913,0,'Description','Optional short description of the record','A description is limited to 255 characters.',200348,'Description',255,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:28:10','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:28:10','YYYY-MM-DD HH24:MI:SS'),10,275,'Y','Y','D','N','N','N','Y','134039b3-5286-4501-b927-1efa79479248','Y',10,'N','N','N') +; + +-- May 16, 2022, 10:28:13 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD Description VARCHAR2(255 CHAR) DEFAULT NULL +; + +-- May 16, 2022, 10:28:34 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214914,0,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200348,'AD_LabelCategory_ID',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:28:33','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:28:33','YYYY-MM-DD HH24:MI:SS'),10,203589,'N','N','D','N','N','N','Y','5c59f9a1-062d-4b3a-a022-00ec3fc86347','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 10:28:36 AM BRT +UPDATE AD_Column SET FKConstraintName='ADLABELCATEGORY_ADLABCATTABLE', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-16 10:28:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214914 +; + +-- May 16, 2022, 10:30:49 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD AD_LabelCategory_ID NUMBER(10) NOT NULL +; + +-- May 16, 2022, 10:30:49 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD CONSTRAINT ADLABELCATEGORY_ADLABCATTABLE FOREIGN KEY (AD_LabelCategory_ID) REFERENCES ad_labelcategory(ad_labelcategory_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:31:23 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214915,0,'Table','Database Table information','The Database Table provides the information of the table definition',200348,'AD_Table_ID',10,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:31:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:31:23','YYYY-MM-DD HH24:MI:SS'),10,126,'Y','N','D','N','N','N','Y','b6afe6dc-5244-489e-9b28-db6276ebb8e7','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 10:31:25 AM BRT +UPDATE AD_Column SET FKConstraintName='ADTable_ADLabelCategoryTable', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-16 10:31:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214915 +; + +-- May 16, 2022, 10:31:25 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD AD_Table_ID NUMBER(10) NOT NULL +; + +-- May 16, 2022, 10:31:25 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD CONSTRAINT ADTable_ADLabelCategoryTable FOREIGN KEY (AD_Table_ID) REFERENCES ad_table(ad_table_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:57:56 AM 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 (203599,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:57:55','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:57:55','YYYY-MM-DD HH24:MI:SS'),10,'IsCanBeUsedInAllTables','Can Be Used in All Tables','Can Be Used in All Tables','D','619a9643-c41a-4f6e-b2b3-5067c25a47ae') +; + +-- May 16, 2022, 10:59:13 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,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,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214916,0,'Can Be Used in All Tables',200343,'IsCanBeUsedInAllTables','Y',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:59:13','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:59:13','YYYY-MM-DD HH24:MI:SS'),10,203599,'Y','N','D','N','N','N','Y','03f1d286-e8ee-43e2-b5fd-40aba1fdbb3e','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 10:59:16 AM BRT +ALTER TABLE AD_LabelCategory ADD IsCanBeUsedInAllTables CHAR(1) DEFAULT 'Y' CHECK (IsCanBeUsedInAllTables IN ('Y','N')) +; + +-- May 16, 2022, 11:03:32 AM 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,IsBetaFunctionality,AD_Window_UU) VALUES (200128,'Label Category',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:32','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:32','YYYY-MM-DD HH24:MI:SS'),10,'M','N','D','N','N','N','a7916cbd-120a-49ce-9f13-e95e0c22821a') +; + +-- May 16, 2022, 11:03:33 AM 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,IsTranslationTab,IsReadOnly,OrderByClause,Processing,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU) VALUES (200317,'Label Category',200128,10,'Y',200343,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:33','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:33','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','AD_LabelCategory.Name','N',0,'N','D','Y','N','92db7d06-609b-445b-818c-6a0175a4de1f') +; + +-- May 16, 2022, 11:03:34 AM 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 (207019,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200317,214842,'Y',22,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:33','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:33','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','0f82c372-a445-43dc-bab3-1b008aaf752d','Y',10,2) +; + +-- May 16, 2022, 11:03:34 AM 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,XPosition,ColumnSpan) VALUES (207020,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200317,214843,'Y',22,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:34','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:34','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','64b19dba-4554-4a70-83aa-44e034029ae4','Y','N',4,2) +; + +-- May 16, 2022, 11:03:35 AM 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 (207021,'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.',200317,214850,'Y',60,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:34','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:34','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','a0917d0e-4a3a-4a69-b794-1961cbeb7a1f','Y',20,5) +; + +-- May 16, 2022, 11:03:35 AM 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 (207022,'Description','Optional short description of the record','A description is limited to 255 characters.',200317,214849,'Y',255,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:35','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:35','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','e3578198-ba01-4a83-a7f3-d00656cf5ce4','Y',30,5) +; + +-- May 16, 2022, 11:03:35 AM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,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 (207023,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200317,214840,'N',22,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:35','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:35','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','66859407-fee4-428b-95f9-900ba257c5ab','N',2) +; + +-- May 16, 2022, 11:03:36 AM 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 (207024,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200317,214841,'Y',36,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:35','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:35','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','9697a1f8-b182-4eb4-9502-04ad8011e8a6','Y',40,2) +; + +-- May 16, 2022, 11:03:36 AM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (207025,'Label Style','Label CSS Style',200317,214851,'Y',10,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:36','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:36','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','35ca9a73-c404-4273-9b1a-9836f8259343','Y',50,2) +; + +-- May 16, 2022, 11:03:37 AM 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,XPosition,ColumnSpan) VALUES (207026,'Can Be Used in All Tables',200317,214916,'Y',1,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:36','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:36','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','6d604f0e-ad5e-4b2b-af28-70ac66f6e4a9','Y',60,2,2) +; + +-- May 16, 2022, 11:03:38 AM 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 (207027,'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.',200317,214848,'Y',1,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:37','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:37','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','87ffd0de-f376-4714-825e-15434831fb16','Y',70,2,2) +; + +-- May 16, 2022, 11:03:38 AM 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,AD_Menu_UU) VALUES (200206,'Label Category','W',200128,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:38','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:38','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','D','01036ef5-96ef-48d9-8353-799c4884bb35') +; + +-- May 16, 2022, 11:03:38 AM 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', getDate(), 10, getDate(), 10,t.AD_Tree_ID, 200206, 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=200206) +; + +-- May 16, 2022, 11:03:38 AM BRT +UPDATE AD_Table SET AD_Window_ID=200128,Updated=TO_TIMESTAMP('2022-05-16 11:03:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Table_ID=200343 +; + +-- May 16, 2022, 11:06:49 AM 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('2022-05-16 11:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207027 +; + +-- May 16, 2022, 11:06:49 AM BRT +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207026 +; + +-- May 16, 2022, 11:06:49 AM BRT +UPDATE AD_Field SET SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207025 +; + +-- May 16, 2022, 11:06:49 AM BRT +UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207024 +; + +-- May 16, 2022, 11:06:49 AM BRT +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207023 +; + +-- May 16, 2022, 11:09:21 AM 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,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200318,'Table Access',200128,20,'Y',200348,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:09:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:09:20','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','N','N','N',1,'N','D','Y','N','1b3a9732-0f05-4fbd-9c48-2664563cc582','B','N','Y',0) +; + +-- May 16, 2022, 11:11:08 AM BRT +UPDATE AD_Tab SET DisplayLogic='@IsCanBeUsedInAllTables@=N',Updated=TO_TIMESTAMP('2022-05-16 11:11:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tab_ID=200318 +; + +-- May 16, 2022, 11:11:19 AM 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 (207028,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200318,214906,'Y',22,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:17','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:17','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','46a7b222-2580-412b-b79a-787ff886721c','Y',10,2) +; + +-- May 16, 2022, 11:11:19 AM 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,XPosition,ColumnSpan) VALUES (207029,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200318,214907,'Y',22,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:19','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:19','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','728b5ddd-198c-4ca4-aafe-09778240878b','Y','N',4,2) +; + +-- May 16, 2022, 11:11:20 AM 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 (207030,'Description','Optional short description of the record','A description is limited to 255 characters.',200318,214913,'Y',255,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:19','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:19','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','88a338a1-e0d2-4266-a293-cbaef0e2ec9d','Y',20,5) +; + +-- May 16, 2022, 11:11:20 AM 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 (207031,'Label Category Table Access',200318,214904,'N',22,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:20','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','c310fd39-aef7-4b36-b816-d7bce40e523b','N',2) +; + +-- May 16, 2022, 11:11:21 AM 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 (207032,'Label Category Table Access',200318,214905,'Y',36,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:20','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','79c5c200-2fb8-4e0b-bf12-591f8d18a033','Y',30,2) +; + +-- May 16, 2022, 11:11:21 AM 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 (207033,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200318,214914,'Y',22,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:21','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','ee89f5d4-9e32-4ba9-a7b1-6075bf08a945','Y',40,2) +; + +-- May 16, 2022, 11:11:22 AM 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 (207034,'Table','Database Table information','The Database Table provides the information of the table definition',200318,214915,'Y',10,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:21','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','ac6824cf-4311-465a-a1ac-4c47a4e009cb','Y',50,2) +; + +-- May 16, 2022, 11:11:22 AM 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 (207035,'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.',200318,214912,'Y',1,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:22','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:22','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','862cab79-4cd0-4132-9b25-4b114e3b9121','Y',60,2,2) +; + +-- May 16, 2022, 11:13:18 AM BRT +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:13:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207033 +; + +-- May 16, 2022, 11:13:18 AM 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('2022-05-16 11:13:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207035 +; + +-- May 16, 2022, 11:13:18 AM BRT +UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:13:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207032 +; + +-- May 16, 2022, 11:13:18 AM BRT +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:13:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207031 +; + +-- May 16, 2022, 11:14:37 AM BRT +UPDATE AD_Tab SET AD_Column_ID=214914, Parent_Column_ID=214840,Updated=TO_TIMESTAMP('2022-05-16 11:14:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tab_ID=200318 +; + +-- May 16, 2022, 11:15:10 AM BRT +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=35,Updated=TO_TIMESTAMP('2022-05-16 11:15:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=200206 +; + +-- May 16, 2022, 11:15:10 AM BRT +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=36,Updated=TO_TIMESTAMP('2022-05-16 11:15:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=50001 +; + +-- May 16, 2022, 11:19:14 AM 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,AD_Column_ID,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200319,'Translation',200128,30,'Y',200344,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:13','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:13','YYYY-MM-DD HH24:MI:SS'),10,'N','N','Y','N',214859,'N','N',0,'N','D','N','N','8d58160e-5e05-4895-9e3f-671bf61bf87d','B','N','Y',0) +; + +-- May 16, 2022, 11:19:25 AM 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 (207036,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200319,214852,'Y',10,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:25','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:25','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','5fe9045e-1c5d-44ca-b684-403f1887e1e6','Y',10,2) +; + +-- May 16, 2022, 11:19:26 AM 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,XPosition,ColumnSpan) VALUES (207037,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200319,214853,'Y',10,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:25','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:25','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','f35e3e14-99a2-4b6e-8808-42aa52d819a7','Y','N',4,2) +; + +-- May 16, 2022, 11:19:26 AM 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 (207038,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200319,214861,'Y',6,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:26','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:26','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','0fcc713c-d774-49dd-935f-0fe8046329b1','Y',20,2) +; + +-- May 16, 2022, 11:19:27 AM 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 (207039,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200319,214859,'Y',10,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:26','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:26','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','3eb034cd-8b50-464b-9955-40e96e465233','Y',30,2) +; + +-- May 16, 2022, 11:19:27 AM 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 (207040,'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.',200319,214864,'Y',60,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:27','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:27','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','8a9953b2-f3e7-4982-a0ca-8d79f1220420','Y',40,5) +; + +-- May 16, 2022, 11:19:28 AM 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 (207041,'Description','Optional short description of the record','A description is limited to 255 characters.',200319,214863,'Y',255,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:27','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:27','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','524b73fb-b2e3-4355-b07b-6cc8612c045f','Y',50,5) +; + +-- May 16, 2022, 11:19:28 AM 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 (207042,'AD_LabelCategory_Trl_UU',200319,214860,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:28','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:28','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','e329a63e-2eb3-4c98-abb5-f41077fd511d','N',2) +; + +-- May 16, 2022, 11:19:28 AM 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 (207043,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200319,214862,'Y',1,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:28','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:28','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','fd45054c-4231-4298-86c0-c6c515940035','Y',60,2,2) +; + +-- May 16, 2022, 11:19:29 AM 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 (207044,'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.',200319,214858,'Y',1,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:28','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:28','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','4cd72939-a9dc-4451-80fa-0e474f9d24b8','Y',70,2,2) +; + +-- May 16, 2022, 11:20:48 AM BRT +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('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207039 +; + +-- May 16, 2022, 11:20:48 AM BRT +UPDATE AD_Field SET SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207038 +; + +-- May 16, 2022, 11:20:48 AM 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('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207044 +; + +-- May 16, 2022, 11:20:48 AM BRT +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207043 +; + +-- May 16, 2022, 11:20:48 AM BRT +UPDATE AD_Field SET SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207040 +; + +-- May 16, 2022, 11:20:48 AM BRT +UPDATE AD_Field SET SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207041 +; + +-- May 16, 2022, 11:20:48 AM BRT +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207042 +; + +-- May 16, 2022, 11:21:20 AM BRT +UPDATE AD_Field SET IsReadOnly='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:21:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207028 +; + +-- May 16, 2022, 11:21:52 AM BRT +UPDATE AD_Field SET IsMandatory='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:21:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207028 +; + +-- May 16, 2022, 11:22:05 AM BRT +UPDATE AD_Field SET IsMandatory='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:22:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207029 +; + +-- May 16, 2022, 11:22:28 AM BRT +UPDATE AD_Field SET IsReadOnly='Y', IsMandatory='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:22:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207019 +; + +-- May 16, 2022, 11:22:36 AM BRT +UPDATE AD_Field SET IsMandatory='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:22:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207020 +; + +-- May 16, 2022, 11:23:43 AM BRT +UPDATE AD_Table SET AD_Window_ID=200128,Updated=TO_TIMESTAMP('2022-05-16 11:23:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Table_ID=200348 +; + +-- May 16, 2022, 11:24:04 AM 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,IsBetaFunctionality,AD_Window_UU) VALUES (200129,'Label',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:03','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:03','YYYY-MM-DD HH24:MI:SS'),10,'M','N','D','N','N','N','0bce0ec1-c6ee-4a1d-8bf1-6948590be93a') +; + +-- May 16, 2022, 11:24:04 AM 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,IsTranslationTab,IsReadOnly,OrderByClause,Processing,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU) VALUES (200320,'Label',200129,10,'Y',200345,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:04','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:04','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','AD_Label.Name','N',0,'N','D','Y','N','703d7d2d-03bf-41d6-aabb-ac8244243125') +; + +-- May 16, 2022, 11:24:05 AM 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 (207045,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200320,214867,'Y',22,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:04','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:04','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','27197aa7-b9b2-4e74-b7a0-4b344a492268','Y',10,2) +; + +-- May 16, 2022, 11:24:05 AM 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,XPosition,ColumnSpan) VALUES (207046,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200320,214868,'Y',22,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:05','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:05','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','9726e0c5-76cf-40f1-a816-6bf4fd47bfd2','Y','N',4,2) +; + +-- May 16, 2022, 11:24:06 AM 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 (207047,'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.',200320,214875,'Y',60,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:05','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:05','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','6520bfa8-fbb3-489d-87a2-91604c39dbe4','Y',20,5) +; + +-- May 16, 2022, 11:24:06 AM 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 (207048,'Description','Optional short description of the record','A description is limited to 255 characters.',200320,214874,'Y',255,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:06','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:06','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','a08016ad-5b98-4d5e-9853-c6f16bfdb894','Y',30,5) +; + +-- May 16, 2022, 11:24:07 AM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (207049,'Label','Record Label',200320,214865,'N',22,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:06','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:06','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','9d67783e-e0cd-4ae9-930a-599c6fac8ac0','N',2) +; + +-- May 16, 2022, 11:24:07 AM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (207050,'Label','Record Label',200320,214866,'Y',36,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:07','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:07','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','15cfe237-2563-469f-a938-5ad0a31b7b1f','Y',40,2) +; + +-- May 16, 2022, 11:24:07 AM 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 (207051,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200320,214876,'Y',22,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:07','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:07','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','75b5d10e-c25e-42c2-a083-5c5b31b763b3','Y',50,2) +; + +-- May 16, 2022, 11:24:08 AM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (207052,'Label Style','Label CSS Style',200320,214877,'Y',10,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:07','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:07','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','1fa1c09b-4b4d-4e81-92b8-c50ef5fe36c8','Y',60,2) +; + +-- May 16, 2022, 11:24:08 AM 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 (207053,'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.',200320,214873,'Y',1,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:08','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:08','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','f6e61fec-ed11-405f-85e9-1192e2c0b6a2','Y',70,2,2) +; + +-- May 16, 2022, 11:24:09 AM 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,AD_Menu_UU) VALUES (200207,'Label','W',200129,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:08','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:08','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','D','614bbf32-a32b-42c4-abb8-758c2f3c0d08') +; + +-- May 16, 2022, 11:24:09 AM 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', getDate(), 10, getDate(), 10,t.AD_Tree_ID, 200207, 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=200207) +; + +-- May 16, 2022, 11:24:09 AM BRT +UPDATE AD_Table SET AD_Window_ID=200129,Updated=TO_TIMESTAMP('2022-05-16 11:24:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Table_ID=200345 +; + +-- May 16, 2022, 11:25:25 AM BRT +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=36,Updated=TO_TIMESTAMP('2022-05-16 11:25:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=200207 +; + +-- May 16, 2022, 11:25:25 AM BRT +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=37,Updated=TO_TIMESTAMP('2022-05-16 11:25:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=50001 +; + +-- May 16, 2022, 11:26:25 AM 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('2022-05-16 11:26:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207053 +; + +-- May 16, 2022, 11:26:25 AM BRT +UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:26:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207050 +; + +-- May 16, 2022, 11:26:25 AM BRT +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:26:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207049 +; + +-- May 16, 2022, 11:26:41 AM BRT +UPDATE AD_Field SET IsReadOnly='Y', IsMandatory='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:26:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207045 +; + +-- May 16, 2022, 11:26:50 AM BRT +UPDATE AD_Field SET IsMandatory='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:26:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207046 +; + +-- May 16, 2022, 11:30:10 AM 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,AD_Column_ID,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200321,'Translation',200129,20,'Y',200346,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:04','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:04','YYYY-MM-DD HH24:MI:SS'),10,'N','N','Y','N',214885,'N','N',1,'N','D','N','N','71acff37-8644-417a-b91b-b62164ab196b','B','N','Y',0) +; + +-- May 16, 2022, 11:30:21 AM 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 (207054,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200321,214878,'Y',10,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:20','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','4bd3b69a-c3ed-4305-b366-3850292809af','Y',10,2) +; + +-- May 16, 2022, 11:30:21 AM 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,XPosition,ColumnSpan) VALUES (207055,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200321,214879,'Y',10,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:21','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','4cde7581-ad87-4160-9dc6-bf31c3ebba23','Y','N',4,2) +; + +-- May 16, 2022, 11:30:22 AM 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 (207056,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200321,214887,'Y',6,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:21','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','94a7e605-8f08-416b-ae34-d94c1a2234ea','Y',20,2) +; + +-- May 16, 2022, 11:30:23 AM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (207057,'Label','Record Label',200321,214885,'Y',10,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:22','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:22','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','e1e04055-79db-4b81-97ae-b06b0ddb1cc2','Y',30,2) +; + +-- May 16, 2022, 11:30:23 AM 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 (207058,'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.',200321,214890,'Y',60,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:23','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','d8adc616-6fa4-4988-b67d-3dddec43478c','Y',40,5) +; + +-- May 16, 2022, 11:30:23 AM 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 (207059,'Description','Optional short description of the record','A description is limited to 255 characters.',200321,214889,'Y',255,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:23','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','bac47250-6155-4b50-ac46-ea6b4ddce877','Y',50,5) +; + +-- May 16, 2022, 11:30:24 AM 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 (207060,'AD_Label_Trl_UU',200321,214886,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:23','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','57161acb-c6bb-402a-8895-178fa89bc8c1','N',2) +; + +-- May 16, 2022, 11:30:25 AM 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 (207061,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200321,214888,'Y',1,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:24','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:24','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','c7a21981-6ec2-4d91-837a-29a614da3d2c','Y',60,2,2) +; + +-- May 16, 2022, 11:30:25 AM 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 (207062,'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.',200321,214884,'Y',1,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:25','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:25','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','84b5aa87-1611-4f2a-9217-c2c56fa8c237','Y',70,2,2) +; + +-- May 16, 2022, 11:31:05 AM BRT +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('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207057 +; + +-- May 16, 2022, 11:31:05 AM BRT +UPDATE AD_Field SET SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207056 +; + +-- May 16, 2022, 11:31:05 AM 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('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207062 +; + +-- May 16, 2022, 11:31:05 AM BRT +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207061 +; + +-- May 16, 2022, 11:31:05 AM BRT +UPDATE AD_Field SET SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207058 +; + +-- May 16, 2022, 11:31:05 AM BRT +UPDATE AD_Field SET SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207059 +; + +-- May 16, 2022, 11:31:05 AM BRT +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207060 +; + +-- May 16, 2022, 11:31:32 AM BRT +UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2022-05-16 11:31:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tab_ID=200319 +; + +-- May 25, 2022, 1:11:55 PM BRT +INSERT INTO AD_ToolBarButton (AD_Client_ID,AD_Org_ID,Created,CreatedBy,ComponentName,IsActive,AD_ToolBarButton_ID,Name,Updated,UpdatedBy,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_ToolBarButton_UU,Action,IsAdvancedButton,IsAddSeparator,EntityType,IsShowMore) VALUES (0,0,TO_TIMESTAMP('2022-05-25 13:11:54','YYYY-MM-DD HH24:MI:SS'),10,'Label','Y',200121,'Window - Label',TO_TIMESTAMP('2022-05-25 13:11:54','YYYY-MM-DD HH24:MI:SS'),10,'N',0,0,'e17bd1a3-5913-4f9b-9b70-5aa2d0ea0b0f','W','N','N','D','N') +; + +-- Jun 3, 2022, 10:56:26 AM BRT +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,201123,'8ff87816-69a2-4cce-a02a-e9e6bb749c6c',TO_TIMESTAMP('2022-06-03 10:56:25','YYYY-MM-DD HH24:MI:SS'),10,'D','Y','ad_labelassignment_tablerecord',TO_TIMESTAMP('2022-06-03 10:56:25','YYYY-MM-DD HH24:MI:SS'),10,200347,'N','N','N','N','N') +; + +-- Jun 3, 2022, 10:56:44 AM BRT +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,201501,'1b116c7d-8d69-4b19-8a65-fa480341e1a1',TO_TIMESTAMP('2022-06-03 10:56:43','YYYY-MM-DD HH24:MI:SS'),10,'D','Y',TO_TIMESTAMP('2022-06-03 10:56:43','YYYY-MM-DD HH24:MI:SS'),10,214902,201123,10) +; + +-- Jun 3, 2022, 10:56:50 AM BRT +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,201502,'c20a08a9-68d4-4a0c-aec2-37ede64dc3f4',TO_TIMESTAMP('2022-06-03 10:56:49','YYYY-MM-DD HH24:MI:SS'),10,'D','Y',TO_TIMESTAMP('2022-06-03 10:56:49','YYYY-MM-DD HH24:MI:SS'),10,214903,201123,20) +; + +-- Jun 3, 2022, 10:56:57 AM BRT +CREATE INDEX ad_labelassignment_tablerecord ON AD_LabelAssignment (AD_Table_ID,Record_ID) +; + +-- Jun 3, 2022, 10:59:45 AM BRT +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Type to Search or Create',0,0,'Y',TO_TIMESTAMP('2022-06-03 10:59:44','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-03 10:59:44','YYYY-MM-DD HH24:MI:SS'),10,200759,'TypeToSearchOrCreate','D','47d27771-32b3-4daa-92dc-8ef6318716b1') +; + diff --git a/migration/iD10/oracle/202206241449_IDEMPIERE-5259.sql b/migration/iD10/oracle/202206241449_IDEMPIERE-5259.sql new file mode 100644 index 0000000000..b4b5cc8f1c --- /dev/null +++ b/migration/iD10/oracle/202206241449_IDEMPIERE-5259.sql @@ -0,0 +1,109 @@ +-- IDEMPIERE-5259 New window Label Assignment +SELECT register_migration_script('202206241449_IDEMPIERE-5259.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Jun 24, 2022, 2:49:05 PM 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 (200130,'Label Assignment',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:49:05','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:49:05','YYYY-MM-DD HH24:MI:SS'),10,'M','N','D','N','N',0,0,'N','592aed77-8bce-4903-8b77-ad839869a525') +; + +-- Jun 24, 2022, 2:50:25 PM 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,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200324,'Assignment',200130,10,'Y',200347,0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:25','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:25','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','N','N','N',0,'N','D','Y','N','379bc7ea-82fb-4be7-867e-17706d30d156','B','N','Y',0) +; + +-- Jun 24, 2022, 2:50:38 PM 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 (207100,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200324,214893,'Y',22,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:38','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:38','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','358c70ff-aec5-4677-aacb-9e335675d5b6','Y',10,2) +; + +-- Jun 24, 2022, 2:50:39 PM 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,XPosition,ColumnSpan) VALUES (207101,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200324,214894,'Y',22,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:38','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:38','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','25b2fc93-0c1e-4110-a073-bb41f9557aaa','Y','N',4,2) +; + +-- Jun 24, 2022, 2:50:39 PM 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 (207102,'Description','Optional short description of the record','A description is limited to 255 characters.',200324,214900,'Y',255,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:39','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:39','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','1ddb9684-ad07-42d8-a636-fb79088e7463','Y',20,5) +; + +-- Jun 24, 2022, 2:50:40 PM 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 (207103,'Label Assignment',200324,214891,'N',22,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:39','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:39','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','b017a1fb-6746-490d-bac0-bbb27e927cae','N',2) +; + +-- Jun 24, 2022, 2:50:40 PM 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 (207104,'Label Assignment',200324,214892,'Y',36,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:40','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:40','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','28742ba6-5278-4575-8511-2e0ad1ed68d5','Y',30,2) +; + +-- Jun 24, 2022, 2:50:41 PM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (207105,'Label','Record Label',200324,214901,'Y',22,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:40','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:40','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','8cdcaee7-69df-470b-80d0-6ee4ef9a2b5f','Y',40,2) +; + +-- Jun 24, 2022, 2:50:41 PM 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 (207106,'Table','Database Table information','The Database Table provides the information of the table definition',200324,214902,'Y',10,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:41','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:41','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','b6395b2e-fbeb-4f6c-ab4d-fb8215386427','Y',50,2) +; + +-- Jun 24, 2022, 2:50:42 PM 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 (207107,'Record ID','Direct internal record ID','The Record ID is the internal unique identifier of a record. Please note that zooming to the record may not be successful for Orders, Invoices and Shipment/Receipts as sometimes the Sales Order type is not known.',200324,214903,'Y',22,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:41','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:41','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','4d74432a-d903-4c46-86bb-816d904836e5','Y',60,2,2) +; + +-- Jun 24, 2022, 2:50:42 PM 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 (207108,'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.',200324,214899,'Y',1,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:42','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:42','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','03e15bd2-379c-4cc7-a1c8-62e9fcac125d','Y',70,2,2) +; + +-- Jun 24, 2022, 2:54:33 PM BRT +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-24 14:54:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207108 +; + +-- Jun 24, 2022, 2:54:33 PM BRT +UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-24 14:54:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207104 +; + +-- Jun 24, 2022, 2:54:33 PM BRT +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-24 14:54:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207103 +; + +-- Jun 24, 2022, 2:55:00 PM BRT +UPDATE AD_Table SET AD_Window_ID=200130,Updated=TO_TIMESTAMP('2022-06-24 14:55:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Table_ID=200347 +; + +-- Jun 24, 2022, 2:55:52 PM 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 (200208,'Label Assignment','W',200130,0,0,'Y',TO_TIMESTAMP('2022-06-24 14:55:51','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:55:51','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','D','Y','0e5d5883-2839-46c8-993a-24ea51a20b61') +; + +-- Jun 24, 2022, 2:55:52 PM 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', getDate(), 10, getDate(), 10,t.AD_Tree_ID, 200208, 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=200208) +; + +-- Jun 24, 2022, 2:56:08 PM BRT +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=37,Updated=TO_TIMESTAMP('2022-06-24 14:56:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=200208 +; + +-- Jun 24, 2022, 2:56:08 PM BRT +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=38,Updated=TO_TIMESTAMP('2022-06-24 14:56:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=50001 +; + +-- Jun 24, 2022, 2:59:40 PM BRT +UPDATE AD_Column SET IsToolbarButton='N',Updated=TO_TIMESTAMP('2022-06-24 14:59:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214903 +; + +-- Jun 24, 2022, 3:00:20 PM BRT +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-24 15:00:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207107 +; + +-- Jun 24, 2022, 3:02:56 PM BRT +UPDATE AD_Column SET IsSelectionColumn='Y', SeqNoSelection=20,Updated=TO_TIMESTAMP('2022-06-24 15:02:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214902 +; + +-- Jun 24, 2022, 3:03:08 PM BRT +UPDATE AD_Column SET IsSelectionColumn='Y', SeqNoSelection=30,Updated=TO_TIMESTAMP('2022-06-24 15:03:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214901 +; + +-- Jun 24, 2022, 3:05:58 PM BRT +UPDATE AD_Column SET IsSelectionColumn='N',Updated=TO_TIMESTAMP('2022-06-24 15:05:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214900 +; + +-- Jun 24, 2022, 3:10:01 PM BRT +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2022-06-24 15:10:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214901 +; + diff --git a/migration/iD10/oracle/202206291714_IDEMPIERE-5259.sql b/migration/iD10/oracle/202206291714_IDEMPIERE-5259.sql new file mode 100644 index 0000000000..7e6de6b27c --- /dev/null +++ b/migration/iD10/oracle/202206291714_IDEMPIERE-5259.sql @@ -0,0 +1,10 @@ +-- IDEMPIERE-5259 Default SysConfig +SELECT register_migration_script('202206291714_IDEMPIERE-5259.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Jun 29, 2022, 5:14:48 PM BRT +INSERT INTO AD_SysConfig (AD_SysConfig_ID,AD_Client_ID,AD_Org_ID,Created,Updated,CreatedBy,UpdatedBy,IsActive,Name,Value,Description,EntityType,ConfigurationLevel,AD_SysConfig_UU) VALUES (200201,0,0,TO_TIMESTAMP('2022-06-29 17:14:46','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2022-06-29 17:14:46','YYYY-MM-DD HH24:MI:SS'),10,10,'Y','LABEL_AUTOMATIC_COLOR','Y','Y/N - Define if the application will automatically colorize labels, even if not assigned to a CSS style','D','C','10c6845f-9ce8-4ad7-8588-cda60416a2a5') +; + diff --git a/migration/iD10/postgresql/202205131118_IDEMPIERE-5259.sql b/migration/iD10/postgresql/202205131118_IDEMPIERE-5259.sql new file mode 100644 index 0000000000..a1a9656e1a --- /dev/null +++ b/migration/iD10/postgresql/202205131118_IDEMPIERE-5259.sql @@ -0,0 +1,1244 @@ +-- IDEMPIERE-5259 - Labels feature +SELECT register_migration_script('202205131118_IDEMPIERE-5259.sql') FROM dual; + +-- May 13, 2022, 11:18:40 AM BRT +INSERT INTO AD_Table (AD_Table_ID,Name,Description,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,CreateWindowFromTable) VALUES (200343,'Label Category','Category of a Label','AD_LabelCategory',0,'6',0,0,'Y',TO_TIMESTAMP('2022-05-13 11:18:40','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:18:40','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','N','N','D','N','Y','L','N','Y','8d7d25d9-ff82-4ae6-be5f-ba91b6b5f8f8','N','N','N','N') +; + +-- May 13, 2022, 11:18:41 AM 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 ('AD_LabelCategory',1000000,'N','N','Table AD_LabelCategory','Y','Y',0,0,TO_TIMESTAMP('2022-05-13 11:18:40','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:18:40','YYYY-MM-DD HH24:MI:SS'),10,200411,'Y',1000000,1,200000,'bab419bd-7722-48be-b218-17a90b6de0e4') +; + +-- May 13, 2022, 11:20:49 AM BRT +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203589,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:20:49','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:20:49','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelCategory_ID','Label Category','Category of a Label','Identifies the category which this label belongs to.','Label Category','D','8dfa237a-1a47-4c54-964a-6456d1f24649') +; + +-- May 13, 2022, 11:21:05 AM BRT +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,Help,PrintName,EntityType,AD_Element_UU) VALUES (203590,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:21:04','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:21:04','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelCategory_UU','Label Category','Category of a Label','Identifies the category which this label belongs to.','Label Category','D','dbd35027-2b0c-4e30-ae9e-7eb780c3190b') +; + +-- May 13, 2022, 11:21:22 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214840,0,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200343,'AD_LabelCategory_ID',22,'Y','N','N','N','N',0,'N',13,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:21:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:21:21','YYYY-MM-DD HH24:MI:SS'),10,203589,'N','N','D','N','N','N','Y','11e85825-5c7b-46cd-aef6-a4e905363c1b','N',0,'N','N','N','N') +; + +-- May 13, 2022, 11:21:23 AM BRT +CREATE TABLE AD_LabelCategory (AD_LabelCategory_ID NUMERIC(10) DEFAULT NULL , CONSTRAINT AD_LabelCategory_Key PRIMARY KEY (AD_LabelCategory_ID)) +; + +-- May 13, 2022, 11:21:35 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214841,0,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200343,'AD_LabelCategory_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:21:34','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:21:34','YYYY-MM-DD HH24:MI:SS'),10,203590,'N','N','D','N','N','N','Y','5edbd6c7-cb89-4657-bd0d-2e961ae7bca3','N',0,'N','N','N','N') +; + +-- May 13, 2022, 11:21:36 AM BRT +ALTER TABLE AD_LabelCategory ADD COLUMN AD_LabelCategory_UU VARCHAR(36) DEFAULT NULL +; + +-- May 13, 2022, 11:21:37 AM BRT +ALTER TABLE AD_LabelCategory ADD CONSTRAINT AD_LabelCategory_UU_idx UNIQUE (AD_LabelCategory_UU) +; + +-- May 13, 2022, 11:21:57 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214842,0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200343,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:21:57','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:21:57','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','D','N','N','N','Y','8b76f511-26f1-43a2-8034-65505c1e728e','N',0,'N','N','D','N') +; + +-- May 13, 2022, 11:21:59 AM BRT +ALTER TABLE AD_LabelCategory ADD COLUMN AD_Client_ID NUMERIC(10) DEFAULT NULL +; + +-- May 13, 2022, 11:22:09 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214843,0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200343,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:22:08','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:22:08','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','N','N','Y','011208eb-83c1-49bd-9895-1eb80b414b4d','N',0,'N','N','D','N') +; + +-- May 13, 2022, 11:22:10 AM BRT +ALTER TABLE AD_LabelCategory ADD COLUMN AD_Org_ID NUMERIC(10) DEFAULT NULL +; + +-- May 13, 2022, 11:22:22 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214844,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200343,'Created','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:22:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:22:21','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','N','N','Y','b4d3e4bc-55ab-4ad3-a115-d79adc0f2025','N',0,'N','N','N') +; + +-- May 13, 2022, 11:22:24 AM BRT +ALTER TABLE AD_LabelCategory ADD COLUMN Created TIMESTAMP DEFAULT statement_timestamp() +; + +-- May 13, 2022, 11:22:35 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214845,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200343,'CreatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:22:35','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:22:35','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','N','N','Y','fb3b4534-5fe9-4e1b-b36e-07ec19382443','N',0,'N','N','D','N') +; + +-- May 13, 2022, 11:22:37 AM BRT +ALTER TABLE AD_LabelCategory ADD COLUMN CreatedBy NUMERIC(10) DEFAULT NULL +; + +-- May 13, 2022, 11:22:48 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214846,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200343,'Updated','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:22:47','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:22:47','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','N','N','Y','b29b98a8-db2b-4036-948d-b83b110350f5','N',0,'N','N','N') +; + +-- May 13, 2022, 11:22:49 AM BRT +ALTER TABLE AD_LabelCategory ADD COLUMN Updated TIMESTAMP DEFAULT statement_timestamp() +; + +-- May 13, 2022, 11:23:11 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214847,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200343,'UpdatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:23:10','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:23:10','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','N','N','Y','c9f7cd50-4f77-4d80-aaf4-78653ab0214f','N',0,'N','N','D','N') +; + +-- May 13, 2022, 11:23:13 AM BRT +ALTER TABLE AD_LabelCategory ADD COLUMN UpdatedBy NUMERIC(10) DEFAULT NULL +; + +-- May 13, 2022, 11:23:24 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214848,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.',200343,'IsActive','Y',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:23:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:23:23','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','N','N','Y','bb86da86-ed0d-48c9-a279-66c71d3b8793','N',0,'N','N','N') +; + +-- May 13, 2022, 11:23:26 AM BRT +ALTER TABLE AD_LabelCategory ADD COLUMN IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) +; + +-- May 13, 2022, 11:26:09 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214849,0,'Description','Optional short description of the record','A description is limited to 255 characters.',200343,'Description',255,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:26:09','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:26:09','YYYY-MM-DD HH24:MI:SS'),10,275,'Y','Y','D','N','N','N','Y','0a52d6ad-da73-40df-97ac-6d6a403efa65','Y',10,'N','N','N') +; + +-- May 13, 2022, 11:26:11 AM BRT +ALTER TABLE AD_LabelCategory ADD COLUMN Description VARCHAR(255) DEFAULT NULL +; + +-- May 13, 2022, 11:26:54 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214850,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.',200343,'Name',60,'N','N','N','N','Y',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:26:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:26:48','YYYY-MM-DD HH24:MI:SS'),10,469,'Y','Y','D','N','N','N','Y','e94eddd7-5311-4b90-95d3-bc94b27ff4ab','Y',20,'N','N','N') +; + +-- May 13, 2022, 11:27:03 AM BRT +UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2022-05-13 11:27:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214850 +; + +-- May 13, 2022, 11:27:14 AM BRT +ALTER TABLE AD_LabelCategory ADD COLUMN Name VARCHAR(60) NOT NULL +; + +-- May 13, 2022, 11:27:58 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214851,0,'Label Style','Label CSS Style',200343,'AD_LabelStyle_ID',10,'N','N','N','N','N',0,'N',18,200121,0,0,'Y',TO_TIMESTAMP('2022-05-13 11:27:57','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 11:27:57','YYYY-MM-DD HH24:MI:SS'),10,203011,'Y','N','D','N','N','N','Y','3bcc854e-e087-4a77-991a-3623b233e841','Y',0,'N','N','N','N') +; + +-- May 13, 2022, 11:28:00 AM BRT +UPDATE AD_Column SET FKConstraintName='ADLabelStyle_CLabelCategory', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-13 11:28:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214851 +; + +-- May 13, 2022, 11:28:00 AM BRT +ALTER TABLE AD_LabelCategory ADD COLUMN AD_LabelStyle_ID NUMERIC(10) DEFAULT NULL +; + +-- May 13, 2022, 11:28:00 AM BRT +ALTER TABLE AD_LabelCategory ADD CONSTRAINT ADLabelStyle_CLabelCategory FOREIGN KEY (AD_LabelStyle_ID) REFERENCES ad_style(ad_style_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 13, 2022, 1:07:24 PM BRT +UPDATE AD_Column SET IsTranslated='Y',Updated=TO_TIMESTAMP('2022-05-13 13:07:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214850 +; + +-- May 13, 2022, 1:10:05 PM BRT +UPDATE AD_Column SET IsTranslated='Y',Updated=TO_TIMESTAMP('2022-05-13 13:10:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214849 +; + +-- May 13, 2022, 1:10:52 PM BRT +INSERT INTO AD_Table (AD_Table_ID,Name,Description,TableName,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,IsChangeLog,ReplicationType,AD_Table_UU,Processing) VALUES (200344,'Label Category Trl','Category of a Label Trl','AD_LabelCategory_Trl','6',0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:51','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:51','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','N','D','Y','L','e8d3027c-e842-4d4c-9bb6-c3d5c52ef152','N') +; + +-- May 13, 2022, 1:10:52 PM 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 ('AD_LabelCategory_Trl',1000000,'N','N','Table AD_LabelCategory_Trl','Y','Y',0,0,TO_TIMESTAMP('2022-05-13 13:10:52','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:52','YYYY-MM-DD HH24:MI:SS'),10,200412,'Y',1000000,1,200000,'f7a0f1d6-cf6e-4eb3-9ae8-f5ee7a09fc7a') +; + +-- May 13, 2022, 1:10:53 PM 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,ReadOnlyLogic,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214852,0.0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200344,'AD_Client_ID','@#AD_Client_ID@',10,'N','N','Y','N','N','N',30,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:52','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:52','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','1=1','D','N','e2d814e3-245c-4220-be46-36f11bce8992','N') +; + +-- May 13, 2022, 1:10:53 PM 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 (214853,0.0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200344,'AD_Org_ID','@AD_Org_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:53','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:53','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','87b323c2-d2f8-44a3-b422-c8cd32c657dc','N') +; + +-- May 13, 2022, 1:10:54 PM 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 (214854,0.0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200344,'Created',7,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:53','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:53','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','e5341abe-0c1d-48c4-8ae7-94b1fbbac6a6','N') +; + +-- May 13, 2022, 1:10:54 PM 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) VALUES (214855,0.0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200344,'CreatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:54','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:54','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','8e55dced-75f2-49d0-86b9-c2233e311b87','N') +; + +-- May 13, 2022, 1:10:54 PM 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 (214856,0.0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200344,'Updated',7,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:54','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:54','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','d0cddc95-ead3-4d9e-9596-969d013a0e62','N') +; + +-- May 13, 2022, 1:10:55 PM 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) VALUES (214857,0.0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200344,'UpdatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:55','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:55','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','96aa9b94-3afe-45b4-9854-f5aec213751d','N') +; + +-- May 13, 2022, 1:10:55 PM 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 (214858,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.',200344,'IsActive','Y',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:55','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:55','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','4108a8d0-61dc-43c9-8b94-3d2d37500ffc','N') +; + +-- May 13, 2022, 1:10:56 PM 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 (214859,0.0,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200344,'AD_LabelCategory_ID',10,'N','Y','Y','N','N','N',30,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:55','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:55','YYYY-MM-DD HH24:MI:SS'),10,203589,'N','N','D','N','20022acb-0fd9-41a2-884b-ed64e7a524bb','N','C') +; + +-- May 13, 2022, 1:10:56 PM 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 (203591,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:56','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:56','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelCategory_Trl_UU','AD_LabelCategory_Trl_UU','AD_LabelCategory_Trl_UU','D','3bff663c-233f-4166-974f-cd4ea3aca21f') +; + +-- May 13, 2022, 1:10:57 PM 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 (214860,0.0,'AD_LabelCategory_Trl_UU',200344,'AD_LabelCategory_Trl_UU',36,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:56','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:56','YYYY-MM-DD HH24:MI:SS'),10,203591,'Y','N','D','N','28f0df30-e82c-4da8-8e84-8a8f75c2dc93','N') +; + +-- May 13, 2022, 1:10:58 PM 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) VALUES (214861,0.0,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200344,'AD_Language',6,'N','Y','Y','N','N','N',18,106,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:57','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:57','YYYY-MM-DD HH24:MI:SS'),10,109,'N','N','D','N','00899065-fc92-4340-a290-066cba0915cc','N') +; + +-- May 13, 2022, 1:10:58 PM 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 (214862,0.0,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200344,'IsTranslated','N',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:58','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:58','YYYY-MM-DD HH24:MI:SS'),10,420,'Y','N','D','N','093cb927-6ffd-4b7c-9bfd-dc28dbf3e773','N') +; + +-- May 13, 2022, 1:10:59 PM 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 (214863,0.0,'Description','Optional short description of the record','A description is limited to 255 characters.',200344,'Description',255,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:58','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:58','YYYY-MM-DD HH24:MI:SS'),10,275,'Y','N','D','N','cb14847f-9f1b-435d-9fed-495e391c439e','N') +; + +-- May 13, 2022, 1:10:59 PM 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,SeqNoSelection,IsToolbarButton) VALUES (214864,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.',200344,'Name',60,'N','N','Y','N','Y','N',10,0,0,'Y',TO_TIMESTAMP('2022-05-13 13:10:59','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-13 13:10:59','YYYY-MM-DD HH24:MI:SS'),10,469,'Y','Y','D','N','24434a29-cd40-4c0f-bda6-aad5cd6e9753',10,'N') +; + +-- May 13, 2022, 1:11:00 PM BRT +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,IsKey) VALUES (0,0,201118,'1f37e22e-4935-4273-b057-cb3bfd26d4c4',TO_TIMESTAMP('2022-05-13 13:10:59','YYYY-MM-DD HH24:MI:SS'),10,'D','Y','AD_LabelCategory_Trl_pkey',TO_TIMESTAMP('2022-05-13 13:10:59','YYYY-MM-DD HH24:MI:SS'),10,200344,'Y','Y','N','Y') +; + +-- May 13, 2022, 1:11:00 PM BRT +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,201493,'3e48e4a1-223b-4856-b1e6-2b1cbcca3e07',TO_TIMESTAMP('2022-05-13 13:11:00','YYYY-MM-DD HH24:MI:SS'),10,'D','Y',TO_TIMESTAMP('2022-05-13 13:11:00','YYYY-MM-DD HH24:MI:SS'),10,214861,201118,1) +; + +-- May 13, 2022, 1:11:00 PM BRT +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,201494,'1e04a4ea-caff-4cf3-a544-e1e62fd1198c',TO_TIMESTAMP('2022-05-13 13:11:00','YYYY-MM-DD HH24:MI:SS'),10,'D','Y',TO_TIMESTAMP('2022-05-13 13:11:00','YYYY-MM-DD HH24:MI:SS'),10,214859,201118,2) +; + +-- May 16, 2022, 9:47:36 AM BRT +CREATE TABLE AD_LabelCategory_Trl (AD_Client_ID NUMERIC(10) NOT NULL, AD_LabelCategory_ID NUMERIC(10) NOT NULL, AD_LabelCategory_Trl_UU VARCHAR(36) DEFAULT NULL , AD_Language VARCHAR(6) NOT NULL, AD_Org_ID NUMERIC(10) NOT NULL, Created TIMESTAMP NOT NULL, CreatedBy NUMERIC(10) NOT NULL, Description VARCHAR(255) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, IsTranslated CHAR(1) DEFAULT 'N' CHECK (IsTranslated IN ('Y','N')) NOT NULL, Name VARCHAR(60) NOT NULL, Updated TIMESTAMP NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, CONSTRAINT AD_LabelCategory_Trl_UU_idx UNIQUE (AD_LabelCategory_Trl_UU)) +; + +-- May 16, 2022, 9:47:36 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT ADClient_ADLabelCategoryTrl FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:47:36 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT ADLabelCategory_ADLabelCategor FOREIGN KEY (AD_LabelCategory_ID) REFERENCES ad_labelcategory(ad_labelcategory_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:47:36 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT ADLanguage_ADLabelCategoryTrl FOREIGN KEY (AD_Language) REFERENCES ad_language(ad_language) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:47:36 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT ADOrg_ADLabelCategoryTrl FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:47:36 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT CreatedBy_ADLabelCategoryTrl FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:47:36 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT UpdatedBy_ADLabelCategoryTrl FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:48:43 AM BRT +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) VALUES (0,0,201119,'a3ee7ea1-7935-4687-98f7-d0afea3b7ce4',TO_TIMESTAMP('2022-05-16 09:48:42','YYYY-MM-DD HH24:MI:SS'),10,'D','Y','ad_labelcategory_trl_uu_idx',TO_TIMESTAMP('2022-05-16 09:48:42','YYYY-MM-DD HH24:MI:SS'),10,200344,'N','Y','N') +; + +-- May 16, 2022, 9:48:43 AM BRT +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201495,'00fe8bcf-8178-49e2-a1a4-d1c80e41492e',TO_TIMESTAMP('2022-05-16 09:48:43','YYYY-MM-DD HH24:MI:SS'),10,'Y',TO_TIMESTAMP('2022-05-16 09:48:43','YYYY-MM-DD HH24:MI:SS'),10,214860,201119,1) +; + +-- May 16, 2022, 9:48:43 AM BRT +ALTER TABLE AD_LabelCategory_Trl ADD CONSTRAINT AD_LabelCategory_Trl_pkey PRIMARY KEY (AD_Language,AD_LabelCategory_ID) +; + +-- May 16, 2022, 9:51:11 AM BRT +INSERT INTO AD_Table (AD_Table_ID,Name,Description,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,CreateWindowFromTable) VALUES (200345,'Label','Record Label','AD_Label',0,'6',0,0,'Y',TO_TIMESTAMP('2022-05-16 09:51:10','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:51:10','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','Y','N','D','N','Y','L','N','Y','a6c4c13f-73fc-4c78-be0f-4c0d052ddbd8','N','N','N','N') +; + +-- May 16, 2022, 9:51:12 AM 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 ('AD_Label',1000000,'N','N','Table AD_Label','Y','Y',0,0,TO_TIMESTAMP('2022-05-16 09:51:11','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:51:11','YYYY-MM-DD HH24:MI:SS'),10,200413,'Y',1000000,1,200000,'d8d6d09d-eae9-4ab6-a3ff-0a73e50f3a45') +; + +-- May 16, 2022, 9:52:35 AM BRT +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,PrintName,EntityType,AD_Element_UU) VALUES (203592,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:52:34','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:52:34','YYYY-MM-DD HH24:MI:SS'),10,'AD_Label_ID','Label','Record Label','Label','D','bc4f6ac2-ebb3-46e2-aaca-12efacf059cc') +; + +-- May 16, 2022, 9:52:41 AM BRT +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,PrintName,EntityType,AD_Element_UU) VALUES (203593,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:52:41','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:52:41','YYYY-MM-DD HH24:MI:SS'),10,'AD_Label_UU','Label','Record Label','Label','D','5d21d4cf-0aab-4340-a930-f9374a2dba1d') +; + +-- May 16, 2022, 9:52:59 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214865,0,'Label','Record Label',200345,'AD_Label_ID',22,'Y','N','N','N','N',0,'N',13,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:52:58','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:52:58','YYYY-MM-DD HH24:MI:SS'),10,203592,'N','N','D','N','N','N','Y','5af55b82-b90e-415a-a9a4-4a6fce441ac0','N',0,'N','N','N','N') +; + +-- May 16, 2022, 9:53:00 AM BRT +CREATE TABLE AD_Label (AD_Label_ID NUMERIC(10) DEFAULT NULL , CONSTRAINT AD_Label_Key PRIMARY KEY (AD_Label_ID)) +; + +-- May 16, 2022, 9:53:10 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214866,0,'Label','Record Label',200345,'AD_Label_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:53:09','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:53:09','YYYY-MM-DD HH24:MI:SS'),10,203593,'N','N','D','N','N','N','Y','8d1b8d1c-1900-41cd-8c4e-97206633b5bd','N',0,'N','N','N','N') +; + +-- May 16, 2022, 9:53:11 AM BRT +ALTER TABLE AD_Label ADD COLUMN AD_Label_UU VARCHAR(36) DEFAULT NULL +; + +-- May 16, 2022, 9:53:11 AM BRT +ALTER TABLE AD_Label ADD CONSTRAINT AD_Label_UU_idx UNIQUE (AD_Label_UU) +; + +-- May 16, 2022, 9:53:20 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214867,0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200345,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:53:19','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:53:19','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','D','N','N','N','Y','4d84cd2e-c1e9-479a-851e-39bb3f584623','N',0,'N','N','D','N') +; + +-- May 16, 2022, 9:53:21 AM BRT +ALTER TABLE AD_Label ADD COLUMN AD_Client_ID NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 9:53:29 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214868,0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200345,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:53:29','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:53:29','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','N','N','Y','ae938961-d6c5-4377-abeb-952e357c1c90','N',0,'N','N','D','N') +; + +-- May 16, 2022, 9:53:31 AM BRT +ALTER TABLE AD_Label ADD COLUMN AD_Org_ID NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 9:53:43 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214869,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200345,'Created','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:53:42','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:53:42','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','N','N','Y','451a7278-5b82-4ae6-b81e-e7a9266e65de','N',0,'N','N','N') +; + +-- May 16, 2022, 9:53:44 AM BRT +ALTER TABLE AD_Label ADD COLUMN Created TIMESTAMP DEFAULT statement_timestamp() +; + +-- May 16, 2022, 9:53:54 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214870,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200345,'CreatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:53:54','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:53:54','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','N','N','Y','cd1cfe10-6600-49b1-8f2e-c226b0fcadfa','N',0,'N','N','D','N') +; + +-- May 16, 2022, 9:53:55 AM BRT +ALTER TABLE AD_Label ADD COLUMN CreatedBy NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 9:54:07 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214871,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200345,'Updated','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:54:06','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:54:06','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','N','N','Y','0190060d-869e-454a-892f-8511a9968084','N',0,'N','N','N') +; + +-- May 16, 2022, 9:54:08 AM BRT +ALTER TABLE AD_Label ADD COLUMN Updated TIMESTAMP DEFAULT statement_timestamp() +; + +-- May 16, 2022, 9:54:18 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214872,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200345,'UpdatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:54:17','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:54:17','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','N','N','Y','f757eafd-1872-4fd0-9ef4-e2ac111ef14a','N',0,'N','N','D','N') +; + +-- May 16, 2022, 9:54:19 AM BRT +ALTER TABLE AD_Label ADD COLUMN UpdatedBy NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 9:54:28 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214873,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.',200345,'IsActive','Y',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:54:28','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:54:28','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','N','N','Y','6757a19f-fa5a-4909-974c-b0d9a690bb41','N',0,'N','N','N') +; + +-- May 16, 2022, 9:54:29 AM BRT +ALTER TABLE AD_Label ADD COLUMN IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) +; + +-- May 16, 2022, 9:54:49 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214874,0,'Description','Optional short description of the record','A description is limited to 255 characters.',200345,'Description',255,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:54:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:54:48','YYYY-MM-DD HH24:MI:SS'),10,275,'Y','Y','D','N','N','N','Y','eb86b4a4-b1b3-4bfc-8c7c-6a3465308b56','Y',10,'N','N','N') +; + +-- May 16, 2022, 9:54:50 AM BRT +ALTER TABLE AD_Label ADD COLUMN Description VARCHAR(255) DEFAULT NULL +; + +-- May 16, 2022, 9:55:07 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214875,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.',200345,'Name',60,'N','N','N','N','Y',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:55:07','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:55:07','YYYY-MM-DD HH24:MI:SS'),10,469,'Y','Y','D','N','N','N','Y','0eeb6f0a-2e9b-406f-be8e-3eefd69f2794','Y',20,'N','N','N') +; + +-- May 16, 2022, 9:55:12 AM BRT +UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2022-05-16 09:55:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214875 +; + +-- May 16, 2022, 9:55:14 AM BRT +ALTER TABLE AD_Label ADD COLUMN Name VARCHAR(60) NOT NULL +; + +-- May 16, 2022, 9:56:06 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214876,0,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200345,'AD_LabelCategory_ID',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:56:05','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:56:05','YYYY-MM-DD HH24:MI:SS'),10,203589,'Y','N','D','N','N','N','Y','00738df6-68db-4eeb-b282-252cdca5f012','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 9:56:08 AM BRT +UPDATE AD_Column SET FKConstraintName='ADLabelCategory_ADLabel', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-16 09:56:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214876 +; + +-- May 16, 2022, 9:56:08 AM BRT +ALTER TABLE AD_Label ADD COLUMN AD_LabelCategory_ID NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 9:56:08 AM BRT +ALTER TABLE AD_Label ADD CONSTRAINT ADLabelCategory_ADLabel FOREIGN KEY (AD_LabelCategory_ID) REFERENCES ad_labelcategory(ad_labelcategory_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:56:29 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214877,0,'Label Style','Label CSS Style',200345,'AD_LabelStyle_ID',10,'N','N','N','N','N',0,'N',18,200121,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:56:28','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:56:28','YYYY-MM-DD HH24:MI:SS'),10,203011,'Y','N','D','N','N','N','Y','1f70261c-8a78-40de-82d9-ce6fd8f3a1d3','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 9:56:30 AM BRT +UPDATE AD_Column SET FKConstraintName='ADLabelStyle_ADLabel', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-16 09:56:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214877 +; + +-- May 16, 2022, 9:56:30 AM BRT +ALTER TABLE AD_Label ADD COLUMN AD_LabelStyle_ID NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 9:56:30 AM BRT +ALTER TABLE AD_Label ADD CONSTRAINT ADLabelStyle_ADLabel FOREIGN KEY (AD_LabelStyle_ID) REFERENCES ad_style(ad_style_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 9:57:32 AM BRT +UPDATE AD_Column SET IsTranslated='Y',Updated=TO_TIMESTAMP('2022-05-16 09:57:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214874 +; + +-- May 16, 2022, 9:57:43 AM BRT +UPDATE AD_Column SET IsTranslated='Y',Updated=TO_TIMESTAMP('2022-05-16 09:57:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214875 +; + +-- May 16, 2022, 9:58:20 AM BRT +INSERT INTO AD_Table (AD_Table_ID,Name,Description,TableName,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,IsChangeLog,ReplicationType,AD_Table_UU,Processing) VALUES (200346,'Label Trl','Record Label Trl','AD_Label_Trl','6',0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:19','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:19','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','N','D','Y','L','442fe197-6c17-4f78-be70-da69b541f604','N') +; + +-- May 16, 2022, 9:58:20 AM 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 ('AD_Label_Trl',1000000,'N','N','Table AD_Label_Trl','Y','Y',0,0,TO_TIMESTAMP('2022-05-16 09:58:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:20','YYYY-MM-DD HH24:MI:SS'),10,200414,'Y',1000000,1,200000,'07bf956f-da74-41b3-aec7-1dfb08152eac') +; + +-- May 16, 2022, 9:58:21 AM 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,ReadOnlyLogic,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214878,0.0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200346,'AD_Client_ID','@#AD_Client_ID@',10,'N','N','Y','N','N','N',30,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:20','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','1=1','D','N','ee0fb99d-9a18-4b81-9ab5-dac4e0ca16db','N') +; + +-- May 16, 2022, 9:58:21 AM 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 (214879,0.0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200346,'AD_Org_ID','@AD_Org_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:21','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','25033204-c4b3-4ac5-ae41-d4e29e20eba5','N') +; + +-- May 16, 2022, 9:58:22 AM 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 (214880,0.0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200346,'Created',7,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:21','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','f069e7c5-9721-4b0a-97b5-ca554adc9553','N') +; + +-- May 16, 2022, 9:58:22 AM 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) VALUES (214881,0.0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200346,'CreatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:22','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:22','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','04551a6a-77f5-445c-9802-c41964a4fb86','N') +; + +-- May 16, 2022, 9:58:23 AM 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 (214882,0.0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200346,'Updated',7,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:22','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:22','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','12310eea-000f-4018-ac6a-fb22c8f25bd8','N') +; + +-- May 16, 2022, 9:58:23 AM 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) VALUES (214883,0.0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200346,'UpdatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:23','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','69703e1f-79d5-48ac-972d-65f4f94acf60','N') +; + +-- May 16, 2022, 9:58:23 AM 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 (214884,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.',200346,'IsActive','Y',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:23','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','3ab8d9b7-070e-4080-8e3d-189a721fe064','N') +; + +-- May 16, 2022, 9:58:24 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,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 (214885,0.0,'Label','Record Label',200346,'AD_Label_ID',10,'N','Y','Y','N','N','N',30,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:23','YYYY-MM-DD HH24:MI:SS'),10,203592,'N','N','D','N','a8cae4fd-ae35-4a32-bb86-08baf356a3b5','N','C') +; + +-- May 16, 2022, 9:58:24 AM 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 (203594,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:24','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:24','YYYY-MM-DD HH24:MI:SS'),10,'AD_Label_Trl_UU','AD_Label_Trl_UU','AD_Label_Trl_UU','D','2ca2cab5-651f-4c6e-80d7-963f2b8ec440') +; + +-- May 16, 2022, 9:58:25 AM 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 (214886,0.0,'AD_Label_Trl_UU',200346,'AD_Label_Trl_UU',36,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:24','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:24','YYYY-MM-DD HH24:MI:SS'),10,203594,'Y','N','D','N','2a254844-432c-40f0-b11d-43dc26a587d8','N') +; + +-- May 16, 2022, 9:58:25 AM 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) VALUES (214887,0.0,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200346,'AD_Language',6,'N','Y','Y','N','N','N',18,106,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:25','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:25','YYYY-MM-DD HH24:MI:SS'),10,109,'N','N','D','N','4950a32e-f1b2-4dab-920b-4d88e706d5db','N') +; + +-- May 16, 2022, 9:58:26 AM 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 (214888,0.0,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200346,'IsTranslated','N',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:25','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:25','YYYY-MM-DD HH24:MI:SS'),10,420,'Y','N','D','N','8f4cfdfc-52ae-4273-9259-2e36af0095b0','N') +; + +-- May 16, 2022, 9:58:26 AM 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 (214889,0.0,'Description','Optional short description of the record','A description is limited to 255 characters.',200346,'Description',255,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:26','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:26','YYYY-MM-DD HH24:MI:SS'),10,275,'Y','N','D','N','7a18dcc3-e375-4a82-a957-090d8bb4db7b','N') +; + +-- May 16, 2022, 9:58:27 AM 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,SeqNoSelection,IsToolbarButton) VALUES (214890,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.',200346,'Name',60,'N','N','Y','N','Y','N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 09:58:26','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 09:58:26','YYYY-MM-DD HH24:MI:SS'),10,469,'Y','Y','D','N','5e09f949-cbed-407d-a216-3d2d676a3f2c',10,'N') +; + +-- May 16, 2022, 10:07:42 AM BRT +CREATE TABLE AD_Label_Trl (AD_Client_ID NUMERIC(10) NOT NULL, AD_Label_ID NUMERIC(10) NOT NULL, AD_Label_Trl_UU VARCHAR(36) DEFAULT NULL , AD_Language VARCHAR(6) NOT NULL, AD_Org_ID NUMERIC(10) NOT NULL, Created TIMESTAMP NOT NULL, CreatedBy NUMERIC(10) NOT NULL, Description VARCHAR(255) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, IsTranslated CHAR(1) DEFAULT 'N' CHECK (IsTranslated IN ('Y','N')) NOT NULL, Name VARCHAR(60) NOT NULL, Updated TIMESTAMP NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, CONSTRAINT AD_Label_Trl_UU_idx UNIQUE (AD_Label_Trl_UU)) +; + +-- May 16, 2022, 10:07:42 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT ADClient_ADLabelTrl FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:07:42 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT ADLabel_ADLabelTrl FOREIGN KEY (AD_Label_ID) REFERENCES ad_label(ad_label_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:07:42 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT ADLanguage_ADLabelTrl FOREIGN KEY (AD_Language) REFERENCES ad_language(ad_language) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:07:42 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT ADOrg_ADLabelTrl FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:07:42 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT CreatedBy_ADLabelTrl FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:07:42 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT UpdatedBy_ADLabelTrl FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:08:05 AM BRT +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) VALUES (0,0,201121,'9ca26156-5f14-43f2-9516-381a85a27dba',TO_TIMESTAMP('2022-05-16 10:08:04','YYYY-MM-DD HH24:MI:SS'),10,'D','Y','ad_label_trl_uu_idx',TO_TIMESTAMP('2022-05-16 10:08:04','YYYY-MM-DD HH24:MI:SS'),10,200346,'N','Y','N') +; + +-- May 16, 2022, 10:08:05 AM BRT +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201498,'2f522b7c-9487-4a35-8463-03bfc45771ed',TO_TIMESTAMP('2022-05-16 10:08:05','YYYY-MM-DD HH24:MI:SS'),10,'Y',TO_TIMESTAMP('2022-05-16 10:08:05','YYYY-MM-DD HH24:MI:SS'),10,214886,201121,1) +; + +-- May 16, 2022, 10:08:05 AM BRT +ALTER TABLE AD_Label_Trl ADD CONSTRAINT AD_Label_Trl_pkey PRIMARY KEY (AD_Language,AD_Label_ID) +; + +-- May 16, 2022, 10:12:09 AM 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,CreateWindowFromTable) VALUES (200347,'Label Assignment','AD_LabelAssignment',0,'6',0,0,'Y',TO_TIMESTAMP('2022-05-16 10:12:08','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:12:08','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','Y','N','D','N','Y','L','N','Y','7df38426-2bad-4064-879a-548d47606959','N','N','N','N') +; + +-- May 16, 2022, 10:12:09 AM 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 ('AD_LabelAssignment',1000000,'N','N','Table AD_LabelAssignment','Y','Y',0,0,TO_TIMESTAMP('2022-05-16 10:12:09','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:12:09','YYYY-MM-DD HH24:MI:SS'),10,200415,'Y',1000000,1,200000,'7bd27d64-cc9a-466d-8a09-39aa7cfdd5cf') +; + +-- May 16, 2022, 10:12:36 AM 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 (203595,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:12:35','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:12:35','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelAssignment_ID','Label Assignment','Label Assignment','D','5c954ef7-2e95-445a-9fda-40ec3c679c6e') +; + +-- May 16, 2022, 10:12:46 AM 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 (203596,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:12:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:12:45','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelAssignment_UU','Label Assignment','Label Assignment','D','c2023c8f-0c59-49d6-99f3-5646e49c56a6') +; + +-- May 16, 2022, 10:12:59 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214891,0,'Label Assignment',200347,'AD_LabelAssignment_ID',22,'Y','N','N','N','N',0,'N',13,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:12:59','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:12:59','YYYY-MM-DD HH24:MI:SS'),10,203595,'N','N','D','N','N','N','Y','45d996a0-7eb2-476c-b917-6de84d34cb7f','N',0,'N','N','N','N') +; + +-- May 16, 2022, 10:13:01 AM BRT +CREATE TABLE AD_LabelAssignment (AD_LabelAssignment_ID NUMERIC(10) DEFAULT NULL , CONSTRAINT AD_LabelAssignment_Key PRIMARY KEY (AD_LabelAssignment_ID)) +; + +-- May 16, 2022, 10:13:10 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214892,0,'Label Assignment',200347,'AD_LabelAssignment_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:13:09','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:13:09','YYYY-MM-DD HH24:MI:SS'),10,203596,'N','N','D','N','N','N','Y','a07174cc-3eff-475a-a285-16b71515d426','N',0,'N','N','N','N') +; + +-- May 16, 2022, 10:13:11 AM BRT +ALTER TABLE AD_LabelAssignment ADD COLUMN AD_LabelAssignment_UU VARCHAR(36) DEFAULT NULL +; + +-- May 16, 2022, 10:13:11 AM BRT +ALTER TABLE AD_LabelAssignment ADD CONSTRAINT AD_LabelAssignment_UU_idx UNIQUE (AD_LabelAssignment_UU) +; + +-- May 16, 2022, 10:13:22 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214893,0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200347,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:13:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:13:21','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','D','N','N','N','Y','5d2299a5-8ae0-44fb-8d5a-ca95335584af','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:13:24 AM BRT +ALTER TABLE AD_LabelAssignment ADD COLUMN AD_Client_ID NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 10:13:34 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214894,0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200347,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:13:34','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:13:34','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','N','N','Y','e01e9b5b-06af-496e-926a-9592d774f5f9','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:13:36 AM BRT +ALTER TABLE AD_LabelAssignment ADD COLUMN AD_Org_ID NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 10:13:46 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214895,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200347,'Created','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:13:45','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:13:45','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','N','N','Y','fdb743ce-ef92-4854-b565-6ecbf359557d','N',0,'N','N','N') +; + +-- May 16, 2022, 10:13:47 AM BRT +ALTER TABLE AD_LabelAssignment ADD COLUMN Created TIMESTAMP DEFAULT statement_timestamp() +; + +-- May 16, 2022, 10:13:57 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214896,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200347,'CreatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:13:56','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:13:56','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','N','N','Y','c1c1e5dc-148e-4cc7-98ad-a29a48e3efc7','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:13:58 AM BRT +ALTER TABLE AD_LabelAssignment ADD COLUMN CreatedBy NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 10:14:12 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214897,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200347,'Updated','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:14:11','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:14:11','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','N','N','Y','32890a45-51c0-4fad-8a8d-8c79b0739994','N',0,'N','N','N') +; + +-- May 16, 2022, 10:14:13 AM BRT +ALTER TABLE AD_LabelAssignment ADD COLUMN Updated TIMESTAMP DEFAULT statement_timestamp() +; + +-- May 16, 2022, 10:14:24 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214898,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200347,'UpdatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:14:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:14:23','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','N','N','Y','0cf50ce3-6270-450a-b146-905245b87b2e','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:14:25 AM BRT +ALTER TABLE AD_LabelAssignment ADD COLUMN UpdatedBy NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 10:14:36 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214899,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.',200347,'IsActive','Y',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:14:36','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:14:36','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','N','N','Y','6129cecb-56fe-4aa7-8a79-c02e3fba89be','N',0,'N','N','N') +; + +-- May 16, 2022, 10:14:38 AM BRT +ALTER TABLE AD_LabelAssignment ADD COLUMN IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) +; + +-- May 16, 2022, 10:15:08 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214900,0,'Description','Optional short description of the record','A description is limited to 255 characters.',200347,'Description',255,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:15:07','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:15:07','YYYY-MM-DD HH24:MI:SS'),10,275,'Y','Y','D','N','N','N','Y','aeac2b6d-7410-4a49-b1d5-68842e54b074','Y',10,'N','N','N') +; + +-- May 16, 2022, 10:15:09 AM BRT +ALTER TABLE AD_LabelAssignment ADD COLUMN Description VARCHAR(255) DEFAULT NULL +; + +-- May 16, 2022, 10:15:23 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214901,0,'Label','Record Label',200347,'AD_Label_ID',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:15:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:15:23','YYYY-MM-DD HH24:MI:SS'),10,203592,'N','N','D','N','N','N','Y','0bde1e53-70e3-4015-9598-0e97f3e433a6','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 10:15:25 AM BRT +UPDATE AD_Column SET FKConstraintName='ADLabel_ADLabelAssignment', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-16 10:15:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214901 +; + +-- May 16, 2022, 10:15:25 AM BRT +ALTER TABLE AD_LabelAssignment ADD COLUMN AD_Label_ID NUMERIC(10) NOT NULL +; + +-- May 16, 2022, 10:15:25 AM BRT +ALTER TABLE AD_LabelAssignment ADD CONSTRAINT ADLabel_ADLabelAssignment FOREIGN KEY (AD_Label_ID) REFERENCES ad_label(ad_label_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:15:42 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214902,0,'Table','Database Table information','The Database Table provides the information of the table definition',200347,'AD_Table_ID',10,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:15:42','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:15:42','YYYY-MM-DD HH24:MI:SS'),10,126,'N','N','D','N','N','N','Y','b1261ad0-f068-4785-ac4e-3ac8b78af0cd','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 10:15:44 AM BRT +UPDATE AD_Column SET FKConstraintName='ADTable_ADLabelAssignment', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-16 10:15:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214902 +; + +-- May 16, 2022, 10:15:44 AM BRT +ALTER TABLE AD_LabelAssignment ADD COLUMN AD_Table_ID NUMERIC(10) NOT NULL +; + +-- May 16, 2022, 10:15:44 AM BRT +ALTER TABLE AD_LabelAssignment ADD CONSTRAINT ADTable_ADLabelAssignment FOREIGN KEY (AD_Table_ID) REFERENCES ad_table(ad_table_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:16:01 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214903,0,'Record ID','Direct internal record ID','The Record ID is the internal unique identifier of a record. Please note that zooming to the record may not be successful for Orders, Invoices and Shipment/Receipts as sometimes the Sales Order type is not known.',200347,'Record_ID',22,'N','N','Y','N','N',0,'N',28,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:16:00','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:16:00','YYYY-MM-DD HH24:MI:SS'),10,538,'N','N','D','N','N','N','Y','9a4e7ee6-82ea-4aae-b987-b1e5763bf1ca','Y',0,'Y','N','N') +; + +-- May 16, 2022, 10:16:03 AM BRT +ALTER TABLE AD_LabelAssignment ADD COLUMN Record_ID NUMERIC(10) NOT NULL +; + +-- May 16, 2022, 10:25:49 AM 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,CreateWindowFromTable) VALUES (200348,'Label Category Table Access','AD_LabelCategoryTable',0,'6',0,0,'Y',TO_TIMESTAMP('2022-05-16 10:25:49','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:25:49','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','N','N','D','N','Y','L','N','Y','5e3cdf5b-9a02-4318-9315-431ffe458e1a','N','N','N','N') +; + +-- May 16, 2022, 10:25:50 AM 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 ('AD_LabelCategoryTable',1000000,'N','N','Table AD_LabelCategoryTable','Y','Y',0,0,TO_TIMESTAMP('2022-05-16 10:25:49','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:25:49','YYYY-MM-DD HH24:MI:SS'),10,200416,'Y',1000000,1,200000,'6a24fbc3-31d2-4ea6-a328-0c064367553c') +; + +-- May 16, 2022, 10:26:11 AM 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 (203597,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:26:11','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:26:11','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelCategoryTable_ID','Label Category Table Access','Label Category Table Access','D','13a0865c-948a-4aa1-894e-b77b10bd2181') +; + +-- May 16, 2022, 10:26:17 AM 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 (203598,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:26:16','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:26:16','YYYY-MM-DD HH24:MI:SS'),10,'AD_LabelCategoryTable_UU','Label Category Table Access','Label Category Table Access','D','580fab2c-f4e0-4fcc-9374-95a0c0f29eac') +; + +-- May 16, 2022, 10:26:28 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214904,0,'Label Category Table Access',200348,'AD_LabelCategoryTable_ID',22,'Y','N','N','N','N',0,'N',13,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:26:27','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:26:27','YYYY-MM-DD HH24:MI:SS'),10,203597,'N','N','D','N','N','N','Y','38e7ea83-c3b3-40eb-8785-0da28239205f','N',0,'N','N','N','N') +; + +-- May 16, 2022, 10:26:30 AM BRT +CREATE TABLE AD_LabelCategoryTable (AD_LabelCategoryTable_ID NUMERIC(10) DEFAULT NULL , CONSTRAINT AD_LabelCategoryTable_Key PRIMARY KEY (AD_LabelCategoryTable_ID)) +; + +-- May 16, 2022, 10:26:38 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214905,0,'Label Category Table Access',200348,'AD_LabelCategoryTable_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:26:37','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:26:37','YYYY-MM-DD HH24:MI:SS'),10,203598,'N','N','D','N','N','N','Y','b2c0bd4e-7654-4d51-b81e-2dbfd29e6488','N',0,'N','N','N','N') +; + +-- May 16, 2022, 10:26:39 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD COLUMN AD_LabelCategoryTable_UU VARCHAR(36) DEFAULT NULL +; + +-- May 16, 2022, 10:26:39 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD CONSTRAINT AD_LabelCategoryTable_UU_idx UNIQUE (AD_LabelCategoryTable_UU) +; + +-- May 16, 2022, 10:26:48 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214906,0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200348,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:26:48','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:26:48','YYYY-MM-DD HH24:MI:SS'),10,102,'N','N','D','N','N','N','Y','1cf99e59-2efd-4a7f-81d7-6c340a2ead7f','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:26:50 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD COLUMN AD_Client_ID NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 10:26:59 AM 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,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214907,0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200348,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:26:58','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:26:58','YYYY-MM-DD HH24:MI:SS'),10,113,'N','N','D','N','N','N','Y','74386679-a151-46e4-b9f6-48b9f38b14f8','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:27:00 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD COLUMN AD_Org_ID NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 10:27:10 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214908,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200348,'Created','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:27:10','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:27:10','YYYY-MM-DD HH24:MI:SS'),10,245,'N','N','D','N','N','N','Y','7322cd98-d6d6-44a3-9027-7172bcb6b480','N',0,'N','N','N') +; + +-- May 16, 2022, 10:27:12 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD COLUMN Created TIMESTAMP DEFAULT statement_timestamp() +; + +-- May 16, 2022, 10:27:20 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214909,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200348,'CreatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:27:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:27:20','YYYY-MM-DD HH24:MI:SS'),10,246,'N','N','D','N','N','N','Y','c1d2993f-6272-449b-9c1f-676f9d838c34','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:27:23 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD COLUMN CreatedBy NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 10:27:35 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214910,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200348,'Updated','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:27:34','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:27:34','YYYY-MM-DD HH24:MI:SS'),10,607,'N','N','D','N','N','N','Y','c58b4041-0395-4ba0-a481-8855b502c472','N',0,'N','N','N') +; + +-- May 16, 2022, 10:27:36 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD COLUMN Updated TIMESTAMP DEFAULT statement_timestamp() +; + +-- May 16, 2022, 10:27:45 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214911,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200348,'UpdatedBy',22,'N','N','N','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:27:44','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:27:44','YYYY-MM-DD HH24:MI:SS'),10,608,'N','N','D','N','N','N','Y','9cf8519b-4ca8-46a1-b5ae-c16d06cd0755','N',0,'N','N','D','N') +; + +-- May 16, 2022, 10:27:47 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD COLUMN UpdatedBy NUMERIC(10) DEFAULT NULL +; + +-- May 16, 2022, 10:27:58 AM BRT +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,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214912,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.',200348,'IsActive','Y',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:27:57','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:27:57','YYYY-MM-DD HH24:MI:SS'),10,348,'Y','N','D','N','N','N','Y','016ebe05-22d4-47b2-b30b-2cb66a80019b','N',0,'N','N','N') +; + +-- May 16, 2022, 10:27:59 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD COLUMN IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) +; + +-- May 16, 2022, 10:28:11 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214913,0,'Description','Optional short description of the record','A description is limited to 255 characters.',200348,'Description',255,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:28:10','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:28:10','YYYY-MM-DD HH24:MI:SS'),10,275,'Y','Y','D','N','N','N','Y','134039b3-5286-4501-b927-1efa79479248','Y',10,'N','N','N') +; + +-- May 16, 2022, 10:28:13 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD COLUMN Description VARCHAR(255) DEFAULT NULL +; + +-- May 16, 2022, 10:28:34 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214914,0,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200348,'AD_LabelCategory_ID',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:28:33','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:28:33','YYYY-MM-DD HH24:MI:SS'),10,203589,'N','N','D','N','N','N','Y','5c59f9a1-062d-4b3a-a022-00ec3fc86347','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 10:28:36 AM BRT +UPDATE AD_Column SET FKConstraintName='ADLABELCATEGORY_ADLABCATTABLE', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-16 10:28:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214914 +; + +-- May 16, 2022, 10:30:49 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD COLUMN AD_LabelCategory_ID NUMERIC(10) NOT NULL +; + +-- May 16, 2022, 10:30:49 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD CONSTRAINT ADLABELCATEGORY_ADLABCATTABLE FOREIGN KEY (AD_LabelCategory_ID) REFERENCES ad_labelcategory(ad_labelcategory_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:31:23 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214915,0,'Table','Database Table information','The Database Table provides the information of the table definition',200348,'AD_Table_ID',10,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:31:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:31:23','YYYY-MM-DD HH24:MI:SS'),10,126,'Y','N','D','N','N','N','Y','b6afe6dc-5244-489e-9b28-db6276ebb8e7','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 10:31:25 AM BRT +UPDATE AD_Column SET FKConstraintName='ADTable_ADLabelCategoryTable', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-16 10:31:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214915 +; + +-- May 16, 2022, 10:31:25 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD COLUMN AD_Table_ID NUMERIC(10) NOT NULL +; + +-- May 16, 2022, 10:31:25 AM BRT +ALTER TABLE AD_LabelCategoryTable ADD CONSTRAINT ADTable_ADLabelCategoryTable FOREIGN KEY (AD_Table_ID) REFERENCES ad_table(ad_table_id) DEFERRABLE INITIALLY DEFERRED +; + +-- May 16, 2022, 10:57:56 AM 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 (203599,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:57:55','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:57:55','YYYY-MM-DD HH24:MI:SS'),10,'IsCanBeUsedInAllTables','Can Be Used in All Tables','Can Be Used in All Tables','D','619a9643-c41a-4f6e-b2b3-5067c25a47ae') +; + +-- May 16, 2022, 10:59:13 AM BRT +INSERT INTO AD_Column (AD_Column_ID,Version,Name,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,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214916,0,'Can Be Used in All Tables',200343,'IsCanBeUsedInAllTables','Y',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-16 10:59:13','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 10:59:13','YYYY-MM-DD HH24:MI:SS'),10,203599,'Y','N','D','N','N','N','Y','03f1d286-e8ee-43e2-b5fd-40aba1fdbb3e','Y',0,'N','N','N','N') +; + +-- May 16, 2022, 10:59:16 AM BRT +ALTER TABLE AD_LabelCategory ADD COLUMN IsCanBeUsedInAllTables CHAR(1) DEFAULT 'Y' CHECK (IsCanBeUsedInAllTables IN ('Y','N')) +; + +-- May 16, 2022, 11:03:32 AM 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,IsBetaFunctionality,AD_Window_UU) VALUES (200128,'Label Category',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:32','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:32','YYYY-MM-DD HH24:MI:SS'),10,'M','N','D','N','N','N','a7916cbd-120a-49ce-9f13-e95e0c22821a') +; + +-- May 16, 2022, 11:03:33 AM 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,IsTranslationTab,IsReadOnly,OrderByClause,Processing,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU) VALUES (200317,'Label Category',200128,10,'Y',200343,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:33','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:33','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','AD_LabelCategory.Name','N',0,'N','D','Y','N','92db7d06-609b-445b-818c-6a0175a4de1f') +; + +-- May 16, 2022, 11:03:34 AM 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 (207019,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200317,214842,'Y',22,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:33','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:33','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','0f82c372-a445-43dc-bab3-1b008aaf752d','Y',10,2) +; + +-- May 16, 2022, 11:03:34 AM 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,XPosition,ColumnSpan) VALUES (207020,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200317,214843,'Y',22,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:34','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:34','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','64b19dba-4554-4a70-83aa-44e034029ae4','Y','N',4,2) +; + +-- May 16, 2022, 11:03:35 AM 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 (207021,'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.',200317,214850,'Y',60,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:34','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:34','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','a0917d0e-4a3a-4a69-b794-1961cbeb7a1f','Y',20,5) +; + +-- May 16, 2022, 11:03:35 AM 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 (207022,'Description','Optional short description of the record','A description is limited to 255 characters.',200317,214849,'Y',255,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:35','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:35','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','e3578198-ba01-4a83-a7f3-d00656cf5ce4','Y',30,5) +; + +-- May 16, 2022, 11:03:35 AM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,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 (207023,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200317,214840,'N',22,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:35','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:35','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','66859407-fee4-428b-95f9-900ba257c5ab','N',2) +; + +-- May 16, 2022, 11:03:36 AM 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 (207024,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200317,214841,'Y',36,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:35','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:35','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','9697a1f8-b182-4eb4-9502-04ad8011e8a6','Y',40,2) +; + +-- May 16, 2022, 11:03:36 AM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (207025,'Label Style','Label CSS Style',200317,214851,'Y',10,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:36','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:36','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','35ca9a73-c404-4273-9b1a-9836f8259343','Y',50,2) +; + +-- May 16, 2022, 11:03:37 AM 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,XPosition,ColumnSpan) VALUES (207026,'Can Be Used in All Tables',200317,214916,'Y',1,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:36','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:36','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','6d604f0e-ad5e-4b2b-af28-70ac66f6e4a9','Y',60,2,2) +; + +-- May 16, 2022, 11:03:38 AM 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 (207027,'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.',200317,214848,'Y',1,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:37','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:37','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','87ffd0de-f376-4714-825e-15434831fb16','Y',70,2,2) +; + +-- May 16, 2022, 11:03:38 AM 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,AD_Menu_UU) VALUES (200206,'Label Category','W',200128,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:03:38','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:03:38','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','D','01036ef5-96ef-48d9-8353-799c4884bb35') +; + +-- May 16, 2022, 11:03:38 AM 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(), 10, statement_timestamp(), 10,t.AD_Tree_ID, 200206, 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=200206) +; + +-- May 16, 2022, 11:03:38 AM BRT +UPDATE AD_Table SET AD_Window_ID=200128,Updated=TO_TIMESTAMP('2022-05-16 11:03:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Table_ID=200343 +; + +-- May 16, 2022, 11:06:49 AM 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('2022-05-16 11:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207027 +; + +-- May 16, 2022, 11:06:49 AM BRT +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207026 +; + +-- May 16, 2022, 11:06:49 AM BRT +UPDATE AD_Field SET SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207025 +; + +-- May 16, 2022, 11:06:49 AM BRT +UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207024 +; + +-- May 16, 2022, 11:06:49 AM BRT +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207023 +; + +-- May 16, 2022, 11:09:21 AM 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,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200318,'Table Access',200128,20,'Y',200348,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:09:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:09:20','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','N','N','N',1,'N','D','Y','N','1b3a9732-0f05-4fbd-9c48-2664563cc582','B','N','Y',0) +; + +-- May 16, 2022, 11:11:08 AM BRT +UPDATE AD_Tab SET DisplayLogic='@IsCanBeUsedInAllTables@=N',Updated=TO_TIMESTAMP('2022-05-16 11:11:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tab_ID=200318 +; + +-- May 16, 2022, 11:11:19 AM 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 (207028,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200318,214906,'Y',22,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:17','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:17','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','46a7b222-2580-412b-b79a-787ff886721c','Y',10,2) +; + +-- May 16, 2022, 11:11:19 AM 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,XPosition,ColumnSpan) VALUES (207029,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200318,214907,'Y',22,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:19','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:19','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','728b5ddd-198c-4ca4-aafe-09778240878b','Y','N',4,2) +; + +-- May 16, 2022, 11:11:20 AM 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 (207030,'Description','Optional short description of the record','A description is limited to 255 characters.',200318,214913,'Y',255,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:19','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:19','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','88a338a1-e0d2-4266-a293-cbaef0e2ec9d','Y',20,5) +; + +-- May 16, 2022, 11:11:20 AM 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 (207031,'Label Category Table Access',200318,214904,'N',22,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:20','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','c310fd39-aef7-4b36-b816-d7bce40e523b','N',2) +; + +-- May 16, 2022, 11:11:21 AM 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 (207032,'Label Category Table Access',200318,214905,'Y',36,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:20','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','79c5c200-2fb8-4e0b-bf12-591f8d18a033','Y',30,2) +; + +-- May 16, 2022, 11:11:21 AM 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 (207033,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200318,214914,'Y',22,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:21','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','ee89f5d4-9e32-4ba9-a7b1-6075bf08a945','Y',40,2) +; + +-- May 16, 2022, 11:11:22 AM 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 (207034,'Table','Database Table information','The Database Table provides the information of the table definition',200318,214915,'Y',10,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:21','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','ac6824cf-4311-465a-a1ac-4c47a4e009cb','Y',50,2) +; + +-- May 16, 2022, 11:11:22 AM 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 (207035,'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.',200318,214912,'Y',1,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:11:22','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:11:22','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','862cab79-4cd0-4132-9b25-4b114e3b9121','Y',60,2,2) +; + +-- May 16, 2022, 11:13:18 AM BRT +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:13:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207033 +; + +-- May 16, 2022, 11:13:18 AM 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('2022-05-16 11:13:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207035 +; + +-- May 16, 2022, 11:13:18 AM BRT +UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:13:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207032 +; + +-- May 16, 2022, 11:13:18 AM BRT +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:13:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207031 +; + +-- May 16, 2022, 11:14:37 AM BRT +UPDATE AD_Tab SET AD_Column_ID=214914, Parent_Column_ID=214840,Updated=TO_TIMESTAMP('2022-05-16 11:14:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tab_ID=200318 +; + +-- May 16, 2022, 11:15:10 AM BRT +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=35,Updated=TO_TIMESTAMP('2022-05-16 11:15:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=200206 +; + +-- May 16, 2022, 11:15:10 AM BRT +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=36,Updated=TO_TIMESTAMP('2022-05-16 11:15:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=50001 +; + +-- May 16, 2022, 11:19:14 AM 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,AD_Column_ID,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200319,'Translation',200128,30,'Y',200344,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:13','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:13','YYYY-MM-DD HH24:MI:SS'),10,'N','N','Y','N',214859,'N','N',0,'N','D','N','N','8d58160e-5e05-4895-9e3f-671bf61bf87d','B','N','Y',0) +; + +-- May 16, 2022, 11:19:25 AM 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 (207036,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200319,214852,'Y',10,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:25','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:25','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','5fe9045e-1c5d-44ca-b684-403f1887e1e6','Y',10,2) +; + +-- May 16, 2022, 11:19:26 AM 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,XPosition,ColumnSpan) VALUES (207037,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200319,214853,'Y',10,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:25','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:25','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','f35e3e14-99a2-4b6e-8808-42aa52d819a7','Y','N',4,2) +; + +-- May 16, 2022, 11:19:26 AM 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 (207038,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200319,214861,'Y',6,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:26','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:26','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','0fcc713c-d774-49dd-935f-0fe8046329b1','Y',20,2) +; + +-- May 16, 2022, 11:19:27 AM 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 (207039,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200319,214859,'Y',10,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:26','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:26','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','3eb034cd-8b50-464b-9955-40e96e465233','Y',30,2) +; + +-- May 16, 2022, 11:19:27 AM 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 (207040,'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.',200319,214864,'Y',60,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:27','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:27','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','8a9953b2-f3e7-4982-a0ca-8d79f1220420','Y',40,5) +; + +-- May 16, 2022, 11:19:28 AM 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 (207041,'Description','Optional short description of the record','A description is limited to 255 characters.',200319,214863,'Y',255,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:27','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:27','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','524b73fb-b2e3-4355-b07b-6cc8612c045f','Y',50,5) +; + +-- May 16, 2022, 11:19:28 AM 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 (207042,'AD_LabelCategory_Trl_UU',200319,214860,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:28','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:28','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','e329a63e-2eb3-4c98-abb5-f41077fd511d','N',2) +; + +-- May 16, 2022, 11:19:28 AM 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 (207043,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200319,214862,'Y',1,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:28','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:28','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','fd45054c-4231-4298-86c0-c6c515940035','Y',60,2,2) +; + +-- May 16, 2022, 11:19:29 AM 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 (207044,'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.',200319,214858,'Y',1,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:19:28','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:19:28','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','4cd72939-a9dc-4451-80fa-0e474f9d24b8','Y',70,2,2) +; + +-- May 16, 2022, 11:20:48 AM BRT +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('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207039 +; + +-- May 16, 2022, 11:20:48 AM BRT +UPDATE AD_Field SET SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207038 +; + +-- May 16, 2022, 11:20:48 AM 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('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207044 +; + +-- May 16, 2022, 11:20:48 AM BRT +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207043 +; + +-- May 16, 2022, 11:20:48 AM BRT +UPDATE AD_Field SET SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207040 +; + +-- May 16, 2022, 11:20:48 AM BRT +UPDATE AD_Field SET SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207041 +; + +-- May 16, 2022, 11:20:48 AM BRT +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207042 +; + +-- May 16, 2022, 11:21:20 AM BRT +UPDATE AD_Field SET IsReadOnly='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:21:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207028 +; + +-- May 16, 2022, 11:21:52 AM BRT +UPDATE AD_Field SET IsMandatory='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:21:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207028 +; + +-- May 16, 2022, 11:22:05 AM BRT +UPDATE AD_Field SET IsMandatory='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:22:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207029 +; + +-- May 16, 2022, 11:22:28 AM BRT +UPDATE AD_Field SET IsReadOnly='Y', IsMandatory='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:22:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207019 +; + +-- May 16, 2022, 11:22:36 AM BRT +UPDATE AD_Field SET IsMandatory='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:22:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207020 +; + +-- May 16, 2022, 11:23:43 AM BRT +UPDATE AD_Table SET AD_Window_ID=200128,Updated=TO_TIMESTAMP('2022-05-16 11:23:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Table_ID=200348 +; + +-- May 16, 2022, 11:24:04 AM 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,IsBetaFunctionality,AD_Window_UU) VALUES (200129,'Label',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:03','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:03','YYYY-MM-DD HH24:MI:SS'),10,'M','N','D','N','N','N','0bce0ec1-c6ee-4a1d-8bf1-6948590be93a') +; + +-- May 16, 2022, 11:24:04 AM 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,IsTranslationTab,IsReadOnly,OrderByClause,Processing,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU) VALUES (200320,'Label',200129,10,'Y',200345,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:04','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:04','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','AD_Label.Name','N',0,'N','D','Y','N','703d7d2d-03bf-41d6-aabb-ac8244243125') +; + +-- May 16, 2022, 11:24:05 AM 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 (207045,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200320,214867,'Y',22,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:04','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:04','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','27197aa7-b9b2-4e74-b7a0-4b344a492268','Y',10,2) +; + +-- May 16, 2022, 11:24:05 AM 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,XPosition,ColumnSpan) VALUES (207046,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200320,214868,'Y',22,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:05','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:05','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','9726e0c5-76cf-40f1-a816-6bf4fd47bfd2','Y','N',4,2) +; + +-- May 16, 2022, 11:24:06 AM 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 (207047,'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.',200320,214875,'Y',60,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:05','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:05','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','6520bfa8-fbb3-489d-87a2-91604c39dbe4','Y',20,5) +; + +-- May 16, 2022, 11:24:06 AM 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 (207048,'Description','Optional short description of the record','A description is limited to 255 characters.',200320,214874,'Y',255,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:06','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:06','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','a08016ad-5b98-4d5e-9853-c6f16bfdb894','Y',30,5) +; + +-- May 16, 2022, 11:24:07 AM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (207049,'Label','Record Label',200320,214865,'N',22,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:06','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:06','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','9d67783e-e0cd-4ae9-930a-599c6fac8ac0','N',2) +; + +-- May 16, 2022, 11:24:07 AM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (207050,'Label','Record Label',200320,214866,'Y',36,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:07','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:07','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','15cfe237-2563-469f-a938-5ad0a31b7b1f','Y',40,2) +; + +-- May 16, 2022, 11:24:07 AM 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 (207051,'Label Category','Category of a Label','Identifies the category which this label belongs to.',200320,214876,'Y',22,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:07','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:07','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','75b5d10e-c25e-42c2-a083-5c5b31b763b3','Y',50,2) +; + +-- May 16, 2022, 11:24:08 AM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (207052,'Label Style','Label CSS Style',200320,214877,'Y',10,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:07','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:07','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','1fa1c09b-4b4d-4e81-92b8-c50ef5fe36c8','Y',60,2) +; + +-- May 16, 2022, 11:24:08 AM 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 (207053,'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.',200320,214873,'Y',1,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:08','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:08','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','f6e61fec-ed11-405f-85e9-1192e2c0b6a2','Y',70,2,2) +; + +-- May 16, 2022, 11:24:09 AM 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,AD_Menu_UU) VALUES (200207,'Label','W',200129,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:24:08','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:24:08','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','D','614bbf32-a32b-42c4-abb8-758c2f3c0d08') +; + +-- May 16, 2022, 11:24:09 AM 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(), 10, statement_timestamp(), 10,t.AD_Tree_ID, 200207, 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=200207) +; + +-- May 16, 2022, 11:24:09 AM BRT +UPDATE AD_Table SET AD_Window_ID=200129,Updated=TO_TIMESTAMP('2022-05-16 11:24:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Table_ID=200345 +; + +-- May 16, 2022, 11:25:25 AM BRT +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=36,Updated=TO_TIMESTAMP('2022-05-16 11:25:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=200207 +; + +-- May 16, 2022, 11:25:25 AM BRT +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=37,Updated=TO_TIMESTAMP('2022-05-16 11:25:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=50001 +; + +-- May 16, 2022, 11:26:25 AM 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('2022-05-16 11:26:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207053 +; + +-- May 16, 2022, 11:26:25 AM BRT +UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:26:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207050 +; + +-- May 16, 2022, 11:26:25 AM BRT +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:26:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207049 +; + +-- May 16, 2022, 11:26:41 AM BRT +UPDATE AD_Field SET IsReadOnly='Y', IsMandatory='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:26:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207045 +; + +-- May 16, 2022, 11:26:50 AM BRT +UPDATE AD_Field SET IsMandatory='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:26:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207046 +; + +-- May 16, 2022, 11:30:10 AM 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,AD_Column_ID,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200321,'Translation',200129,20,'Y',200346,0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:04','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:04','YYYY-MM-DD HH24:MI:SS'),10,'N','N','Y','N',214885,'N','N',1,'N','D','N','N','71acff37-8644-417a-b91b-b62164ab196b','B','N','Y',0) +; + +-- May 16, 2022, 11:30:21 AM 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 (207054,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200321,214878,'Y',10,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:20','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:20','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','4bd3b69a-c3ed-4305-b366-3850292809af','Y',10,2) +; + +-- May 16, 2022, 11:30:21 AM 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,XPosition,ColumnSpan) VALUES (207055,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200321,214879,'Y',10,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:21','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','4cde7581-ad87-4160-9dc6-bf31c3ebba23','Y','N',4,2) +; + +-- May 16, 2022, 11:30:22 AM 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 (207056,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200321,214887,'Y',6,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:21','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:21','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','94a7e605-8f08-416b-ae34-d94c1a2234ea','Y',20,2) +; + +-- May 16, 2022, 11:30:23 AM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (207057,'Label','Record Label',200321,214885,'Y',10,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:22','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:22','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','e1e04055-79db-4b81-97ae-b06b0ddb1cc2','Y',30,2) +; + +-- May 16, 2022, 11:30:23 AM 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 (207058,'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.',200321,214890,'Y',60,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:23','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','d8adc616-6fa4-4988-b67d-3dddec43478c','Y',40,5) +; + +-- May 16, 2022, 11:30:23 AM 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 (207059,'Description','Optional short description of the record','A description is limited to 255 characters.',200321,214889,'Y',255,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:23','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','bac47250-6155-4b50-ac46-ea6b4ddce877','Y',50,5) +; + +-- May 16, 2022, 11:30:24 AM 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 (207060,'AD_Label_Trl_UU',200321,214886,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:23','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:23','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','57161acb-c6bb-402a-8895-178fa89bc8c1','N',2) +; + +-- May 16, 2022, 11:30:25 AM 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 (207061,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200321,214888,'Y',1,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:24','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:24','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','c7a21981-6ec2-4d91-837a-29a614da3d2c','Y',60,2,2) +; + +-- May 16, 2022, 11:30:25 AM 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 (207062,'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.',200321,214884,'Y',1,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-16 11:30:25','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-05-16 11:30:25','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','84b5aa87-1611-4f2a-9217-c2c56fa8c237','Y',70,2,2) +; + +-- May 16, 2022, 11:31:05 AM BRT +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('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207057 +; + +-- May 16, 2022, 11:31:05 AM BRT +UPDATE AD_Field SET SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207056 +; + +-- May 16, 2022, 11:31:05 AM 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('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207062 +; + +-- May 16, 2022, 11:31:05 AM BRT +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207061 +; + +-- May 16, 2022, 11:31:05 AM BRT +UPDATE AD_Field SET SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207058 +; + +-- May 16, 2022, 11:31:05 AM BRT +UPDATE AD_Field SET SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207059 +; + +-- May 16, 2022, 11:31:05 AM BRT +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-05-16 11:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207060 +; + +-- May 16, 2022, 11:31:32 AM BRT +UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2022-05-16 11:31:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tab_ID=200319 +; + +-- May 25, 2022, 1:11:55 PM BRT +INSERT INTO AD_ToolBarButton (AD_Client_ID,AD_Org_ID,Created,CreatedBy,ComponentName,IsActive,AD_ToolBarButton_ID,Name,Updated,UpdatedBy,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_ToolBarButton_UU,"action",IsAdvancedButton,IsAddSeparator,EntityType,IsShowMore) VALUES (0,0,TO_TIMESTAMP('2022-05-25 13:11:54','YYYY-MM-DD HH24:MI:SS'),10,'Label','Y',200121,'Window - Label',TO_TIMESTAMP('2022-05-25 13:11:54','YYYY-MM-DD HH24:MI:SS'),10,'N',0,0,'e17bd1a3-5913-4f9b-9b70-5aa2d0ea0b0f','W','N','N','D','N') +; + +-- Jun 3, 2022, 10:56:26 AM BRT +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,201123,'8ff87816-69a2-4cce-a02a-e9e6bb749c6c',TO_TIMESTAMP('2022-06-03 10:56:25','YYYY-MM-DD HH24:MI:SS'),10,'D','Y','ad_labelassignment_tablerecord',TO_TIMESTAMP('2022-06-03 10:56:25','YYYY-MM-DD HH24:MI:SS'),10,200347,'N','N','N','N','N') +; + +-- Jun 3, 2022, 10:56:44 AM BRT +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,201501,'1b116c7d-8d69-4b19-8a65-fa480341e1a1',TO_TIMESTAMP('2022-06-03 10:56:43','YYYY-MM-DD HH24:MI:SS'),10,'D','Y',TO_TIMESTAMP('2022-06-03 10:56:43','YYYY-MM-DD HH24:MI:SS'),10,214902,201123,10) +; + +-- Jun 3, 2022, 10:56:50 AM BRT +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,201502,'c20a08a9-68d4-4a0c-aec2-37ede64dc3f4',TO_TIMESTAMP('2022-06-03 10:56:49','YYYY-MM-DD HH24:MI:SS'),10,'D','Y',TO_TIMESTAMP('2022-06-03 10:56:49','YYYY-MM-DD HH24:MI:SS'),10,214903,201123,20) +; + +-- Jun 3, 2022, 10:56:57 AM BRT +CREATE INDEX ad_labelassignment_tablerecord ON AD_LabelAssignment (AD_Table_ID,Record_ID) +; + +-- Jun 3, 2022, 10:59:45 AM BRT +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Type to Search or Create',0,0,'Y',TO_TIMESTAMP('2022-06-03 10:59:44','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-03 10:59:44','YYYY-MM-DD HH24:MI:SS'),10,200759,'TypeToSearchOrCreate','D','47d27771-32b3-4daa-92dc-8ef6318716b1') +; + diff --git a/migration/iD10/postgresql/202206241449_IDEMPIERE-5259.sql b/migration/iD10/postgresql/202206241449_IDEMPIERE-5259.sql new file mode 100644 index 0000000000..aa49b78bfb --- /dev/null +++ b/migration/iD10/postgresql/202206241449_IDEMPIERE-5259.sql @@ -0,0 +1,106 @@ +-- IDEMPIERE-5259 New window Label Assignment +SELECT register_migration_script('202206241449_IDEMPIERE-5259.sql') FROM dual; + +-- Jun 24, 2022, 2:49:05 PM 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 (200130,'Label Assignment',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:49:05','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:49:05','YYYY-MM-DD HH24:MI:SS'),10,'M','N','D','N','N',0,0,'N','592aed77-8bce-4903-8b77-ad839869a525') +; + +-- Jun 24, 2022, 2:50:25 PM 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,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200324,'Assignment',200130,10,'Y',200347,0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:25','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:25','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','N','N','N',0,'N','D','Y','N','379bc7ea-82fb-4be7-867e-17706d30d156','B','N','Y',0) +; + +-- Jun 24, 2022, 2:50:38 PM 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 (207100,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200324,214893,'Y',22,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:38','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:38','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','358c70ff-aec5-4677-aacb-9e335675d5b6','Y',10,2) +; + +-- Jun 24, 2022, 2:50:39 PM 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,XPosition,ColumnSpan) VALUES (207101,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200324,214894,'Y',22,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:38','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:38','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','25b2fc93-0c1e-4110-a073-bb41f9557aaa','Y','N',4,2) +; + +-- Jun 24, 2022, 2:50:39 PM 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 (207102,'Description','Optional short description of the record','A description is limited to 255 characters.',200324,214900,'Y',255,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:39','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:39','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','1ddb9684-ad07-42d8-a636-fb79088e7463','Y',20,5) +; + +-- Jun 24, 2022, 2:50:40 PM 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 (207103,'Label Assignment',200324,214891,'N',22,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:39','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:39','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','b017a1fb-6746-490d-bac0-bbb27e927cae','N',2) +; + +-- Jun 24, 2022, 2:50:40 PM 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 (207104,'Label Assignment',200324,214892,'Y',36,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:40','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:40','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','28742ba6-5278-4575-8511-2e0ad1ed68d5','Y',30,2) +; + +-- Jun 24, 2022, 2:50:41 PM BRT +INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (207105,'Label','Record Label',200324,214901,'Y',22,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:40','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:40','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','8cdcaee7-69df-470b-80d0-6ee4ef9a2b5f','Y',40,2) +; + +-- Jun 24, 2022, 2:50:41 PM 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 (207106,'Table','Database Table information','The Database Table provides the information of the table definition',200324,214902,'Y',10,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:41','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:41','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','b6395b2e-fbeb-4f6c-ab4d-fb8215386427','Y',50,2) +; + +-- Jun 24, 2022, 2:50:42 PM 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 (207107,'Record ID','Direct internal record ID','The Record ID is the internal unique identifier of a record. Please note that zooming to the record may not be successful for Orders, Invoices and Shipment/Receipts as sometimes the Sales Order type is not known.',200324,214903,'Y',22,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:41','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:41','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','4d74432a-d903-4c46-86bb-816d904836e5','Y',60,2,2) +; + +-- Jun 24, 2022, 2:50:42 PM 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 (207108,'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.',200324,214899,'Y',1,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-24 14:50:42','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:50:42','YYYY-MM-DD HH24:MI:SS'),10,'N','Y','D','03e15bd2-379c-4cc7-a1c8-62e9fcac125d','Y',70,2,2) +; + +-- Jun 24, 2022, 2:54:33 PM BRT +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-24 14:54:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207108 +; + +-- Jun 24, 2022, 2:54:33 PM BRT +UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-24 14:54:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207104 +; + +-- Jun 24, 2022, 2:54:33 PM BRT +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-24 14:54:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207103 +; + +-- Jun 24, 2022, 2:55:00 PM BRT +UPDATE AD_Table SET AD_Window_ID=200130,Updated=TO_TIMESTAMP('2022-06-24 14:55:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Table_ID=200347 +; + +-- Jun 24, 2022, 2:55:52 PM 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 (200208,'Label Assignment','W',200130,0,0,'Y',TO_TIMESTAMP('2022-06-24 14:55:51','YYYY-MM-DD HH24:MI:SS'),10,TO_TIMESTAMP('2022-06-24 14:55:51','YYYY-MM-DD HH24:MI:SS'),10,'N','N','N','D','Y','0e5d5883-2839-46c8-993a-24ea51a20b61') +; + +-- Jun 24, 2022, 2:55:52 PM 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(), 10, statement_timestamp(), 10,t.AD_Tree_ID, 200208, 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=200208) +; + +-- Jun 24, 2022, 2:56:08 PM BRT +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=37,Updated=TO_TIMESTAMP('2022-06-24 14:56:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=200208 +; + +-- Jun 24, 2022, 2:56:08 PM BRT +UPDATE AD_TreeNodeMM SET Parent_ID=153, SeqNo=38,Updated=TO_TIMESTAMP('2022-06-24 14:56:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Tree_ID=10 AND Node_ID=50001 +; + +-- Jun 24, 2022, 2:59:40 PM BRT +UPDATE AD_Column SET IsToolbarButton='N',Updated=TO_TIMESTAMP('2022-06-24 14:59:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214903 +; + +-- Jun 24, 2022, 3:00:20 PM BRT +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-24 15:00:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Field_ID=207107 +; + +-- Jun 24, 2022, 3:02:56 PM BRT +UPDATE AD_Column SET IsSelectionColumn='Y', SeqNoSelection=20,Updated=TO_TIMESTAMP('2022-06-24 15:02:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214902 +; + +-- Jun 24, 2022, 3:03:08 PM BRT +UPDATE AD_Column SET IsSelectionColumn='Y', SeqNoSelection=30,Updated=TO_TIMESTAMP('2022-06-24 15:03:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214901 +; + +-- Jun 24, 2022, 3:05:58 PM BRT +UPDATE AD_Column SET IsSelectionColumn='N',Updated=TO_TIMESTAMP('2022-06-24 15:05:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214900 +; + +-- Jun 24, 2022, 3:10:01 PM BRT +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2022-06-24 15:10:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Column_ID=214901 +; + diff --git a/migration/iD10/postgresql/202206291714_IDEMPIERE-5259.sql b/migration/iD10/postgresql/202206291714_IDEMPIERE-5259.sql new file mode 100644 index 0000000000..9be0bd8c47 --- /dev/null +++ b/migration/iD10/postgresql/202206291714_IDEMPIERE-5259.sql @@ -0,0 +1,7 @@ +-- IDEMPIERE-5259 Default SysConfig +SELECT register_migration_script('202206291714_IDEMPIERE-5259.sql') FROM dual; + +-- Jun 29, 2022, 5:14:48 PM BRT +INSERT INTO AD_SysConfig (AD_SysConfig_ID,AD_Client_ID,AD_Org_ID,Created,Updated,CreatedBy,UpdatedBy,IsActive,Name,Value,Description,EntityType,ConfigurationLevel,AD_SysConfig_UU) VALUES (200201,0,0,TO_TIMESTAMP('2022-06-29 17:14:46','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2022-06-29 17:14:46','YYYY-MM-DD HH24:MI:SS'),10,10,'Y','LABEL_AUTOMATIC_COLOR','Y','Y/N - Define if the application will automatically colorize labels, even if not assigned to a CSS style','D','C','10c6845f-9ce8-4ad7-8588-cda60416a2a5') +; + diff --git a/org.adempiere.base/src/org/compiere/model/GridTab.java b/org.adempiere.base/src/org/compiere/model/GridTab.java index 90975badb4..13b7571793 100644 --- a/org.adempiere.base/src/org/compiere/model/GridTab.java +++ b/org.adempiere.base/src/org/compiere/model/GridTab.java @@ -2202,8 +2202,19 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable return 0; int recordID = m_mTable.getKeyID(m_currentRow); return MPostIt.getID(m_vo.AD_Table_ID, recordID); - } // getAD_PostIt_ID - + } // getAD_PostIt_ID + + /** + * Returns true, if current row has Label(s) + * @return true if record has Label(s) + */ + public boolean hasLabel() + { + if (!canHaveAttachment()) + return false; + int recordID = m_mTable.getKeyID(m_currentRow); + return MLabelAssignment.hasAnyAssignment(m_vo.AD_Table_ID, recordID); + } // hasLabel /** * Returns true, if this tab have templates allowed with current role diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_Label.java b/org.adempiere.base/src/org/compiere/model/I_AD_Label.java new file mode 100644 index 0000000000..5b51dbb48b --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/I_AD_Label.java @@ -0,0 +1,191 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 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 AD_Label + * @author iDempiere (generated) + * @version Release 10 + */ +public interface I_AD_Label +{ + + /** TableName=AD_Label */ + public static final String Table_Name = "AD_Label"; + + /** AD_Table_ID=200345 */ + public static final int Table_ID = 200345; + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = BigDecimal.valueOf(6); + + /** Load Meta Data */ + + /** Column name AD_Client_ID */ + public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; + + /** Get Tenant. + * Tenant for this installation. + */ + public int getAD_Client_ID(); + + /** Column name AD_LabelCategory_ID */ + public static final String COLUMNNAME_AD_LabelCategory_ID = "AD_LabelCategory_ID"; + + /** Set Label Category. + * Category of a Label + */ + public void setAD_LabelCategory_ID (int AD_LabelCategory_ID); + + /** Get Label Category. + * Category of a Label + */ + public int getAD_LabelCategory_ID(); + + public org.compiere.model.I_AD_LabelCategory getAD_LabelCategory() throws RuntimeException; + + /** Column name AD_Label_ID */ + public static final String COLUMNNAME_AD_Label_ID = "AD_Label_ID"; + + /** Set Label. + * Record Label + */ + public void setAD_Label_ID (int AD_Label_ID); + + /** Get Label. + * Record Label + */ + public int getAD_Label_ID(); + + /** Column name AD_LabelStyle_ID */ + public static final String COLUMNNAME_AD_LabelStyle_ID = "AD_LabelStyle_ID"; + + /** Set Label Style. + * Label CSS Style + */ + public void setAD_LabelStyle_ID (int AD_LabelStyle_ID); + + /** Get Label Style. + * Label CSS Style + */ + public int getAD_LabelStyle_ID(); + + public org.compiere.model.I_AD_Style getAD_LabelStyle() throws RuntimeException; + + /** Column name AD_Label_UU */ + public static final String COLUMNNAME_AD_Label_UU = "AD_Label_UU"; + + /** Set Label. + * Record Label + */ + public void setAD_Label_UU (String AD_Label_UU); + + /** Get Label. + * Record Label + */ + public String getAD_Label_UU(); + + /** Column name AD_Org_ID */ + public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; + + /** Set Organization. + * Organizational entity within tenant + */ + public void setAD_Org_ID (int AD_Org_ID); + + /** Get Organization. + * Organizational entity within tenant + */ + public int getAD_Org_ID(); + + /** 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 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(); +} diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_LabelAssignment.java b/org.adempiere.base/src/org/compiere/model/I_AD_LabelAssignment.java new file mode 100644 index 0000000000..6e98e8ccb2 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/I_AD_LabelAssignment.java @@ -0,0 +1,183 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 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 AD_LabelAssignment + * @author iDempiere (generated) + * @version Release 10 + */ +public interface I_AD_LabelAssignment +{ + + /** TableName=AD_LabelAssignment */ + public static final String Table_Name = "AD_LabelAssignment"; + + /** AD_Table_ID=200347 */ + public static final int Table_ID = 200347; + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = BigDecimal.valueOf(6); + + /** Load Meta Data */ + + /** Column name AD_Client_ID */ + public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; + + /** Get Tenant. + * Tenant for this installation. + */ + public int getAD_Client_ID(); + + /** Column name AD_LabelAssignment_ID */ + public static final String COLUMNNAME_AD_LabelAssignment_ID = "AD_LabelAssignment_ID"; + + /** Set Label Assignment */ + public void setAD_LabelAssignment_ID (int AD_LabelAssignment_ID); + + /** Get Label Assignment */ + public int getAD_LabelAssignment_ID(); + + /** Column name AD_LabelAssignment_UU */ + public static final String COLUMNNAME_AD_LabelAssignment_UU = "AD_LabelAssignment_UU"; + + /** Set Label Assignment */ + public void setAD_LabelAssignment_UU (String AD_LabelAssignment_UU); + + /** Get Label Assignment */ + public String getAD_LabelAssignment_UU(); + + /** Column name AD_Label_ID */ + public static final String COLUMNNAME_AD_Label_ID = "AD_Label_ID"; + + /** Set Label. + * Record Label + */ + public void setAD_Label_ID (int AD_Label_ID); + + /** Get Label. + * Record Label + */ + public int getAD_Label_ID(); + + public org.compiere.model.I_AD_Label getAD_Label() throws RuntimeException; + + /** Column name AD_Org_ID */ + public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; + + /** Set Organization. + * Organizational entity within tenant + */ + public void setAD_Org_ID (int AD_Org_ID); + + /** Get Organization. + * Organizational entity within tenant + */ + public int getAD_Org_ID(); + + /** 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 org.compiere.model.I_AD_Table getAD_Table() 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 Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_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(); +} diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_LabelCategory.java b/org.adempiere.base/src/org/compiere/model/I_AD_LabelCategory.java new file mode 100644 index 0000000000..13455f949b --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/I_AD_LabelCategory.java @@ -0,0 +1,185 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 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 AD_LabelCategory + * @author iDempiere (generated) + * @version Release 10 + */ +public interface I_AD_LabelCategory +{ + + /** TableName=AD_LabelCategory */ + public static final String Table_Name = "AD_LabelCategory"; + + /** AD_Table_ID=200343 */ + public static final int Table_ID = 200343; + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = BigDecimal.valueOf(6); + + /** Load Meta Data */ + + /** Column name AD_Client_ID */ + public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; + + /** Get Tenant. + * Tenant for this installation. + */ + public int getAD_Client_ID(); + + /** Column name AD_LabelCategory_ID */ + public static final String COLUMNNAME_AD_LabelCategory_ID = "AD_LabelCategory_ID"; + + /** Set Label Category. + * Category of a Label + */ + public void setAD_LabelCategory_ID (int AD_LabelCategory_ID); + + /** Get Label Category. + * Category of a Label + */ + public int getAD_LabelCategory_ID(); + + /** Column name AD_LabelCategory_UU */ + public static final String COLUMNNAME_AD_LabelCategory_UU = "AD_LabelCategory_UU"; + + /** Set Label Category. + * Category of a Label + */ + public void setAD_LabelCategory_UU (String AD_LabelCategory_UU); + + /** Get Label Category. + * Category of a Label + */ + public String getAD_LabelCategory_UU(); + + /** Column name AD_LabelStyle_ID */ + public static final String COLUMNNAME_AD_LabelStyle_ID = "AD_LabelStyle_ID"; + + /** Set Label Style. + * Label CSS Style + */ + public void setAD_LabelStyle_ID (int AD_LabelStyle_ID); + + /** Get Label Style. + * Label CSS Style + */ + public int getAD_LabelStyle_ID(); + + public org.compiere.model.I_AD_Style getAD_LabelStyle() throws RuntimeException; + + /** Column name AD_Org_ID */ + public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; + + /** Set Organization. + * Organizational entity within tenant + */ + public void setAD_Org_ID (int AD_Org_ID); + + /** Get Organization. + * Organizational entity within tenant + */ + public int getAD_Org_ID(); + + /** 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 IsCanBeUsedInAllTables */ + public static final String COLUMNNAME_IsCanBeUsedInAllTables = "IsCanBeUsedInAllTables"; + + /** Set Can Be Used in All Tables */ + public void setIsCanBeUsedInAllTables (boolean IsCanBeUsedInAllTables); + + /** Get Can Be Used in All Tables */ + public boolean isCanBeUsedInAllTables(); + + /** 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 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(); +} diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_LabelCategoryTable.java b/org.adempiere.base/src/org/compiere/model/I_AD_LabelCategoryTable.java new file mode 100644 index 0000000000..4b0baa0d06 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/I_AD_LabelCategoryTable.java @@ -0,0 +1,170 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 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 AD_LabelCategoryTable + * @author iDempiere (generated) + * @version Release 10 + */ +public interface I_AD_LabelCategoryTable +{ + + /** TableName=AD_LabelCategoryTable */ + public static final String Table_Name = "AD_LabelCategoryTable"; + + /** AD_Table_ID=200348 */ + public static final int Table_ID = 200348; + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = BigDecimal.valueOf(6); + + /** Load Meta Data */ + + /** Column name AD_Client_ID */ + public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; + + /** Get Tenant. + * Tenant for this installation. + */ + public int getAD_Client_ID(); + + /** Column name AD_LabelCategory_ID */ + public static final String COLUMNNAME_AD_LabelCategory_ID = "AD_LabelCategory_ID"; + + /** Set Label Category. + * Category of a Label + */ + public void setAD_LabelCategory_ID (int AD_LabelCategory_ID); + + /** Get Label Category. + * Category of a Label + */ + public int getAD_LabelCategory_ID(); + + public org.compiere.model.I_AD_LabelCategory getAD_LabelCategory() throws RuntimeException; + + /** Column name AD_LabelCategoryTable_ID */ + public static final String COLUMNNAME_AD_LabelCategoryTable_ID = "AD_LabelCategoryTable_ID"; + + /** Set Label Category Table Access */ + public void setAD_LabelCategoryTable_ID (int AD_LabelCategoryTable_ID); + + /** Get Label Category Table Access */ + public int getAD_LabelCategoryTable_ID(); + + /** Column name AD_LabelCategoryTable_UU */ + public static final String COLUMNNAME_AD_LabelCategoryTable_UU = "AD_LabelCategoryTable_UU"; + + /** Set Label Category Table Access */ + public void setAD_LabelCategoryTable_UU (String AD_LabelCategoryTable_UU); + + /** Get Label Category Table Access */ + public String getAD_LabelCategoryTable_UU(); + + /** Column name AD_Org_ID */ + public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; + + /** Set Organization. + * Organizational entity within tenant + */ + public void setAD_Org_ID (int AD_Org_ID); + + /** Get Organization. + * Organizational entity within tenant + */ + public int getAD_Org_ID(); + + /** 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 org.compiere.model.I_AD_Table getAD_Table() 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 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(); +} diff --git a/org.adempiere.base/src/org/compiere/model/MLabel.java b/org.adempiere.base/src/org/compiere/model/MLabel.java new file mode 100644 index 0000000000..937fff12b8 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/MLabel.java @@ -0,0 +1,163 @@ +/*********************************************************************** + * 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: * + * - Nicolas Micoud (TGI) * + * - Alan Lescano * + * - Norbert Bede * + **********************************************************************/ +package org.compiere.model; + +import java.sql.ResultSet; +import java.util.Properties; +import java.util.UUID; + +import org.compiere.util.Env; + +/** + * Label Model + */ +public class MLabel extends X_AD_Label { + private static final long serialVersionUID = -964945898771768568L; + private static final String[] VIVID_COLORS = { + "#FFB300", + "#FF6800", + "#A6BDD7", + "#CEA262", + "#007D34", + "#F6768E", + "#00538A", + "#FF7A5C", + "#53377A", + "#FF8E00", + "#B32851", + "#F4C800", + "#93AA00", + "#F13A13", + "#1EABAF", + "#3178C1", + "#B83140", + "#0C1326", + "#C71BEF", + "#4600AE", + "#21AA1F", + "#1238C1", + "#0C8077", + "#3F5CE3", + "#1A5300", + "#0CA452", + "#A77A42", + "#293C8D", + "#F8155D", + "#49C600", + "#803120", + "#8C0D22" + }; + + /** + * Standard Constructor + * @param ctx context + * @param AD_Label_ID id + * @param trxName transaction + */ + public MLabel(Properties ctx, int AD_Label_ID, String trxName) { + super(ctx, AD_Label_ID, trxName); + } + + /** + * Load Constructor + * @param ctx context + * @param rs result set + * @param trxName transaction + */ + public MLabel(Properties ctx, ResultSet rs, String trxName) { + super(ctx, rs, trxName); + } + + /** + * Calculates the label css style based on priorities: + * 1- Label style; + * 2- Category style; + * 3- Label Hash to Hex + * @return css style + */ + public String buildStyle() { + StringBuilder result = new StringBuilder(); + + // Calculated hex color + if (MSysConfig.getBooleanValue(MSysConfig.LABEL_AUTOMATIC_COLOR, true, getAD_Client_ID())) { + result.append("color: ").append(MLabel.calculateHexColor(getName())).append(";"); + } + + // Category style + if (getAD_LabelCategory() != null && getAD_LabelCategory().getAD_LabelStyle_ID() > 0) + result.append(buildStyle(getAD_LabelCategory().getAD_LabelStyle_ID())); + + // Label style + if (getAD_LabelStyle_ID() > 0) + result.append(buildStyle(getAD_LabelStyle_ID())); + + return result.toString(); + } + + private String buildStyle(int AD_Style_ID) { + StringBuilder result = new StringBuilder(); + + if (AD_Style_ID > 0) { + MStyle style = new MStyle(getCtx(), AD_Style_ID, get_TrxName()); + MStyleLine[] lines = style.getStyleLines(); + + for (MStyleLine line : lines) + { + String inlineStyle = line.getInlineStyle().trim(); + + if (result.length() > 0 && !(result.charAt(result.length()-1)==';')) + result.append("; "); + + result.append(inlineStyle); + } + + result.append(";"); + } + + return result.toString(); + } + + /** + * Calculates a color for a given text + * @param text + * @return hex color + */ + public static String calculateHexColor(String text) { + int colorIndex = Math.abs(UUID.nameUUIDFromBytes(text.getBytes()).toString().hashCode() % VIVID_COLORS.length); + return VIVID_COLORS[colorIndex]; + } + + public static MLabel getByName(Properties ctx, String name, String trxName) { + String sqlWhere = " AD_Client_ID=? AND UPPER(Name) LIKE ?"; + + return new Query(ctx, Table_Name, sqlWhere, trxName) + .setParameters(Env.getAD_Client_ID(ctx), name.toUpperCase()) + .setOnlyActiveRecords(true) + .setOrderBy("Name") + .first(); + } +} diff --git a/org.adempiere.base/src/org/compiere/model/MLabelAssignment.java b/org.adempiere.base/src/org/compiere/model/MLabelAssignment.java new file mode 100644 index 0000000000..bb08646dfa --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/MLabelAssignment.java @@ -0,0 +1,84 @@ +/*********************************************************************** + * 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: * + * - Nicolas Micoud (TGI) * + * - Alan Lescano * + * - Norbert Bede * + **********************************************************************/ +package org.compiere.model; + +import java.sql.ResultSet; +import java.util.Properties; + +import org.compiere.util.DB; + +/** + * Label Assignment Model + */ +public class MLabelAssignment extends X_AD_LabelAssignment { + private static final long serialVersionUID = -964945898771768568L; + + /** + * Standard Constructor + * @param ctx context + * @param AD_LabelAssignment_ID id + * @param trxName transaction + */ + public MLabelAssignment(Properties ctx, int AD_LabelAssignment_ID, String trxName) { + super(ctx, AD_LabelAssignment_ID, trxName); + } + + /** + * Load Constructor + * @param ctx context + * @param rs result set + * @param trxName transaction + */ + public MLabelAssignment(Properties ctx, ResultSet rs, String trxName) { + super(ctx, rs, trxName); + } + + /** + * Check if record has any label assigned + * @param Table_ID + * @param Record_ID + * @return true if record has any label assigned + */ + public static boolean hasAnyAssignment(int Table_ID, int Record_ID) { + String sql="SELECT COUNT(*) FROM AD_LabelAssignment WHERE AD_Table_ID=? AND Record_ID=?"; + int counter = DB.getSQLValueEx(null, sql, Table_ID, Record_ID); + return counter > 0; + } + + /** + * Check if a label is assigned to a record + * @param AD_Label_ID + * @param Table_ID + * @param Record_ID + * @return true if label is assigned + */ + public static boolean hasLabelAssignment(int AD_Label_ID, int Table_ID, int Record_ID) { + String sql="SELECT COUNT(*) FROM AD_LabelAssignment WHERE AD_Label_ID = ? AND AD_Table_ID=? AND Record_ID=?"; + int counter = DB.getSQLValueEx(null, sql, AD_Label_ID, Table_ID, Record_ID); + return counter > 0; + } +} diff --git a/org.adempiere.base/src/org/compiere/model/MLabelCategory.java b/org.adempiere.base/src/org/compiere/model/MLabelCategory.java new file mode 100644 index 0000000000..65042e42ca --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/MLabelCategory.java @@ -0,0 +1,147 @@ +/*********************************************************************** + * 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: * + * - Nicolas Micoud (TGI) * + * - Alan Lescano * + * - Norbert Bede * + **********************************************************************/ +package org.compiere.model; + +import java.sql.ResultSet; +import java.util.Arrays; +import java.util.List; +import java.util.Properties; + +import org.compiere.util.CCache; +import org.compiere.util.Env; +import org.idempiere.cache.ImmutableIntPOCache; +import org.idempiere.cache.ImmutablePOSupport; + +/** + * Label Category Model + */ +public class MLabelCategory extends X_AD_LabelCategory implements ImmutablePOSupport { + private static final long serialVersionUID = 1413261690113516220L; + + /** Cache */ + private static ImmutableIntPOCache s_cache = new ImmutableIntPOCache(Table_Name, 5); + /** Cache of Client */ + private static CCache s_cacheAll = new CCache(Table_Name, Table_Name+"_Of_Client", 5); + + /** + * Standard Constructor + * @param ctx context + * @param AD_LabelCategory_ID id + * @param trxName transaction + */ + public MLabelCategory(Properties ctx, int AD_LabelCategory_ID, String trxName) { + super(ctx, AD_LabelCategory_ID, trxName); + } + + /** + * Load Constructor + * @param ctx context + * @param rs result set + * @param trxName transaction + */ + public MLabelCategory(Properties ctx, ResultSet rs, String trxName) { + super(ctx, rs, trxName); + } + + /** + * Get All Label Categories (for System and current Client) + * @param ctx context + * @return MLabelCategory array + */ + public static MLabelCategory[] getAll(Properties ctx) + { + int clientID = Env.getAD_Client_ID(ctx); + MLabelCategory[] retValue = (MLabelCategory[])s_cacheAll.get(clientID); + + if (retValue != null) + { + if (ctx == Env.getCtx()) + return retValue; + else + return Arrays.stream(retValue).map(e -> {return new MLabelCategory(ctx, e).markImmutable();}).toArray(MLabelCategory[]::new); + } + + List list = new Query(ctx, Table_Name, "AD_Client_ID IN (0, ?)", null) + .setParameters(clientID) + .setOrderBy("AD_Client_ID DESC, AD_LabelCategory_ID") + .setOnlyActiveRecords(true) + .list(); + + for (MLabelCategory cat : list) + s_cache.put(cat.get_ID(), cat, e -> new MLabelCategory(Env.getCtx(), e)); + + retValue = list.toArray(new MLabelCategory[list.size()]); + + if (ctx == Env.getCtx()) + s_cacheAll.put(clientID, retValue); + else + s_cacheAll.put(clientID, Arrays.stream(retValue).map(e -> {return new MLabelCategory(Env.getCtx(), e);}).toArray(MLabelCategory[]::new)); + + return retValue; + } + + /** + * Load Constructor + * @param copy + */ + public MLabelCategory(MLabelCategory copy) + { + this(Env.getCtx(), copy); + } + + /** + * Load Constructor + * @param ctx + * @param copy + */ + public MLabelCategory(Properties ctx, MLabelCategory copy) + { + this(ctx, copy, (String) null); + } + + /** + * Load Constructor + * @param ctx + * @param copy + * @param trxName + */ + public MLabelCategory(Properties ctx, MLabelCategory copy, String trxName) + { + this(ctx, 0, trxName); + copyPO(copy); + } + + @Override + public MLabelCategory markImmutable() { + if (is_Immutable()) + return this; + + makeImmutable(); + return this; + } + +} // MLabelCategory diff --git a/org.adempiere.base/src/org/compiere/model/MLabelCategoryTable.java b/org.adempiere.base/src/org/compiere/model/MLabelCategoryTable.java new file mode 100644 index 0000000000..b13b95422c --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/MLabelCategoryTable.java @@ -0,0 +1,58 @@ +/*********************************************************************** + * 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: * + * - Nicolas Micoud (TGI) * + * - Alan Lescano * + * - Norbert Bede * + **********************************************************************/ +package org.compiere.model; + +import java.sql.ResultSet; +import java.util.Properties; + +/** + * Label Category Table Model + */ +public class MLabelCategoryTable extends X_AD_LabelCategoryTable { + private static final long serialVersionUID = -964945828771768568L; + + /** + * Standard Constructor + * @param ctx context + * @param AD_LabelCategoryTable_ID id + * @param trxName transaction + */ + public MLabelCategoryTable(Properties ctx, int AD_LabelCategoryTable_ID, String trxName) { + super(ctx, AD_LabelCategoryTable_ID, trxName); + } + + /** + * Load Constructor + * @param ctx context + * @param rs result set + * @param trxName transaction + */ + public MLabelCategoryTable(Properties ctx, ResultSet rs, String trxName) { + super(ctx, rs, trxName); + } + +} diff --git a/org.adempiere.base/src/org/compiere/model/MSysConfig.java b/org.adempiere.base/src/org/compiere/model/MSysConfig.java index 1a78b3de4c..4d116f9d9d 100644 --- a/org.adempiere.base/src/org/compiere/model/MSysConfig.java +++ b/org.adempiere.base/src/org/compiere/model/MSysConfig.java @@ -112,6 +112,7 @@ public class MSysConfig extends X_AD_SysConfig public static final String INFO_PRODUCT_SHOW_PRODUCTS_WITHOUT_PRICE = "INFO_PRODUCT_SHOW_PRODUCTS_WITHOUT_PRICE"; public static final String Invoice_ReverseUseNewNumber = "Invoice_ReverseUseNewNumber"; public static final String JASPER_SWAP_MAX_PAGES = "JASPER_SWAP_MAX_PAGES"; + public static final String LABEL_AUTOMATIC_COLOR = "LABEL_AUTOMATIC_COLOR"; public static final String LASTRUN_RECORD_COUNT = "LASTRUN_RECORD_COUNT"; public static final String LDAP_TYPE = "LDAP_TYPE"; public static final String LOCATION_MAPS_DESTINATION_ADDRESS = "LOCATION_MAPS_DESTINATION_ADDRESS"; diff --git a/org.adempiere.base/src/org/compiere/model/PO_Record.java b/org.adempiere.base/src/org/compiere/model/PO_Record.java index be9b589eaf..b90706d9e2 100644 --- a/org.adempiere.base/src/org/compiere/model/PO_Record.java +++ b/org.adempiere.base/src/org/compiere/model/PO_Record.java @@ -56,7 +56,8 @@ public class PO_Record X_AD_Archive.Table_ID, X_AD_Note.Table_ID, X_AD_RecentItem.Table_ID, - X_AD_PostIt.Table_ID + X_AD_PostIt.Table_ID, + X_AD_LabelAssignment.Table_ID }; /** Cascade Table Names */ private static String[] s_cascadeNames = new String[]{ @@ -64,7 +65,8 @@ public class PO_Record X_AD_Archive.Table_Name, X_AD_Note.Table_Name, X_AD_RecentItem.Table_Name, - X_AD_PostIt.Table_Name + X_AD_PostIt.Table_Name, + X_AD_LabelAssignment.Table_Name }; /** Restrict Table ID */ diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_Label.java b/org.adempiere.base/src/org/compiere/model/X_AD_Label.java new file mode 100644 index 0000000000..acee450ac4 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/X_AD_Label.java @@ -0,0 +1,208 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 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; + +/** Generated Model for AD_Label + * @author iDempiere (generated) + * @version Release 10 - $Id$ */ +@org.adempiere.base.Model(table="AD_Label") +public class X_AD_Label extends PO implements I_AD_Label, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 20220525L; + + /** Standard Constructor */ + public X_AD_Label (Properties ctx, int AD_Label_ID, String trxName) + { + super (ctx, AD_Label_ID, trxName); + /** if (AD_Label_ID == 0) + { + setName (null); + } */ + } + + /** Standard Constructor */ + public X_AD_Label (Properties ctx, int AD_Label_ID, String trxName, String ... virtualColumns) + { + super (ctx, AD_Label_ID, trxName, virtualColumns); + /** if (AD_Label_ID == 0) + { + setName (null); + } */ + } + + /** Load Constructor */ + public X_AD_Label (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + 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() + { + StringBuilder sb = new StringBuilder ("X_AD_Label[") + .append(get_ID()).append(",Name=").append(getName()).append("]"); + return sb.toString(); + } + + public org.compiere.model.I_AD_LabelCategory getAD_LabelCategory() throws RuntimeException + { + return (org.compiere.model.I_AD_LabelCategory)MTable.get(getCtx(), org.compiere.model.I_AD_LabelCategory.Table_ID) + .getPO(getAD_LabelCategory_ID(), get_TrxName()); + } + + /** Set Label Category. + @param AD_LabelCategory_ID Category of a Label + */ + public void setAD_LabelCategory_ID (int AD_LabelCategory_ID) + { + if (AD_LabelCategory_ID < 1) + set_Value (COLUMNNAME_AD_LabelCategory_ID, null); + else + set_Value (COLUMNNAME_AD_LabelCategory_ID, Integer.valueOf(AD_LabelCategory_ID)); + } + + /** Get Label Category. + @return Category of a Label + */ + public int getAD_LabelCategory_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LabelCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Label. + @param AD_Label_ID Record Label + */ + public void setAD_Label_ID (int AD_Label_ID) + { + if (AD_Label_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Label_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Label_ID, Integer.valueOf(AD_Label_ID)); + } + + /** Get Label. + @return Record Label + */ + public int getAD_Label_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Label_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.compiere.model.I_AD_Style getAD_LabelStyle() throws RuntimeException + { + return (org.compiere.model.I_AD_Style)MTable.get(getCtx(), org.compiere.model.I_AD_Style.Table_ID) + .getPO(getAD_LabelStyle_ID(), get_TrxName()); + } + + /** Set Label Style. + @param AD_LabelStyle_ID Label CSS Style + */ + public void setAD_LabelStyle_ID (int AD_LabelStyle_ID) + { + if (AD_LabelStyle_ID < 1) + set_Value (COLUMNNAME_AD_LabelStyle_ID, null); + else + set_Value (COLUMNNAME_AD_LabelStyle_ID, Integer.valueOf(AD_LabelStyle_ID)); + } + + /** Get Label Style. + @return Label CSS Style + */ + public int getAD_LabelStyle_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LabelStyle_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Label. + @param AD_Label_UU Record Label + */ + public void setAD_Label_UU (String AD_Label_UU) + { + set_ValueNoCheck (COLUMNNAME_AD_Label_UU, AD_Label_UU); + } + + /** Get Label. + @return Record Label + */ + public String getAD_Label_UU() + { + return (String)get_Value(COLUMNNAME_AD_Label_UU); + } + + /** 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); + } +} \ No newline at end of file diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_LabelAssignment.java b/org.adempiere.base/src/org/compiere/model/X_AD_LabelAssignment.java new file mode 100644 index 0000000000..e6eaf2cd7e --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/X_AD_LabelAssignment.java @@ -0,0 +1,216 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 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; + +/** Generated Model for AD_LabelAssignment + * @author iDempiere (generated) + * @version Release 10 - $Id$ */ +@org.adempiere.base.Model(table="AD_LabelAssignment") +public class X_AD_LabelAssignment extends PO implements I_AD_LabelAssignment, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 20220525L; + + /** Standard Constructor */ + public X_AD_LabelAssignment (Properties ctx, int AD_LabelAssignment_ID, String trxName) + { + super (ctx, AD_LabelAssignment_ID, trxName); + /** if (AD_LabelAssignment_ID == 0) + { + setAD_Label_ID (0); + setAD_Table_ID (0); + setRecord_ID (0); + } */ + } + + /** Standard Constructor */ + public X_AD_LabelAssignment (Properties ctx, int AD_LabelAssignment_ID, String trxName, String ... virtualColumns) + { + super (ctx, AD_LabelAssignment_ID, trxName, virtualColumns); + /** if (AD_LabelAssignment_ID == 0) + { + setAD_Label_ID (0); + setAD_Table_ID (0); + setRecord_ID (0); + } */ + } + + /** Load Constructor */ + public X_AD_LabelAssignment (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + 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() + { + StringBuilder sb = new StringBuilder ("X_AD_LabelAssignment[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Label Assignment. + @param AD_LabelAssignment_ID Label Assignment + */ + public void setAD_LabelAssignment_ID (int AD_LabelAssignment_ID) + { + if (AD_LabelAssignment_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_LabelAssignment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_LabelAssignment_ID, Integer.valueOf(AD_LabelAssignment_ID)); + } + + /** Get Label Assignment. + @return Label Assignment */ + public int getAD_LabelAssignment_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LabelAssignment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Label Assignment. + @param AD_LabelAssignment_UU Label Assignment + */ + public void setAD_LabelAssignment_UU (String AD_LabelAssignment_UU) + { + set_ValueNoCheck (COLUMNNAME_AD_LabelAssignment_UU, AD_LabelAssignment_UU); + } + + /** Get Label Assignment. + @return Label Assignment */ + public String getAD_LabelAssignment_UU() + { + return (String)get_Value(COLUMNNAME_AD_LabelAssignment_UU); + } + + public org.compiere.model.I_AD_Label getAD_Label() throws RuntimeException + { + return (org.compiere.model.I_AD_Label)MTable.get(getCtx(), org.compiere.model.I_AD_Label.Table_ID) + .getPO(getAD_Label_ID(), get_TrxName()); + } + + /** Set Label. + @param AD_Label_ID Record Label + */ + public void setAD_Label_ID (int AD_Label_ID) + { + if (AD_Label_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Label_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Label_ID, Integer.valueOf(AD_Label_ID)); + } + + /** Get Label. + @return Record Label + */ + public int getAD_Label_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Label_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.compiere.model.I_AD_Table getAD_Table() throws RuntimeException + { + return (org.compiere.model.I_AD_Table)MTable.get(getCtx(), org.compiere.model.I_AD_Table.Table_ID) + .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_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (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(); + } + + /** 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 Record ID. + @param Record_ID Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_LabelCategory.java b/org.adempiere.base/src/org/compiere/model/X_AD_LabelCategory.java new file mode 100644 index 0000000000..e758b14cb6 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/X_AD_LabelCategory.java @@ -0,0 +1,202 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 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; + +/** Generated Model for AD_LabelCategory + * @author iDempiere (generated) + * @version Release 10 - $Id$ */ +@org.adempiere.base.Model(table="AD_LabelCategory") +public class X_AD_LabelCategory extends PO implements I_AD_LabelCategory, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 20220525L; + + /** Standard Constructor */ + public X_AD_LabelCategory (Properties ctx, int AD_LabelCategory_ID, String trxName) + { + super (ctx, AD_LabelCategory_ID, trxName); + /** if (AD_LabelCategory_ID == 0) + { + setName (null); + } */ + } + + /** Standard Constructor */ + public X_AD_LabelCategory (Properties ctx, int AD_LabelCategory_ID, String trxName, String ... virtualColumns) + { + super (ctx, AD_LabelCategory_ID, trxName, virtualColumns); + /** if (AD_LabelCategory_ID == 0) + { + setName (null); + } */ + } + + /** Load Constructor */ + public X_AD_LabelCategory (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + 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() + { + StringBuilder sb = new StringBuilder ("X_AD_LabelCategory[") + .append(get_ID()).append(",Name=").append(getName()).append("]"); + return sb.toString(); + } + + /** Set Label Category. + @param AD_LabelCategory_ID Category of a Label + */ + public void setAD_LabelCategory_ID (int AD_LabelCategory_ID) + { + if (AD_LabelCategory_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_LabelCategory_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_LabelCategory_ID, Integer.valueOf(AD_LabelCategory_ID)); + } + + /** Get Label Category. + @return Category of a Label + */ + public int getAD_LabelCategory_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LabelCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Label Category. + @param AD_LabelCategory_UU Category of a Label + */ + public void setAD_LabelCategory_UU (String AD_LabelCategory_UU) + { + set_ValueNoCheck (COLUMNNAME_AD_LabelCategory_UU, AD_LabelCategory_UU); + } + + /** Get Label Category. + @return Category of a Label + */ + public String getAD_LabelCategory_UU() + { + return (String)get_Value(COLUMNNAME_AD_LabelCategory_UU); + } + + public org.compiere.model.I_AD_Style getAD_LabelStyle() throws RuntimeException + { + return (org.compiere.model.I_AD_Style)MTable.get(getCtx(), org.compiere.model.I_AD_Style.Table_ID) + .getPO(getAD_LabelStyle_ID(), get_TrxName()); + } + + /** Set Label Style. + @param AD_LabelStyle_ID Label CSS Style + */ + public void setAD_LabelStyle_ID (int AD_LabelStyle_ID) + { + if (AD_LabelStyle_ID < 1) + set_Value (COLUMNNAME_AD_LabelStyle_ID, null); + else + set_Value (COLUMNNAME_AD_LabelStyle_ID, Integer.valueOf(AD_LabelStyle_ID)); + } + + /** Get Label Style. + @return Label CSS Style + */ + public int getAD_LabelStyle_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LabelStyle_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 Can Be Used in All Tables. + @param IsCanBeUsedInAllTables Can Be Used in All Tables + */ + public void setIsCanBeUsedInAllTables (boolean IsCanBeUsedInAllTables) + { + set_Value (COLUMNNAME_IsCanBeUsedInAllTables, Boolean.valueOf(IsCanBeUsedInAllTables)); + } + + /** Get Can Be Used in All Tables. + @return Can Be Used in All Tables */ + public boolean isCanBeUsedInAllTables() + { + Object oo = get_Value(COLUMNNAME_IsCanBeUsedInAllTables); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** 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); + } +} \ No newline at end of file diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_LabelCategoryTable.java b/org.adempiere.base/src/org/compiere/model/X_AD_LabelCategoryTable.java new file mode 100644 index 0000000000..7ea4bf9198 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/X_AD_LabelCategoryTable.java @@ -0,0 +1,192 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 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; + +/** Generated Model for AD_LabelCategoryTable + * @author iDempiere (generated) + * @version Release 10 - $Id$ */ +@org.adempiere.base.Model(table="AD_LabelCategoryTable") +public class X_AD_LabelCategoryTable extends PO implements I_AD_LabelCategoryTable, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 20220525L; + + /** Standard Constructor */ + public X_AD_LabelCategoryTable (Properties ctx, int AD_LabelCategoryTable_ID, String trxName) + { + super (ctx, AD_LabelCategoryTable_ID, trxName); + /** if (AD_LabelCategoryTable_ID == 0) + { + setAD_LabelCategory_ID (0); + setAD_Table_ID (0); + } */ + } + + /** Standard Constructor */ + public X_AD_LabelCategoryTable (Properties ctx, int AD_LabelCategoryTable_ID, String trxName, String ... virtualColumns) + { + super (ctx, AD_LabelCategoryTable_ID, trxName, virtualColumns); + /** if (AD_LabelCategoryTable_ID == 0) + { + setAD_LabelCategory_ID (0); + setAD_Table_ID (0); + } */ + } + + /** Load Constructor */ + public X_AD_LabelCategoryTable (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + 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() + { + StringBuilder sb = new StringBuilder ("X_AD_LabelCategoryTable[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public org.compiere.model.I_AD_LabelCategory getAD_LabelCategory() throws RuntimeException + { + return (org.compiere.model.I_AD_LabelCategory)MTable.get(getCtx(), org.compiere.model.I_AD_LabelCategory.Table_ID) + .getPO(getAD_LabelCategory_ID(), get_TrxName()); + } + + /** Set Label Category. + @param AD_LabelCategory_ID Category of a Label + */ + public void setAD_LabelCategory_ID (int AD_LabelCategory_ID) + { + if (AD_LabelCategory_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_LabelCategory_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_LabelCategory_ID, Integer.valueOf(AD_LabelCategory_ID)); + } + + /** Get Label Category. + @return Category of a Label + */ + public int getAD_LabelCategory_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LabelCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Label Category Table Access. + @param AD_LabelCategoryTable_ID Label Category Table Access + */ + public void setAD_LabelCategoryTable_ID (int AD_LabelCategoryTable_ID) + { + if (AD_LabelCategoryTable_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_LabelCategoryTable_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_LabelCategoryTable_ID, Integer.valueOf(AD_LabelCategoryTable_ID)); + } + + /** Get Label Category Table Access. + @return Label Category Table Access */ + public int getAD_LabelCategoryTable_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LabelCategoryTable_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Label Category Table Access. + @param AD_LabelCategoryTable_UU Label Category Table Access + */ + public void setAD_LabelCategoryTable_UU (String AD_LabelCategoryTable_UU) + { + set_ValueNoCheck (COLUMNNAME_AD_LabelCategoryTable_UU, AD_LabelCategoryTable_UU); + } + + /** Get Label Category Table Access. + @return Label Category Table Access */ + public String getAD_LabelCategoryTable_UU() + { + return (String)get_Value(COLUMNNAME_AD_LabelCategoryTable_UU); + } + + public org.compiere.model.I_AD_Table getAD_Table() throws RuntimeException + { + return (org.compiere.model.I_AD_Table)MTable.get(getCtx(), org.compiere.model.I_AD_Table.Table_ID) + .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(); + } + + /** 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); + } +} \ No newline at end of file diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADWindowToolbar.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADWindowToolbar.java index 5a8628610f..d68841cb20 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADWindowToolbar.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADWindowToolbar.java @@ -124,6 +124,8 @@ public class ADWindowToolbar extends FToolbar implements EventListener private ToolBarButton btnChat; private ToolBarButton btnPostIt; + + private ToolBarButton btnLabel; private ToolBarButton btnCustomize; @@ -232,6 +234,7 @@ public class ADWindowToolbar extends FToolbar implements EventListener btnAttachment = createButton("Attachment", "Attachment", "Attachment"); btnPostIt = createButton("PostIt", "PostIt", "PostIt"); btnChat = createButton("Chat", "Chat", "Chat"); + btnLabel = createButton("Label", "Label", "Label"); btnGridToggle = createButton("Toggle", "Multi", "Toggle"); btnGridToggle.setTooltiptext(btnGridToggle.getTooltiptext()+ " Alt+T"); btnParentRecord = createButton("ParentRecord", "Parent", "ParentRecord"); @@ -735,6 +738,15 @@ public class ADWindowToolbar extends FToolbar implements EventListener { this.btnPostIt.setDisabled(!enabled); } + + /** + * Enable/disable the label button + * @param enabled + */ + public void enableLabel(boolean enabled) + { + this.btnLabel.setDisabled(!enabled); + } public Event getEvent() { diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java index 04abd299e3..7555a88bc4 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java @@ -83,6 +83,7 @@ import org.adempiere.webui.util.ZKUpdateUtil; import org.adempiere.webui.window.CustomizeGridViewDialog; import org.adempiere.webui.window.FDialog; import org.adempiere.webui.window.FindWindow; +import org.adempiere.webui.window.LabelAction; import org.adempiere.webui.window.WChat; import org.adempiere.webui.window.WPostIt; import org.adempiere.webui.window.WRecordAccessDialog; @@ -1135,7 +1136,16 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements LayoutUtils.openOverlappedWindow(getComponent(), postit, "middle_center"); postit.showWindow(); } - + + /** + * Open Label panel + */ + public void onLabel() { + toolbar.setPressed("Label",false); + LabelAction labelAction = new LabelAction(this); + labelAction.show(); + } + /** * @see ToolbarListener#onToggle() */ @@ -1911,11 +1921,14 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements toolbar.setPressed("Chat",adTabbox.getSelectedGridTab().hasChat()); toolbar.enablePostIt(true); toolbar.setPressed("PostIt",adTabbox.getSelectedGridTab().hasPostIt()); + toolbar.enableLabel(true); + toolbar.setPressed("Label",adTabbox.getSelectedGridTab().hasLabel()); } else { toolbar.enableChat(false); toolbar.enablePostIt(false); + toolbar.enableLabel(false); } // Elaine 2008/12/05 diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/LabelsSearch.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/LabelsSearch.java new file mode 100644 index 0000000000..3b6f103f64 --- /dev/null +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/LabelsSearch.java @@ -0,0 +1,171 @@ +/*********************************************************************** + * 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: * + * - Nicolas Micoud (TGI) * + * - Alan Lescano * + * - Norbert Bede * + **********************************************************************/ +package org.adempiere.webui.apps; + +import org.adempiere.webui.ClientInfo; +import org.adempiere.webui.apps.LabelsSearchController.LabelItem; +import org.adempiere.webui.component.Bandbox; +import org.adempiere.webui.util.ZKUpdateUtil; +import org.compiere.util.Env; +import org.compiere.util.Msg; +import org.zkoss.zk.ui.Page; +import org.zkoss.zk.ui.event.Event; +import org.zkoss.zk.ui.event.EventListener; +import org.zkoss.zk.ui.event.Events; +import org.zkoss.zk.ui.event.InputEvent; +import org.zkoss.zk.ui.event.KeyEvent; +import org.zkoss.zk.ui.util.Clients; +import org.zkoss.zul.Bandpopup; +import org.zkoss.zul.Div; + +public class LabelsSearch extends Div implements EventListener { + private static final long serialVersionUID = -8793878697269469837L; + private static final String ON_ENTER_KEY = "onEnterKey"; + private static final String ON_CREATE_ECHO = "onCreateEcho"; + private static final String ON_SEARCH = "onSearch"; + private Bandbox bandbox; + private LabelsSearchController controller; + + /** + * Standard constructot + * @param controller + */ + public LabelsSearch(LabelsSearchController controller) { + this.controller = controller; + init(); + } + + private void init() { + bandbox = new Bandbox(); + appendChild(bandbox); + ZKUpdateUtil.setWidth(bandbox, "100%"); + bandbox.setAutodrop(true); + bandbox.setId("labelsSearchBox"); + bandbox.addEventListener(Events.ON_CHANGING, this); + bandbox.addEventListener(Events.ON_CHANGE, this); + bandbox.setCtrlKeys("#up#down"); + bandbox.addEventListener(Events.ON_CTRL_KEY, this); + bandbox.setPlaceholder(Msg.getMsg(Env.getCtx(),"TypeToSearchOrCreate")); + + Bandpopup popup = new Bandpopup(); + ZKUpdateUtil.setWindowHeightX(popup, 100); + ZKUpdateUtil.setWindowWidthX(popup, 176); + bandbox.appendChild(popup); + controller.create(popup); + + addEventListener(ON_SEARCH, this); + addEventListener(ON_CREATE_ECHO, this); + addEventListener(LabelsSearchController.ON_POST_SELECT_LABELITEM_EVENT, this); + bandbox.addEventListener(ON_ENTER_KEY, this); + } + + @Override + public void onEvent(Event event) throws Exception { + if (Events.ON_CHANGING.equals(event.getName())) { + InputEvent inputEvent = (InputEvent) event; + String value = inputEvent.getValue(); + bandbox.setAttribute("last.onchanging", value); + Events.postEvent(ON_SEARCH, this, value); + } else if (Events.ON_CHANGE.equals(event.getName())) { + bandbox.removeAttribute("last.onchanging"); + } else if (Events.ON_CTRL_KEY.equals(event.getName())) { + KeyEvent ke = (KeyEvent) event; + if (ke.getKeyCode() == KeyEvent.UP) { + if (bandbox.getFirstChild().isVisible()) { + LabelItem selected = controller.selectPrior(); + + if (selected != null) { + bandbox.setText(selected.getLabel()); + } + } + } else if (ke.getKeyCode() == KeyEvent.DOWN) { + if (bandbox.getFirstChild().isVisible()) { + LabelItem selected = controller.selectNext(); + + if (selected != null) { + bandbox.setText(selected.getLabel()); + } + } + } + } else if (event.getName().equals(ON_SEARCH)) { + String value = (String) event.getData(); + controller.search(value); + bandbox.focus(); + } else if (event.getName().equals(ON_CREATE_ECHO)) { + StringBuilder script = new StringBuilder("jq('#") + .append(bandbox.getUuid()) + .append("').bind('keydown', function(e) {var code=e.keyCode||e.which;if(code==13){") + .append("var widget=zk.Widget.$(this);") + .append("var event=new zk.Event(widget,'") + .append(ON_ENTER_KEY) + .append("',{},{toServer:true});") + .append("zAu.send(event);") + .append("}});"); + Clients.evalJavaScript(script.toString()); + } else if (event.getName().equals(ON_ENTER_KEY)) { + if (event.getTarget() instanceof Bandbox) { + controller.onSelect(controller.getSelectedItem()); + } + } else if (event.getName().equals(Events.ON_SELECT)) { + String value = (String) bandbox.getAttribute("last.onchanging"); + if (value == null) { + value = bandbox.getValue(); + } + + Events.postEvent(ON_SEARCH, this, value); + } + + if (event.getName().equals(LabelsSearchController.ON_POST_SELECT_LABELITEM_EVENT)) { + closePopup(); + bandbox.focus(); + bandbox.setText(null); + bandbox.setValue(null); + } + } + + @Override + public void onPageAttached(Page newpage, Page oldpage) { + super.onPageAttached(newpage, oldpage); + Events.echoEvent(ON_CREATE_ECHO, this, null); + } + + /** + * Close the search dropdown + */ + public void closePopup() { + if (bandbox != null) { + bandbox.close(); + } + } + + /** + * Set height of the search dropdown + */ + public void onClientInfo() { + ZKUpdateUtil.setWindowHeightX(bandbox.getDropdown(), ClientInfo.get().desktopHeight-50); + } +} diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/LabelsSearchController.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/LabelsSearchController.java new file mode 100644 index 0000000000..d1dd6ffc02 --- /dev/null +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/LabelsSearchController.java @@ -0,0 +1,390 @@ +/*********************************************************************** + * 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: * + * - Nicolas Micoud (TGI) * + * - Alan Lescano * + * - Norbert Bede * + **********************************************************************/ +package org.adempiere.webui.apps; + +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import org.adempiere.exceptions.AdempiereException; +import org.adempiere.webui.component.Label; +import org.adempiere.webui.component.ListHead; +import org.adempiere.webui.component.ListItem; +import org.adempiere.webui.component.Listbox; +import org.adempiere.webui.panel.LabelsPanel; +import org.adempiere.webui.theme.ThemeManager; +import org.adempiere.webui.util.ZKUpdateUtil; +import org.compiere.model.MLabel; +import org.compiere.model.MLabelAssignment; +import org.compiere.util.DB; +import org.compiere.util.Env; +import org.compiere.util.Util; +import org.zkoss.zk.ui.Component; +import org.zkoss.zk.ui.event.Event; +import org.zkoss.zk.ui.event.EventListener; +import org.zkoss.zk.ui.event.Events; +import org.zkoss.zk.ui.util.Clients; +import org.zkoss.zul.ListModel; +import org.zkoss.zul.ListModelList; +import org.zkoss.zul.Listcell; +import org.zkoss.zul.Listheader; +import org.zkoss.zul.Listitem; +import org.zkoss.zul.ListitemRenderer; +import org.zkoss.zul.ListitemRendererExt; +import org.zkoss.zul.Vlayout; + +public class LabelsSearchController implements EventListener{ + public static final String ON_POST_SELECT_LABELITEM_EVENT = "onPostSelectLabelitem"; + private static final String ON_SEARCH_ECHO = "onSearchEcho"; + private static final String ON_LOAD_MORE = "onLoadMore"; + private Component parent; + private Listbox listbox; + private ListModelList model; + private Vlayout layout; + private LabelsPanel labelsPanel; + + /** + * Standard constructor + * @param labelsPanel + */ + public LabelsSearchController(LabelsPanel labelsPanel) { + this.labelsPanel = labelsPanel; + } + + /** + * Create the controller for the search field + * @param parent + */ + public void create(Component parent) { + this.parent = parent; + + layout = new Vlayout(); + ZKUpdateUtil.setHeight(layout, "100%"); + parent.appendChild(layout); + + listbox = new Listbox(); + listbox.setItemRenderer(new LabelItemRenderer()); + listbox.setStyle("border: none"); + ZKUpdateUtil.setWidth(listbox, "100%"); + ZKUpdateUtil.setVflex(listbox, "true"); + layout.appendChild(listbox); + listbox.addEventListener(Events.ON_SELECT, this); + listbox.addEventListener(ON_POST_SELECT_LABELITEM_EVENT, this); + ListHead listhead = new ListHead(); + listbox.appendChild(listhead); + Listheader listheader = new Listheader(); + listhead.appendChild(listheader); + listheader = new Listheader(); + listheader.setAlign("center"); + listheader.setValign("middle"); + ZKUpdateUtil.setWidth(listheader, "30px"); + listhead.appendChild(listheader); + + layout.addEventListener(ON_SEARCH_ECHO, this); + layout.addEventListener(ON_LOAD_MORE, this); + } + + @Override + public void onEvent(Event event) throws Exception { + if (event.getName().equals(ON_SEARCH_ECHO)) { + onSearchEcho((String) event.getData()); + } else if (Events.ON_CLICK.equals(event.getName())) { + if (event.getTarget() instanceof ListItem) { + ListItem item = (ListItem) event.getTarget(); + LabelItem labelItem = item.getValue(); + onSelect(labelItem); + } + } + } + + /** + * Search for a given text + * @param value + */ + public void search(String value) { + listbox.setModel((ListModel)null); + Events.echoEvent(ON_SEARCH_ECHO, layout, value); + } + + /** + * Search for a given text + * @param value + */ + public void onSearchEcho(String value) { + ListModelList newModel = null; + + if (Util.isEmpty(value)) { + newModel = model; + } else { + newModel = new ListModelList(); + + boolean found = false; + int currentIndex = 0; + int foundIndex = 0; + + String sql = "SELECT" + + " AD_Label.AD_Label_ID," + + " AD_Label.Name," + + " COUNT(AD_LabelAssignment.*)," + + " CASE " + + " WHEN AD_Label.AD_LabelCategory_ID > 0 AND AD_LabelCategory.IsCanBeUsedInAllTables = 'N'" + + " AND AD_LabelCategoryTable.AD_Table_ID <> ? THEN 'N'" + + " ELSE 'Y'" + + " END AS IsAllowed" + + " FROM AD_Label" + + " LEFT JOIN AD_LabelAssignment ON AD_LabelAssignment.AD_Label_ID = AD_Label.AD_Label_ID" + + " LEFT JOIN AD_LabelCategory ON AD_LabelCategory.AD_LabelCategory_ID = AD_LabelCategory.AD_LabelCategory_ID" + + " LEFT JOIN AD_LabelCategoryTable ON AD_LabelCategoryTable.AD_LabelCategory_ID = AD_LabelCategory.AD_LabelCategory_ID" + + " WHERE AD_Label.AD_Client_ID = ? AND AD_Label.Name ILIKE ?" + + " GROUP BY AD_Label.AD_Label_ID, AD_Label.Name, IsAllowed" + + " ORDER BY COUNT(AD_LabelAssignment.*) DESC"; + //+ " FETCH FIRST 15 ROWS ONLY"; + + PreparedStatement pstmt = null; + ResultSet rs = null; + + try { + pstmt = DB.prepareStatement(sql, null); + pstmt.setInt(1, labelsPanel.getAD_Table_ID()); + pstmt.setInt(2, Env.getAD_Client_ID(Env.getCtx())); + pstmt.setString(3, "%" + value + "%"); + + rs = pstmt.executeQuery(); + + while (rs.next()) { + LabelItem i = new LabelItem(rs.getInt(1), rs.getString(2), rs.getInt(3), rs.getBoolean(4)); + newModel.add(i); + + if (rs.getString(2).toUpperCase().equals(value.toUpperCase())) { + found = true; + foundIndex = currentIndex; + } + + currentIndex++; + } + } catch (SQLException e) { + throw new AdempiereException(e); + } finally { + DB.close(rs, pstmt); + rs = null; + pstmt = null; + } + + if (!found) { + LabelItem i = new LabelItem(0, value, 0, true); + newModel.add(i); + } + + listbox.setModel(newModel); + listbox.setSelectedIndex(foundIndex); + } + } + + /** + * Assign the selected label to the record. If doesn't exist, create the label. + * @param item + */ + public void onSelect(LabelItem item) { + if (item == null || !item.isAllowed()) + return; + + MLabel label = null; + + if (item.getC_Label_ID() > 0) { + label = new MLabel(Env.getCtx(), item.getC_Label_ID(), null); + } else { + // Try to find an existing label before creating a new one + label = MLabel.getByName(Env.getCtx(), item.getLabel(), null); + + if (label == null) { + label = new MLabel(Env.getCtx(), 0, null); + } + } + + if (label.get_ID() <= 0) { + label.setAD_Org_ID(0); + label.setName(item.getLabel()); + label.saveEx(); + } + + // Assign + if (!MLabelAssignment.hasLabelAssignment(label.get_ID(), + labelsPanel.getAD_Table_ID(), + labelsPanel.getRecord_ID())) { + MLabelAssignment assign = new MLabelAssignment(Env.getCtx(), 0, null); + assign.setAD_Org_ID(label.getAD_Org_ID()); + assign.setAD_Label_ID(label.get_ID()); + assign.setAD_Table_ID(labelsPanel.getAD_Table_ID()); + assign.setRecord_ID(labelsPanel.getRecord_ID()); + assign.saveEx(); + } + + Events.echoEvent(ON_POST_SELECT_LABELITEM_EVENT, labelsPanel, item); + Events.echoEvent(ON_POST_SELECT_LABELITEM_EVENT, parent.getParent().getParent(), item); + } + + /** + * Get the selected item in the search results + * @return selected label or null + */ + public LabelItem getSelectedItem() { + ListItem selected = listbox.getSelectedItem(); + if (selected == null) return null; + return selected.getValue(); + } + + /** + * Select the previous item in the search results + * @return previous label or null + */ + public LabelItem selectPrior() { + int i = listbox.getSelectedIndex(); + if (i > 0) { + listbox.setSelectedIndex(i-1); + ListItem selected = listbox.getSelectedItem(); + if (selected == null) return null; + Clients.scrollIntoView(selected); + LabelItem item = selected.getValue(); + return item; + } + return null; + } + + /** + * Select the next item in the search results + * @return next label or null + */ + public LabelItem selectNext() { + int i = listbox.getSelectedIndex(); + if (i < 0 && listbox.getItemCount() > 0) { + listbox.setSelectedIndex(0); + ListItem selected = listbox.getSelectedItem(); + if (selected == null) return null; + LabelItem item = selected.getValue(); + return item; + } else if (i+1 < listbox.getItemCount()) { + listbox.setSelectedIndex(i+1); + ListItem selected = listbox.getSelectedItem(); + if (selected == null) return null; + LabelItem item = selected.getValue(); + if (item == null) return null; + Clients.scrollIntoView(selected); + return item; + } + return null; + } + + /** + * Search result item + */ + public class LabelItem { + private String label; + private int C_Label_ID; + private int countUsed; + private boolean isAllowed; + + public LabelItem(int C_Label_ID, String label, int countUsed, boolean isAllowed) { + this.label = label; + this.C_Label_ID = C_Label_ID; + this.countUsed = countUsed; + this.isAllowed = isAllowed; + } + + public String getLabel() { + return label; + } + + public int getC_Label_ID() { + return C_Label_ID; + } + + public int getCountUsed() { + return countUsed; + } + + public boolean isAllowed() { + return isAllowed; + } + } + + private class LabelItemRenderer implements ListitemRenderer, ListitemRendererExt { + @Override + public Listitem newListitem(org.zkoss.zul.Listbox listbox) { + return new ListItem(); + } + + @Override + public Listcell newListcell(Listitem item) { + return new Listcell(item.getLabel()); + } + + @Override + public int getControls() { + return ListitemRendererExt.DETACH_ON_RENDER; + } + + @Override + public void render(Listitem item, LabelItem data, int index) + throws Exception { + Label labelName = new Label(data.getLabel()); + labelName.setStyle("color: " + MLabel.calculateHexColor(data.getLabel())); + + Listcell cell = new Listcell(); + cell.appendChild(labelName); + + if (data.getC_Label_ID() > 0) { + Label labelCountUsed = new Label("(" + data.getCountUsed() + ")"); + labelCountUsed.setStyle("color: #909090; margin-left: 4px;"); + cell.appendChild(labelCountUsed); + } + + if (!data.isAllowed()) + item.setDisabled(true); + + item.appendChild(cell); + item.setValue(data); + item.addEventListener(Events.ON_CLICK, LabelsSearchController.this); + + Listcell cell2 = new Listcell(); + + if (data.getC_Label_ID() <= 0) { + if (ThemeManager.isUseFontIconForImage()) + cell2.setIconSclass("z-icon-New"); + else + cell2.setImage(ThemeManager.getThemeResource("images/New16.png")); + } else { + if (!data.isAllowed()) { + if (ThemeManager.isUseFontIconForImage()) + cell2.setIconSclass("z-icon-NotAllowed"); + else + cell2.setImage(ThemeManager.getThemeResource("images/Cancel16.png")); + } + } + + item.appendChild(cell2); + } + } +} diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/LabelsPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/LabelsPanel.java new file mode 100644 index 0000000000..ce469fa012 --- /dev/null +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/LabelsPanel.java @@ -0,0 +1,146 @@ +/*********************************************************************** + * 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: * + * - Nicolas Micoud (TGI) * + * - Alan Lescano * + * - Norbert Bede * + **********************************************************************/ +package org.adempiere.webui.panel; + +import java.util.ArrayList; +import java.util.List; + +import org.adempiere.webui.adwindow.AbstractADWindowContent; +import org.adempiere.webui.apps.LabelsSearchController; +import org.adempiere.webui.component.Label; +import org.adempiere.webui.component.ZkCssHelper; +import org.compiere.model.MLabel; +import org.compiere.model.MLabelAssignment; +import org.compiere.model.Query; +import org.compiere.util.Env; +import org.zkoss.zk.ui.Component; +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; +import org.zkoss.zul.Groupbox; + +public class LabelsPanel extends Div implements EventListener { + private static final long serialVersionUID = 2232899183255702050L; + private AbstractADWindowContent abstractADWindowContent; + private int AD_Table_ID; + private int Record_ID; + + /** + * Standard constructor + * @param abstractADWindowContent + * @param AD_Table_ID + * @param Record_ID + */ + public LabelsPanel(AbstractADWindowContent abstractADWindowContent, int AD_Table_ID, int Record_ID) { + this.abstractADWindowContent = abstractADWindowContent; + this.AD_Table_ID = AD_Table_ID; + this.Record_ID = Record_ID; + setStyle("padding:0px 5px;"); + addEventListener(LabelsSearchController.ON_POST_SELECT_LABELITEM_EVENT, this); + update(); + } + + /** + * Get current table id + * @return id + */ + public int getAD_Table_ID() { + return AD_Table_ID; + } + + /** + * Get current record id + * @return + */ + public int getRecord_ID() { + return Record_ID; + } + + @Override + public void onEvent(Event event) throws Exception { + if (event.getName().equals(LabelsSearchController.ON_POST_SELECT_LABELITEM_EVENT)) { + update(); + } + } + + private void update() { + // Clear children + List children = new ArrayList(getChildren()); + + for (Component child : children) { + this.removeChild(child); + } + + // Query + List assignmentsList = new Query(Env.getCtx(), + MLabelAssignment.Table_Name, "AD_Table_ID=? AND Record_ID=?", null) + .setParameters(AD_Table_ID, Record_ID) + .setOrderBy(MLabelAssignment.COLUMNNAME_Created) + .list(); + + for (MLabelAssignment assignment : assignmentsList) { + Div d = new Div(); + ZkCssHelper.appendStyle(d, "float: left;"); + + LabelPill gb = new LabelPill(assignment); + d.appendChild(gb); + appendChild(d); + } + + abstractADWindowContent.getToolbar().setPressed("Label",abstractADWindowContent.getActiveGridTab().hasLabel()); + } + + private class LabelPill extends Groupbox { + private static final long serialVersionUID = -2248242199670448950L; + + public LabelPill(MLabelAssignment assignment) { + setContentStyle("border: none; padding: 0px 4px 6px 4px;"); + + MLabel label = new MLabel(assignment.getCtx(), assignment.getAD_Label_ID(), assignment.get_TrxName()); + + Label name = new Label(label.getName()); + ZkCssHelper.appendStyle(name, label.buildStyle()); + appendChild(name); + + Label closeButton = new Label("x"); + ZkCssHelper.appendStyle(closeButton, + "cursor: pointer; margin:3px; font-size: 10px; font-weight: bold; color: #909090; vertical-align: super;"); + appendChild(closeButton); + + closeButton.addEventListener(Events.ON_CLICK, new EventListener() { + @Override + public void onEvent(Event event) throws Exception { + if (Events.ON_CLICK.equals(event.getName())) { + assignment.deleteEx(true); + LabelsPanel.this.update(); + } + } + }); + } + } +} diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/LabelAction.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/LabelAction.java new file mode 100644 index 0000000000..9759dd15c6 --- /dev/null +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/LabelAction.java @@ -0,0 +1,84 @@ +/*********************************************************************** + * 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: * + * - Nicolas Micoud (TGI) * + * - Alan Lescano * + * - Norbert Bede * + **********************************************************************/ +package org.adempiere.webui.window; + +import org.adempiere.webui.LayoutUtils; +import org.adempiere.webui.adwindow.AbstractADWindowContent; +import org.adempiere.webui.apps.LabelsSearch; +import org.adempiere.webui.apps.LabelsSearchController; +import org.adempiere.webui.component.Window; +import org.adempiere.webui.component.ZkCssHelper; +import org.adempiere.webui.panel.LabelsPanel; +import org.adempiere.webui.util.ZKUpdateUtil; +import org.zkoss.zul.Popup; +import org.zkoss.zul.impl.LabelImageElement; + +public class LabelAction { + private AbstractADWindowContent panel; + private Window window = null; + private LabelsPanel labelsPanel; + + /** + * Standard constructor + * @param panel + */ + public LabelAction(AbstractADWindowContent panel) { + this.panel = panel; + int AD_Table_ID = panel.getActiveGridTab().getAD_Table_ID(); + int Record_ID = panel.getActiveGridTab().getRecord_ID(); + labelsPanel = new LabelsPanel(panel, AD_Table_ID, Record_ID); + } + + /** + * Open the popup window + */ + public void show() { + if(window == null) { + window = new Window(); + ZKUpdateUtil.setWindowWidthX(window, 200); + window.setClosable(true); + window.setBorder("normal"); + window.setStyle("position:absolute"); + window.addCallback(Window.AFTER_PAGE_DETACHED, t -> panel.focusToLastFocusEditor()); + LabelsSearchController controller = new LabelsSearchController(labelsPanel); + LabelsSearch globalSearch = new LabelsSearch(controller); + ZkCssHelper.appendStyle(globalSearch, "display: flex; flex-direction: column; margin: 8px; margin-top: 5px;"); + window.appendChild(globalSearch); + window.appendChild(labelsPanel); + } + + LabelImageElement toolbarItem = panel.getToolbar().getToolbarItem("Label"); + Popup popup = LayoutUtils.findPopup(toolbarItem); + + if (popup != null) + popup.appendChild(window); + + LayoutUtils.openPopupWindow(toolbarItem, window, "after_start"); + window.setFocus(true); + panel.getToolbar().setPressed("Label", panel.getADTab().getSelectedGridTab().hasLabel()); + } +} \ No newline at end of file diff --git a/org.adempiere.ui.zk/WEB-INF/src/web/theme/default/css/fragment/font-icons.css.dsp b/org.adempiere.ui.zk/WEB-INF/src/web/theme/default/css/fragment/font-icons.css.dsp index c57bef8ed1..3ae458219d 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/web/theme/default/css/fragment/font-icons.css.dsp +++ b/org.adempiere.ui.zk/WEB-INF/src/web/theme/default/css/fragment/font-icons.css.dsp @@ -226,6 +226,12 @@ .z-icon-PostIt:before { content: "\f24a"; } +.z-icon-Label:before { + content: "\f02b"; +} +.z-icon-NotAllowed:before { + content: "\f05e"; +} .z-icon-Preference:before { content: "\f085"; }