diff --git a/migration/i1.0a-release/oracle/201303041619_TICKET-1001763_1099Extract.sql b/migration/i1.0a-release/oracle/201303041619_TICKET-1001763_1099Extract.sql new file mode 100644 index 0000000000..d0b34c6b74 --- /dev/null +++ b/migration/i1.0a-release/oracle/201303041619_TICKET-1001763_1099Extract.sql @@ -0,0 +1,6826 @@ +-- Feb 28, 2013 5:11:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','3',0,200067,'N','N','N','D','L','b7e5140c-ab39-458b-a41f-e4153099ea31','Y','Y','T_1099EXTRACT','1099 Extract',0,'Y',0,TO_DATE('2013-02-28 17:11:23','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2013-02-28 17:11:23','YYYY-MM-DD HH24:MI:SS')) +; + +-- Feb 28, 2013 5:11:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200067 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Feb 28, 2013 5:11:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200062,'81ceacea-ec37-4fdc-bf07-3e23825847f0','Table T_1099EXTRACT','T_1099EXTRACT',1,0,0,TO_DATE('2013-02-28 17:11:25','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-02-28 17:11:25','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +-- Feb 28, 2013 5:14:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208612,'D','Y','N','N','N',22,'N',19,129,'N',102,'N','Y','64e0933a-ee44-4792-b4f4-a81c48fcb62f','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',100,TO_DATE('2013-02-28 17:14:14','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:14:14','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208612 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208613,'D','N','N','N','N',22,'N',19,104,'N',113,'N','Y','2371e4ab-9651-4548-8bc3-72785066de20','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',100,TO_DATE('2013-02-28 17:14:15','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:14:15','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208613 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208614,'D','Y','N','N','N',22,'N',19,'N',114,'N','Y','8c02bdb7-52f4-4ef5-9e72-4f79d34efb39','N','AD_PInstance_ID','Instance of the process','Process Instance','Y',100,TO_DATE('2013-02-28 17:14:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:14:16','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208614 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208615,'D','Y','N','N','N',7,'N',16,'N',245,'N','Y','ca699748-dda5-48ac-a1f5-0dc60248b961','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',100,TO_DATE('2013-02-28 17:14:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:14:17','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208615 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208616,'D',110,'Y','N','N','N',22,'N',18,'N',246,'N','Y','222c0cc8-8da4-41ba-82bf-348e357d5c3e','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',100,TO_DATE('2013-02-28 17:14:18','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:14:18','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208616 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208617,'D','Y','N','N','N',22,'N',13,'N',885,'N','Y','f6d03f2c-05f6-4dda-9303-bc7c61126236','N','Fact_Acct_ID','Accounting Fact','Y',100,TO_DATE('2013-02-28 17:14:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:14:19','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208617 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'Y',200067,208618,'D','Y','N','N','N',1,'N',20,'N',348,'N','Y','8e584bb3-f5d6-432e-9043-3095cedca362','Y','IsActive','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.','Active','N',100,TO_DATE('2013-02-28 17:14:29','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:14:29','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208618 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'Y',200067,208619,'D','N','N','N','N',60,'N',10,'N',54274,'N','Y','ae996471-7891-418e-b0bd-d0aee1efdb1f','Y','MatchCode','String identifying related accounting facts','Match Code','Y',100,TO_DATE('2013-02-28 17:14:30','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:14:30','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208619 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('T_1099EXTRACT_UU',202222,'D','T_1099EXTRACT_UU','T_1099EXTRACT_UU','0847dcfe-2de6-42ad-bb09-a8cfa45b76c7',0,TO_DATE('2013-02-28 17:14:31','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:14:31','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:14:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202222 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:14:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1.00,'N',200067,208620,'D','N','N','N','N',36,'N',10,'N',202222,'N','Y','f5587b87-26dd-4f59-a18e-303374c94bfb','Y','T_1099EXTRACT_UU','T_1099EXTRACT_UU','N',100,TO_DATE('2013-02-28 17:14:31','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:14:31','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208620 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208621,'D','Y','N','N','N',7,'N',16,'N',607,'N','Y','0863b847-41d8-4bbd-a01c-b4aa515e31cb','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',100,TO_DATE('2013-02-28 17:14:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:14:34','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208621 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208622,'D',110,'Y','N','N','N',22,'N',18,'N',608,'N','Y','ec31ca00-7fef-49a4-bcbf-3bb16abf217e','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',100,TO_DATE('2013-02-28 17:14:39','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:14:39','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208622 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:16:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208617 +; + +-- Feb 28, 2013 5:16:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208617 +; + +-- Feb 28, 2013 5:16:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208619 +; + +-- Feb 28, 2013 5:16:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208619 +; + +-- Feb 28, 2013 5:16:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Table SET TableName='T_1099Extract',Updated=TO_DATE('2013-02-28 17:16:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200067 +; + +-- Feb 28, 2013 5:16:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Sequence SET Name='T_1099Extract',Updated=TO_DATE('2013-02-28 17:16:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Sequence_ID=200062 +; + +-- Feb 28, 2013 5:17:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='T_1099Extract_UU', Name='T_1099Extract_UU', PrintName='T_1099Extract_UU',Updated=TO_DATE('2013-02-28 17:17:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202222 +; + +-- Feb 28, 2013 5:17:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202222 +; + +-- Feb 28, 2013 5:17:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='T_1099Extract_UU', Name='T_1099Extract_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202222 +; + +-- Feb 28, 2013 5:17:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='T_1099Extract_UU', Name='T_1099Extract_UU', Description=NULL, Help=NULL, AD_Element_ID=202222 WHERE UPPER(ColumnName)='T_1099EXTRACT_UU' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:17:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='T_1099Extract_UU', Name='T_1099Extract_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202222 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:17:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='T_1099Extract_UU', Name='T_1099Extract_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202222 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:17:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='T_1099Extract_UU', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202222) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:17:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='T_1099Extract_UU', Name='T_1099Extract_UU' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202222) +; + +-- Feb 28, 2013 5:18:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket01',202223,'D','AmtBucket01','AmtBucket01','3f95cb06-95eb-4b8e-bd6f-635008443e5e',0,TO_DATE('2013-02-28 17:18:03','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:18:03','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202223 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:18:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket02',202224,'D','AmtBucket02','AmtBucket02','93ec0f06-ce3b-4003-9833-0408a91e784f',0,TO_DATE('2013-02-28 17:18:14','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:18:14','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202224 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:18:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket03',202225,'D','AmtBucket03','AmtBucket03','00cebd24-b734-4ee3-9452-07cfa0710ded',0,TO_DATE('2013-02-28 17:18:24','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:18:24','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202225 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:18:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket04',202226,'D','AmtBucket04','AmtBucket04','159fdab2-ead3-437a-b9d1-3ab4dd5eba70',0,TO_DATE('2013-02-28 17:18:31','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:18:31','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202226 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:18:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket05',202227,'D','AmtBucket05','AmtBucket05','722e6e4c-d436-4542-861c-f904cdf88916',0,TO_DATE('2013-02-28 17:18:41','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:18:41','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202227 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:18:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket06',202228,'D','AmtBucket06','AmtBucket06','f72f6036-a203-40fc-8a58-1e90604a9162',0,TO_DATE('2013-02-28 17:18:49','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:18:49','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202228 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:18:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket07',202229,'D','AmtBucket07','AmtBucket07','3e3a2321-16f9-4729-9202-9edcee5b9f81',0,TO_DATE('2013-02-28 17:18:58','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:18:58','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202229 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:19:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket08',202230,'D','AmtBucket08','AmtBucket08','afcf8c62-26d8-48de-8ad3-f988caf4b2c9',0,TO_DATE('2013-02-28 17:19:07','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:19:07','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:19:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202230 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket09',202231,'D','AmtBucket09','AmtBucket09','f894edc9-c217-4d98-959b-2aed20865d1d',0,TO_DATE('2013-02-28 17:19:16','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:19:16','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202231 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:19:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket10',202232,'D','AmtBucket10','AmtBucket10','956341ed-1f65-4b46-a37f-224b34c248f8',0,TO_DATE('2013-02-28 17:19:25','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:19:25','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:19:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202232 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:19:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket11',202233,'D','AmtBucket11','AmtBucket11','5d3c9b44-22b6-4a0c-86f8-4d0a04e56efa',0,TO_DATE('2013-02-28 17:19:40','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:19:40','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:19:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202233 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:19:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket12',202234,'D','AmtBucket12','AmtBucket12','28546cdc-256c-4846-a91b-eb8b35b2beaf',0,TO_DATE('2013-02-28 17:19:51','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:19:51','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:19:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202234 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:20:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket13',202235,'D','AmtBucket13','AmtBucket13','423eb35f-a296-49fd-b260-e7c17f845931',0,TO_DATE('2013-02-28 17:20:00','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:20:00','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:20:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202235 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:20:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket14',202236,'D','AmtBucket14','AmtBucket14','b7f7ad31-4936-40c9-af07-e629ae61e841',0,TO_DATE('2013-02-28 17:20:09','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:20:09','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:20:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202236 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:20:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket15',202237,'D','AmtBucket15','AmtBucket15','a9701e04-5e4f-499c-99de-0c6daaf52565',0,TO_DATE('2013-02-28 17:20:20','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:20:20','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:20:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202237 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:20:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket16',202238,'D','AmtBucket16','AmtBucket16','9a86d8fe-cdcd-4f82-82e6-05dcc2634602',0,TO_DATE('2013-02-28 17:20:32','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:20:32','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:20:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202238 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:21:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208623,'D','N','N','N',0,'N',14,'N',12,'N',202223,'N','Y','a284a9d7-0405-4d1e-a8cf-4df4b965809e','Y','AmtBucket01','AmtBucket01','Y',100,TO_DATE('2013-02-28 17:21:12','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:21:12','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:21:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208623 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:22:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208624,'D','N','N','N',0,'N',14,'N',12,'N',202224,'N','Y','4d1223ff-359e-432c-b245-1e94bdd1cc2d','Y','AmtBucket02','AmtBucket02','Y',100,TO_DATE('2013-02-28 17:22:31','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:22:31','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:22:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208624 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:22:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208625,'D','N','N','N',0,'N',14,'N',12,'N',202225,'N','Y','dc942cf0-a661-48e3-a357-c694e0ec253b','Y','AmtBucket03','AmtBucket03','Y',100,TO_DATE('2013-02-28 17:22:46','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:22:46','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:22:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208625 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:23:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208626,'D','N','N','N',0,'N',14,'N',12,'N',202226,'N','Y','5501ac5b-ce89-4656-bb18-7ced1d268eb2','Y','AmtBucket04','AmtBucket04','Y',100,TO_DATE('2013-02-28 17:22:58','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:22:58','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:23:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208626 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:23:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208627,'D','N','N','N',0,'N',14,'N',12,'N',202227,'N','Y','095e5743-3c8f-4616-b02c-e6f056290b21','Y','AmtBucket05','AmtBucket05','Y',100,TO_DATE('2013-02-28 17:23:14','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:23:14','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:23:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208627 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:23:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208628,'D','N','N','N',0,'N',14,'N',12,'N',202228,'N','Y','c7402624-d711-4dc6-8966-0b704c566282','Y','AmtBucket06','AmtBucket06','Y',100,TO_DATE('2013-02-28 17:23:40','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:23:40','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:23:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208628 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:24:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208629,'D','N','N','N',0,'N',14,'N',12,'N',202229,'N','Y','c2d44ee6-bc86-44dc-aeba-053499c2ad0e','Y','AmtBucket07','AmtBucket07','Y',100,TO_DATE('2013-02-28 17:24:11','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:24:11','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:24:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208629 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:24:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208630,'D','N','N','N',0,'N',14,'N',12,'N',202230,'N','Y','93d33eea-66ab-432b-a3fa-97a6c5fda6e8','Y','AmtBucket08','AmtBucket08','Y',100,TO_DATE('2013-02-28 17:24:33','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:24:33','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:24:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208630 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:24:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208631,'D','N','N','N',0,'N',14,'N',12,'N',202231,'N','Y','76abd5dd-026b-4233-b095-9074d275a48c','Y','AmtBucket09','AmtBucket09','Y',100,TO_DATE('2013-02-28 17:24:53','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:24:53','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:24:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208631 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:25:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208632,'D','N','N','N',0,'N',14,'N',12,'N',202232,'N','Y','0c1e00fd-17f2-4001-ad40-f4fb850d02f3','Y','AmtBucket10','AmtBucket10','Y',100,TO_DATE('2013-02-28 17:25:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:25:06','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:25:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208632 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:25:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208633,'D','N','N','N',0,'N',14,'N',12,'N',202233,'N','Y','3699e293-3dc7-472a-b8d6-8c5733f01a6e','Y','AmtBucket11','AmtBucket11','Y',100,TO_DATE('2013-02-28 17:25:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:25:27','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:25:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208633 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:25:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208634,'D','N','N','N',0,'N',14,'N',12,'N',202234,'N','Y','eecec4b3-10f8-4c18-b061-6332430e3698','Y','AmtBucket12','AmtBucket12','Y',100,TO_DATE('2013-02-28 17:25:41','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:25:41','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:25:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208634 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:25:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208635,'D','N','N','N',0,'N',14,'N',12,'N',202235,'N','Y','edd6c6b4-bdd3-4dd6-8878-d24295e69e6a','Y','AmtBucket13','AmtBucket13','Y',100,TO_DATE('2013-02-28 17:25:54','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:25:54','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:25:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208635 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:26:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208636,'D','N','N','N',0,'N',14,'N',12,'N',202236,'N','Y','4fa4fad6-a3ba-44de-aeb5-16e886710116','Y','AmtBucket14','AmtBucket14','Y',100,TO_DATE('2013-02-28 17:26:12','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:26:12','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:26:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208636 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:26:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208637,'D','N','N','N',0,'N',14,'N',12,'N',202237,'N','Y','619558da-eab3-46f6-ab07-82713f90806a','Y','AmtBucket15','AmtBucket15','Y',100,TO_DATE('2013-02-28 17:26:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:26:34','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:26:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208637 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:26:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208638,'D','N','N','N',0,'N',14,'N',12,'N',202238,'N','Y','bd68bcca-2664-4b26-b3d0-b037d26782b7','Y','AmtBucket16','AmtBucket16','Y',100,TO_DATE('2013-02-28 17:26:49','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:26:49','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:26:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208638 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:28:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208639,'D','Y','N','N',0,'N',10,'N',19,'N',187,'N','Y','43c28a21-b9e2-4f61-868f-f524f19818e3','Y','C_BPartner_ID','Identifies a Business Partner','A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Business Partner ','Y',100,TO_DATE('2013-02-28 17:28:35','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:28:35','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:28:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208639 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:30:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208640,'D','N','N','N',0,'N',10,'N',21,'N',202,'N','Y','73055055-97d1-49bd-beed-6af19fd70184','Y','C_Location_ID','Location or Address','The Location / Address field defines the location of an entity.','Address','Y',100,TO_DATE('2013-02-28 17:30:07','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:30:07','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:30:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208640 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:31:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('Cut_Date',202239,'D','Cut Date','Cut Date','fa45128f-8f37-4207-bff5-743026da2431',0,TO_DATE('2013-02-28 17:31:36','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:31:36','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:31:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202239 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:31:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('Cut_Year',202240,'D','Cut Year','Cut Year','2f38f415-f6f0-4b16-8cb2-a0c9ceff95ea',0,TO_DATE('2013-02-28 17:31:52','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:31:52','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:31:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202240 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:32:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 1', PrintName='Amount Bucket 1',Updated=TO_DATE('2013-02-28 17:32:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202223 +; + +-- Feb 28, 2013 5:32:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202223 +; + +-- Feb 28, 2013 5:32:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket01', Name='Amount Bucket 1', Description=NULL, Help=NULL WHERE AD_Element_ID=202223 +; + +-- Feb 28, 2013 5:32:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket01', Name='Amount Bucket 1', Description=NULL, Help=NULL, AD_Element_ID=202223 WHERE UPPER(ColumnName)='AMTBUCKET01' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:32:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket01', Name='Amount Bucket 1', Description=NULL, Help=NULL WHERE AD_Element_ID=202223 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket01', Name='Amount Bucket 1', Description=NULL, Help=NULL WHERE AD_Element_ID=202223 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 1', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202223) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 1', Name='Amount Bucket 1' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202223) +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 2', PrintName='Amount Bucket 2',Updated=TO_DATE('2013-02-28 17:32:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202224 +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202224 +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket02', Name='Amount Bucket 2', Description=NULL, Help=NULL WHERE AD_Element_ID=202224 +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket02', Name='Amount Bucket 2', Description=NULL, Help=NULL, AD_Element_ID=202224 WHERE UPPER(ColumnName)='AMTBUCKET02' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket02', Name='Amount Bucket 2', Description=NULL, Help=NULL WHERE AD_Element_ID=202224 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket02', Name='Amount Bucket 2', Description=NULL, Help=NULL WHERE AD_Element_ID=202224 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 2', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202224) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 2', Name='Amount Bucket 2' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202224) +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 3', PrintName='Amount Bucket 3',Updated=TO_DATE('2013-02-28 17:32:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202225 +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202225 +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket03', Name='Amount Bucket 3', Description=NULL, Help=NULL WHERE AD_Element_ID=202225 +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket03', Name='Amount Bucket 3', Description=NULL, Help=NULL, AD_Element_ID=202225 WHERE UPPER(ColumnName)='AMTBUCKET03' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket03', Name='Amount Bucket 3', Description=NULL, Help=NULL WHERE AD_Element_ID=202225 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket03', Name='Amount Bucket 3', Description=NULL, Help=NULL WHERE AD_Element_ID=202225 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 3', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202225) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 3', Name='Amount Bucket 3' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202225) +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 4', PrintName='Amount Bucket 4',Updated=TO_DATE('2013-02-28 17:32:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202226 +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202226 +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket04', Name='Amount Bucket 4', Description=NULL, Help=NULL WHERE AD_Element_ID=202226 +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket04', Name='Amount Bucket 4', Description=NULL, Help=NULL, AD_Element_ID=202226 WHERE UPPER(ColumnName)='AMTBUCKET04' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket04', Name='Amount Bucket 4', Description=NULL, Help=NULL WHERE AD_Element_ID=202226 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket04', Name='Amount Bucket 4', Description=NULL, Help=NULL WHERE AD_Element_ID=202226 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 4', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202226) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 4', Name='Amount Bucket 4' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202226) +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 5', PrintName='Amount Bucket 5',Updated=TO_DATE('2013-02-28 17:32:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202227 +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202227 +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket05', Name='Amount Bucket 5', Description=NULL, Help=NULL WHERE AD_Element_ID=202227 +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket05', Name='Amount Bucket 5', Description=NULL, Help=NULL, AD_Element_ID=202227 WHERE UPPER(ColumnName)='AMTBUCKET05' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket05', Name='Amount Bucket 5', Description=NULL, Help=NULL WHERE AD_Element_ID=202227 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket05', Name='Amount Bucket 5', Description=NULL, Help=NULL WHERE AD_Element_ID=202227 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 5', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202227) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 5', Name='Amount Bucket 5' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202227) +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 6', PrintName='Amount Bucket 6',Updated=TO_DATE('2013-02-28 17:32:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202228 +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202228 +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket06', Name='Amount Bucket 6', Description=NULL, Help=NULL WHERE AD_Element_ID=202228 +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket06', Name='Amount Bucket 6', Description=NULL, Help=NULL, AD_Element_ID=202228 WHERE UPPER(ColumnName)='AMTBUCKET06' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket06', Name='Amount Bucket 6', Description=NULL, Help=NULL WHERE AD_Element_ID=202228 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket06', Name='Amount Bucket 6', Description=NULL, Help=NULL WHERE AD_Element_ID=202228 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 6', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202228) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 6', Name='Amount Bucket 6' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202228) +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 7', PrintName='Amount Bucket 7',Updated=TO_DATE('2013-02-28 17:33:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202229 +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202229 +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket07', Name='Amount Bucket 7', Description=NULL, Help=NULL WHERE AD_Element_ID=202229 +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket07', Name='Amount Bucket 7', Description=NULL, Help=NULL, AD_Element_ID=202229 WHERE UPPER(ColumnName)='AMTBUCKET07' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket07', Name='Amount Bucket 7', Description=NULL, Help=NULL WHERE AD_Element_ID=202229 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket07', Name='Amount Bucket 7', Description=NULL, Help=NULL WHERE AD_Element_ID=202229 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 7', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202229) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 7', Name='Amount Bucket 7' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202229) +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 8', PrintName='Amount Bucket 8',Updated=TO_DATE('2013-02-28 17:33:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202230 +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202230 +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket08', Name='Amount Bucket 8', Description=NULL, Help=NULL WHERE AD_Element_ID=202230 +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket08', Name='Amount Bucket 8', Description=NULL, Help=NULL, AD_Element_ID=202230 WHERE UPPER(ColumnName)='AMTBUCKET08' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket08', Name='Amount Bucket 8', Description=NULL, Help=NULL WHERE AD_Element_ID=202230 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket08', Name='Amount Bucket 8', Description=NULL, Help=NULL WHERE AD_Element_ID=202230 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 8', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202230) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 8', Name='Amount Bucket 8' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202230) +; + +-- Feb 28, 2013 5:33:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 9', PrintName='Amount Bucket 9',Updated=TO_DATE('2013-02-28 17:33:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202231 +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202231 +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket09', Name='Amount Bucket 9', Description=NULL, Help=NULL WHERE AD_Element_ID=202231 +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket09', Name='Amount Bucket 9', Description=NULL, Help=NULL, AD_Element_ID=202231 WHERE UPPER(ColumnName)='AMTBUCKET09' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket09', Name='Amount Bucket 9', Description=NULL, Help=NULL WHERE AD_Element_ID=202231 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket09', Name='Amount Bucket 9', Description=NULL, Help=NULL WHERE AD_Element_ID=202231 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 9', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202231) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 9', Name='Amount Bucket 9' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202231) +; + +-- Feb 28, 2013 5:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 10', PrintName='Amount Bucket 10',Updated=TO_DATE('2013-02-28 17:33:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202232 +; + +-- Feb 28, 2013 5:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202232 +; + +-- Feb 28, 2013 5:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket10', Name='Amount Bucket 10', Description=NULL, Help=NULL WHERE AD_Element_ID=202232 +; + +-- Feb 28, 2013 5:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket10', Name='Amount Bucket 10', Description=NULL, Help=NULL, AD_Element_ID=202232 WHERE UPPER(ColumnName)='AMTBUCKET10' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket10', Name='Amount Bucket 10', Description=NULL, Help=NULL WHERE AD_Element_ID=202232 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket10', Name='Amount Bucket 10', Description=NULL, Help=NULL WHERE AD_Element_ID=202232 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 10', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202232) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 10', Name='Amount Bucket 10' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202232) +; + +-- Feb 28, 2013 5:34:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 11', PrintName='Amount Bucket 11',Updated=TO_DATE('2013-02-28 17:34:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202233 +; + +-- Feb 28, 2013 5:34:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202233 +; + +-- Feb 28, 2013 5:34:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket11', Name='Amount Bucket 11', Description=NULL, Help=NULL WHERE AD_Element_ID=202233 +; + +-- Feb 28, 2013 5:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket11', Name='Amount Bucket 11', Description=NULL, Help=NULL, AD_Element_ID=202233 WHERE UPPER(ColumnName)='AMTBUCKET11' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket11', Name='Amount Bucket 11', Description=NULL, Help=NULL WHERE AD_Element_ID=202233 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket11', Name='Amount Bucket 11', Description=NULL, Help=NULL WHERE AD_Element_ID=202233 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 11', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202233) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 11', Name='Amount Bucket 11' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202233) +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 12', PrintName='Amount Bucket 12',Updated=TO_DATE('2013-02-28 17:34:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202234 +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202234 +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket12', Name='Amount Bucket 12', Description=NULL, Help=NULL WHERE AD_Element_ID=202234 +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket12', Name='Amount Bucket 12', Description=NULL, Help=NULL, AD_Element_ID=202234 WHERE UPPER(ColumnName)='AMTBUCKET12' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket12', Name='Amount Bucket 12', Description=NULL, Help=NULL WHERE AD_Element_ID=202234 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket12', Name='Amount Bucket 12', Description=NULL, Help=NULL WHERE AD_Element_ID=202234 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 12', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202234) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 12', Name='Amount Bucket 12' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202234) +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 13', PrintName='Amount Bucket 13',Updated=TO_DATE('2013-02-28 17:34:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202235 +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202235 +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket13', Name='Amount Bucket 13', Description=NULL, Help=NULL WHERE AD_Element_ID=202235 +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket13', Name='Amount Bucket 13', Description=NULL, Help=NULL, AD_Element_ID=202235 WHERE UPPER(ColumnName)='AMTBUCKET13' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket13', Name='Amount Bucket 13', Description=NULL, Help=NULL WHERE AD_Element_ID=202235 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket13', Name='Amount Bucket 13', Description=NULL, Help=NULL WHERE AD_Element_ID=202235 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 13', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202235) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 13', Name='Amount Bucket 13' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202235) +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 14', PrintName='Amount Bucket 14',Updated=TO_DATE('2013-02-28 17:34:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202236 +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202236 +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket14', Name='Amount Bucket 14', Description=NULL, Help=NULL WHERE AD_Element_ID=202236 +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket14', Name='Amount Bucket 14', Description=NULL, Help=NULL, AD_Element_ID=202236 WHERE UPPER(ColumnName)='AMTBUCKET14' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket14', Name='Amount Bucket 14', Description=NULL, Help=NULL WHERE AD_Element_ID=202236 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket14', Name='Amount Bucket 14', Description=NULL, Help=NULL WHERE AD_Element_ID=202236 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 14', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202236) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 14', Name='Amount Bucket 14' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202236) +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 15', PrintName='Amount Bucket 15',Updated=TO_DATE('2013-02-28 17:34:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202237 +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202237 +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket15', Name='Amount Bucket 15', Description=NULL, Help=NULL WHERE AD_Element_ID=202237 +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket15', Name='Amount Bucket 15', Description=NULL, Help=NULL, AD_Element_ID=202237 WHERE UPPER(ColumnName)='AMTBUCKET15' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket15', Name='Amount Bucket 15', Description=NULL, Help=NULL WHERE AD_Element_ID=202237 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket15', Name='Amount Bucket 15', Description=NULL, Help=NULL WHERE AD_Element_ID=202237 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 15', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202237) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 15', Name='Amount Bucket 15' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202237) +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 16', PrintName='Amount Bucket 16',Updated=TO_DATE('2013-02-28 17:34:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202238 +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202238 +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket16', Name='Amount Bucket 16', Description=NULL, Help=NULL WHERE AD_Element_ID=202238 +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket16', Name='Amount Bucket 16', Description=NULL, Help=NULL, AD_Element_ID=202238 WHERE UPPER(ColumnName)='AMTBUCKET16' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket16', Name='Amount Bucket 16', Description=NULL, Help=NULL WHERE AD_Element_ID=202238 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket16', Name='Amount Bucket 16', Description=NULL, Help=NULL WHERE AD_Element_ID=202238 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 16', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202238) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Amount Bucket 16', Name='Amount Bucket 16' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202238) +; + +-- Feb 28, 2013 5:36:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208641,'D','N','N','N',0,'N',7,'N',15,'N',202239,'N','Y','5703898c-21ff-4a02-a6b3-9481bd4e76d3','Y','Cut_Date','Cut Date','Y',100,TO_DATE('2013-02-28 17:36:26','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:36:26','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:36:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208641 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:45:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208642,'D','N','N','N',0,'N',14,'N',11,'N',202240,'N','Y','e5f6d496-ecba-4c49-a877-358a30bc700d','Y','Cut_Year','Cut Year','Y',100,TO_DATE('2013-02-28 17:45:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:45:02','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:45:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208642 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:45:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208643,'D','Y','N','Y',0,'N',120,'N',10,'N',469,'N','Y','9843aded-5975-4bac-b207-deefd5a9494f','Y','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.','Name','Y',100,TO_DATE('2013-02-28 17:45:52','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:45:52','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:45:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208643 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:46:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208644,'D','N','N','N',0,'N',20,'N',10,'N',590,'N','Y','3fbf47a2-2eea-4a8d-bb15-1f78c2d44d20','Y','TaxID','Tax Identification','The Tax ID field identifies the legal Identification number of this Entity.','Tax ID','Y',100,TO_DATE('2013-02-28 17:46:31','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:46:31','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:46:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208644 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:47:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208645,'D','Y','N','N',0,'N',40,'N',10,'N',620,'N','Y','cc4527d4-aef7-49b4-9aea-8aa21174841e','Y','Value','Search key for the record in the format required - must be unique','A search key allows you a fast method of finding a particular record. +If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Search Key','Y',100,TO_DATE('2013-02-28 17:47:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:47:17','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:47:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208645 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:47:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +CREATE TABLE T_1099Extract (AD_Client_ID NUMBER(10) NOT NULL, AD_Org_ID NUMBER(10) DEFAULT NULL , AD_PInstance_ID NUMBER(10) NOT NULL, AmtBucket01 NUMBER DEFAULT NULL , AmtBucket02 NUMBER DEFAULT NULL , AmtBucket03 NUMBER DEFAULT NULL , AmtBucket04 NUMBER DEFAULT NULL , AmtBucket05 NUMBER DEFAULT NULL , AmtBucket06 NUMBER DEFAULT NULL , AmtBucket07 NUMBER DEFAULT NULL , AmtBucket08 NUMBER DEFAULT NULL , AmtBucket09 NUMBER DEFAULT NULL , AmtBucket10 NUMBER DEFAULT NULL , AmtBucket11 NUMBER DEFAULT NULL , AmtBucket12 NUMBER DEFAULT NULL , AmtBucket13 NUMBER DEFAULT NULL , AmtBucket14 NUMBER DEFAULT NULL , AmtBucket15 NUMBER DEFAULT NULL , AmtBucket16 NUMBER DEFAULT NULL , C_BPartner_ID NUMBER(10) NOT NULL, C_Location_ID NUMBER(10) DEFAULT NULL , Created DATE NOT NULL, CreatedBy NUMBER(10) NOT NULL, Cut_Date DATE DEFAULT NULL , Cut_Year NUMBER(10) DEFAULT NULL , IsActive CHAR(1) CHECK (IsActive IN ('Y','N')) NOT NULL, Name NVARCHAR2(120) NOT NULL, T_1099Extract_UU NVARCHAR2(36) DEFAULT NULL , TaxID NVARCHAR2(20) DEFAULT NULL , Updated DATE NOT NULL, UpdatedBy NUMBER(10) NOT NULL, Value NVARCHAR2(40) NOT NULL) +; + +-- Feb 28, 2013 5:49:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','3',0,200068,'N','Y','N','D','L','f64362a8-a693-4af3-946f-84b912d5b6eb','Y','N','RV_T_1099Extract','1099 Extract',0,'Y',0,TO_DATE('2013-02-28 17:49:39','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2013-02-28 17:49:39','YYYY-MM-DD HH24:MI:SS')) +; + +-- Feb 28, 2013 5:49:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200068 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Feb 28, 2013 5:49:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200063,'1651c6a3-3e37-4d6d-b82b-d51bc385ec0f','Table RV_T_1099Extract','RV_T_1099Extract',1,0,0,TO_DATE('2013-02-28 17:49:40','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-02-28 17:49:40','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +CREATE OR REPLACE VIEW RV_T_1099Extract AS + SELECT t.ad_pinstance_id, t.ad_client_id, t.ad_org_id, t.isactive, t.created, t.createdby, t.updated, t.updatedby, + t.c_bpartner_id, t.value, t.name, t.taxid, l.address1 || ' ' || l.address2 || ' ' || l.address3 || ' ' || l.address4 AS address, + l.address1, l.address2, l.address3, l.address4, l.city || ', ' || r.name || ' ' || l.postal AS citystatezip, + l.city, r.name AS region, l.postal AS zip, ctry.name AS country, t.cut_year, t.cut_date, + COALESCE(t.amtbucket01, 0) AS amtbucket01, COALESCE(t.amtbucket02, 0) AS amtbucket02, COALESCE(t.amtbucket03, 0) AS amtbucket03, + COALESCE(t.amtbucket04, 0) AS amtbucket04, COALESCE(t.amtbucket05, 0) AS amtbucket05, COALESCE(t.amtbucket06, 0) AS amtbucket06, + COALESCE(t.amtbucket07, 0) AS amtbucket07, COALESCE(t.amtbucket08, 0) AS amtbucket08, COALESCE(t.amtbucket09, 0) AS amtbucket09, + COALESCE(t.amtbucket10, 0) AS amtbucket10, COALESCE(t.amtbucket11, 0) AS amtbucket11, COALESCE(t.amtbucket12, 0) AS amtbucket12, + COALESCE(t.amtbucket13, 0) AS amtbucket13, COALESCE(t.amtbucket14, 0) AS amtbucket14, COALESCE(t.amtbucket15, 0) AS amtbucket15, + COALESCE(t.amtbucket16, 0) AS amtbucket16 + FROM t_1099extract t + LEFT JOIN c_location l ON t.c_location_id = l.c_location_id + LEFT JOIN c_region r ON r.c_region_id = l.c_region_id + LEFT JOIN c_country ctry ON ctry.c_country_id = l.c_country_id + WHERE t.ad_pinstance_id = (SELECT max(t_1099extract.ad_pinstance_id) AS max + FROM t_1099extract);-- Feb 28, 2013 5:57:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208646,'D','N','N','N','N',10,'N',19,'N',114,'23bfec04-9c67-4d6e-8483-dc3ae4a8f522','N','AD_PInstance_ID','Instance of the process','Process Instance',100,TO_DATE('2013-02-28 17:57:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:19','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208646 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208647,'D','N','N','N','N',10,'N',19,'N',102,'353b0741-2e6f-4736-8bac-1d426d42c489','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client',100,TO_DATE('2013-02-28 17:57:20','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:20','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208647 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208648,'D','N','N','N','N',10,'N',19,'N',113,'1d14c9f0-0aa9-4f49-af83-738df5f021fc','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization',100,TO_DATE('2013-02-28 17:57:21','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:21','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208648 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208649,'D','N','N','N','N',1,'N',20,'N',348,'08068e02-c911-4e57-8a2a-026d6e70b911','N','IsActive','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.','Active',100,TO_DATE('2013-02-28 17:57:22','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:22','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208649 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208650,'D','N','N','N','N',29,'N',16,'N',245,'21586218-b6b8-4322-bc41-c86b21dc0e15','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created',100,TO_DATE('2013-02-28 17:57:23','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:23','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208650 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208651,'D',110,'N','N','N','N',10,'N',18,'N',246,'64dfc749-3d9c-49aa-8e25-c0422ef9aff6','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By',100,TO_DATE('2013-02-28 17:57:24','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:24','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208651 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208652,'D','N','N','N','N',29,'N',16,'N',607,'eea4e473-7883-493b-a5a2-671265fc48a6','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated',100,TO_DATE('2013-02-28 17:57:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:25','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208652 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208653,'D',110,'N','N','N','N',10,'N',18,'N',608,'67381835-8fac-428f-88a1-0c321f4578b5','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By',100,TO_DATE('2013-02-28 17:57:26','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:26','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208653 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208654,'D','N','N','N','N',10,'N',19,'N',187,'1ddeb813-0867-4a87-842f-6105d49d3ebd','N','C_BPartner_ID','Identifies a Business Partner','A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Business Partner ',100,TO_DATE('2013-02-28 17:57:30','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:30','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208654 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208655,'D','N','N','N','N',40,'Y',10,'N',620,'ba9c71fb-cab5-4641-94dd-bfbb9ac03b01','N','Value','Search key for the record in the format required - must be unique','A search key allows you a fast method of finding a particular record. +If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Search Key',100,TO_DATE('2013-02-28 17:57:31','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:31','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208655 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208656,'D','N','N','Y',1,'N',120,'Y',10,'N',469,'ed28eef9-45fe-4f7c-8f64-87f547f0909f','N','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.','Name',100,TO_DATE('2013-02-28 17:57:32','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:32','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208656 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208657,'D','N','N','N','N',20,'N',10,'N',590,'87b47a9e-8327-43d9-8c3f-cca5341c5963','N','TaxID','Tax Identification','The Tax ID field identifies the legal Identification number of this Entity.','Tax ID',100,TO_DATE('2013-02-28 17:57:33','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:33','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208657 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('address',202241,'D','address','address','41ec56bc-68f2-461a-b723-d2889e0a982d',0,TO_DATE('2013-02-28 17:57:36','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:57:36','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:57:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202241 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:57:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208658,'D','N','N','N','N',2147483647,'N',14,'N',202241,'83c52ff6-cb50-4bf5-8a9c-bc1e303b8e0c','N','address','address',100,TO_DATE('2013-02-28 17:57:36','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:36','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208658 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208659,'D','N','N','N','N',60,'N',10,'N',156,'47a37178-489a-416f-aef3-c4659ab83a8f','N','Address1','Address line 1 for this location','The Address 1 identifies the address for an entity''s location','Address 1',100,TO_DATE('2013-02-28 17:57:38','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:38','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208659 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208660,'D','N','N','N','N',60,'N',10,'N',157,'ad129f09-a981-4a90-919b-7e5ec5048557','N','Address2','Address line 2 for this location','The Address 2 provides additional address information for an entity. It can be used for building location, apartment number or similar information.','Address 2',100,TO_DATE('2013-02-28 17:57:39','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:39','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208660 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208661,'D','N','N','N','N',60,'N',10,'N',2555,'50653395-95d9-4b43-bdef-f6b00ba0f29c','N','Address3','Address Line 3 for the location','The Address 2 provides additional address information for an entity. It can be used for building location, apartment number or similar information.','Address 3',100,TO_DATE('2013-02-28 17:57:40','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:40','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208661 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208662,'D','N','N','N','N',60,'N',10,'N',2556,'eead86f4-d24d-4472-a00d-2074794694da','N','Address4','Address Line 4 for the location','The Address 4 provides additional address information for an entity. It can be used for building location, apartment number or similar information.','Address 4',100,TO_DATE('2013-02-28 17:57:41','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:41','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208662 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('citystatezip',202242,'D','citystatezip','citystatezip','85a81b02-cd62-4b57-88af-55912d0139cb',0,TO_DATE('2013-02-28 17:57:42','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:57:42','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:57:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202242 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:57:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208663,'D','N','N','N','N',2147483647,'N',14,'N',202242,'3610fc95-5a06-4bb6-ace9-a900bff0e6e8','N','citystatezip','citystatezip',100,TO_DATE('2013-02-28 17:57:42','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:42','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208663 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208664,'D','N','N','N','N',60,'N',10,'N',225,'a41950b2-29ee-4050-9656-5ea65928afdb','N','City','Identifies a City','The City identifies a unique City for this Country or Region.','City',100,TO_DATE('2013-02-28 17:57:44','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:44','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208664 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('region',202243,'D','region','region','9f645bd8-0d83-43c3-b593-b5d3f034980f',0,TO_DATE('2013-02-28 17:57:45','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:57:45','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:57:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202243 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:57:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208665,'D','N','N','N','N',60,'N',10,'N',202243,'c16bb46b-6163-4d3c-b0ac-4c5dba692944','N','region','region',100,TO_DATE('2013-02-28 17:57:45','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:45','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208665 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('zip',202244,'D','zip','zip','333e0193-a208-441a-b1d3-93caac880d77',0,TO_DATE('2013-02-28 17:57:47','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:57:47','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:57:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202244 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:57:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208666,'D','N','N','N','N',10,'N',10,'N',202244,'876f6a8e-e3c2-4f31-9536-1b9205e530b5','N','zip','zip',100,TO_DATE('2013-02-28 17:57:47','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:47','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208666 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('country',202245,'D','country','country','7b0ef0f0-3f19-472e-844a-b8ef91cc5781',0,TO_DATE('2013-02-28 17:57:49','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 17:57:49','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:57:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202245 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:57:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208667,'D','N','N','N','N',60,'N',10,'N',202245,'59eddec8-7175-46cb-8ae3-07c7279a818b','N','country','country',100,TO_DATE('2013-02-28 17:57:49','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:49','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208667 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208668,'D','N','N','N','N',10,'N',11,'N',202240,'9ab9bc7f-ee65-46f0-92a9-37b62aba57e4','N','Cut_Year','Cut Year',100,TO_DATE('2013-02-28 17:57:51','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:51','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208668 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208669,'D','N','N','N','N',29,'N',16,'N',202239,'51f92fcf-be09-4a18-9ec8-aa052810f3ed','N','Cut_Date','Cut Date',100,TO_DATE('2013-02-28 17:57:52','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:52','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208669 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208670,'D','N','N','N','N',131089,'N',12,'N',202223,'a12db323-a2f7-442f-9210-18b164fe04f1','N','AmtBucket01','Amount Bucket 1',100,TO_DATE('2013-02-28 17:57:54','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:54','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208670 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208671,'D','N','N','N','N',131089,'N',12,'N',202224,'ea54f62d-0e68-4477-bffa-524985cc9c39','N','AmtBucket02','Amount Bucket 2',100,TO_DATE('2013-02-28 17:57:55','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:55','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208671 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208672,'D','N','N','N','N',131089,'N',12,'N',202225,'1818a303-bd9a-4359-81d5-f40c41f47ca3','N','AmtBucket03','Amount Bucket 3',100,TO_DATE('2013-02-28 17:57:56','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:57:56','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208672 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208673,'D','N','N','N','N',131089,'N',12,'N',202226,'cdaf4f00-5fef-4b12-8f9e-2e7770ef8d3d','N','AmtBucket04','Amount Bucket 4',100,TO_DATE('2013-02-28 17:58:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:58:00','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208673 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208674,'D','N','N','N','N',131089,'N',12,'N',202227,'bb7872c2-f55e-4609-919e-07152dec0ce0','N','AmtBucket05','Amount Bucket 5',100,TO_DATE('2013-02-28 17:58:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:58:01','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208674 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208675,'D','N','N','N','N',131089,'N',12,'N',202228,'ef958325-4095-4edc-bcae-d48053ebb44e','N','AmtBucket06','Amount Bucket 6',100,TO_DATE('2013-02-28 17:58:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:58:02','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208675 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208676,'D','N','N','N','N',131089,'N',12,'N',202229,'3aefab9c-367f-4416-b4f3-dffca67a6da5','N','AmtBucket07','Amount Bucket 7',100,TO_DATE('2013-02-28 17:58:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:58:03','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208676 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208677,'D','N','N','N','N',131089,'N',12,'N',202230,'bf07e553-e617-4c10-979e-8ed7848a7052','N','AmtBucket08','Amount Bucket 8',100,TO_DATE('2013-02-28 17:58:04','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:58:04','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208677 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208678,'D','N','N','N','N',131089,'N',12,'N',202231,'042bad02-734c-47df-87a6-ee3a6c3d74d8','N','AmtBucket09','Amount Bucket 9',100,TO_DATE('2013-02-28 17:58:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:58:05','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208678 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208679,'D','N','N','N','N',131089,'N',12,'N',202232,'1d799893-10f0-490c-a9fd-02ec267ed72b','N','AmtBucket10','Amount Bucket 10',100,TO_DATE('2013-02-28 17:58:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:58:06','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208679 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208680,'D','N','N','N','N',131089,'N',12,'N',202233,'551adaff-a946-4059-b6ae-2bc6f810c4ab','N','AmtBucket11','Amount Bucket 11',100,TO_DATE('2013-02-28 17:58:07','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:58:07','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208680 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208681,'D','N','N','N','N',131089,'N',12,'N',202234,'beeeff17-10e9-4ccb-8139-cc750880796b','N','AmtBucket12','Amount Bucket 12',100,TO_DATE('2013-02-28 17:58:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:58:08','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208681 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208682,'D','N','N','N','N',131089,'N',12,'N',202235,'7fd66d8d-6dd8-477d-a9fd-d20cd508d317','N','AmtBucket13','Amount Bucket 13',100,TO_DATE('2013-02-28 17:58:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:58:09','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208682 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208683,'D','N','N','N','N',131089,'N',12,'N',202236,'29010c8f-28a7-4471-9462-3a191acfe358','N','AmtBucket14','Amount Bucket 14',100,TO_DATE('2013-02-28 17:58:10','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:58:10','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208683 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208684,'D','N','N','N','N',131089,'N',12,'N',202237,'7b7a669f-061c-4e2d-82ce-a97937409cf9','N','AmtBucket15','Amount Bucket 15',100,TO_DATE('2013-02-28 17:58:11','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:58:11','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208684 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208685,'D','N','N','N','N',131089,'N',12,'N',202238,'6263eab2-580b-47cd-ab07-1cf2c72b996b','N','AmtBucket16','Amount Bucket 16',100,TO_DATE('2013-02-28 17:58:12','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 17:58:12','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208685 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:00:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Address', Name='Address', PrintName='Address',Updated=TO_DATE('2013-02-28 18:00:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202241 +; + +-- Feb 28, 2013 6:00:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202241 +; + +-- Feb 28, 2013 6:00:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Address', Name='Address', Description=NULL, Help=NULL WHERE AD_Element_ID=202241 +; + +-- Feb 28, 2013 6:00:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Address', Name='Address', Description=NULL, Help=NULL, AD_Element_ID=202241 WHERE UPPER(ColumnName)='ADDRESS' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 6:00:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Address', Name='Address', Description=NULL, Help=NULL WHERE AD_Element_ID=202241 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Address', Name='Address', Description=NULL, Help=NULL WHERE AD_Element_ID=202241 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Address', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202241) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Address', Name='Address' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202241) +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='CityStateZip', Name='City State Zip', PrintName='City State Zip',Updated=TO_DATE('2013-02-28 18:00:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202242 +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202242 +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='CityStateZip', Name='City State Zip', Description=NULL, Help=NULL WHERE AD_Element_ID=202242 +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='CityStateZip', Name='City State Zip', Description=NULL, Help=NULL, AD_Element_ID=202242 WHERE UPPER(ColumnName)='CITYSTATEZIP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='CityStateZip', Name='City State Zip', Description=NULL, Help=NULL WHERE AD_Element_ID=202242 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='CityStateZip', Name='City State Zip', Description=NULL, Help=NULL WHERE AD_Element_ID=202242 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='City State Zip', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202242) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='City State Zip', Name='City State Zip' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202242) +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Country', Name='Country', PrintName='Country',Updated=TO_DATE('2013-02-28 18:00:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202245 +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202245 +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Country', Name='Country', Description=NULL, Help=NULL WHERE AD_Element_ID=202245 +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Country', Name='Country', Description=NULL, Help=NULL, AD_Element_ID=202245 WHERE UPPER(ColumnName)='COUNTRY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Country', Name='Country', Description=NULL, Help=NULL WHERE AD_Element_ID=202245 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Country', Name='Country', Description=NULL, Help=NULL WHERE AD_Element_ID=202245 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Country', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202245) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Country', Name='Country' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202245) +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Zip', Name='Zip', PrintName='Zip',Updated=TO_DATE('2013-02-28 18:00:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202244 +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202244 +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Zip', Name='Zip', Description=NULL, Help=NULL WHERE AD_Element_ID=202244 +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Zip', Name='Zip', Description=NULL, Help=NULL, AD_Element_ID=202244 WHERE UPPER(ColumnName)='ZIP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Zip', Name='Zip', Description=NULL, Help=NULL WHERE AD_Element_ID=202244 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Zip', Name='Zip', Description=NULL, Help=NULL WHERE AD_Element_ID=202244 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Zip', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202244) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Zip', Name='Zip' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202244) +; + +-- Feb 28, 2013 6:04:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_ReportView (AD_ReportView_UU,AD_Table_ID,AD_ReportView_ID,EntityType,Name,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Org_ID,IsActive) VALUES ('db24ebe0-c6bf-4ab7-b356-3a63209971f6',200068,200000,'D','RV_T_1099Extract',0,TO_DATE('2013-02-28 18:04:42','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-02-28 18:04:42','YYYY-MM-DD HH24:MI:SS'),100,0,'Y') +; + +-- Feb 28, 2013 6:06:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process (CopyFromProcess,AD_Process_ID,IsDirectPrint,AD_ReportView_ID,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Classname,Name,Value,AD_Org_ID,AD_Client_ID,Created,Updated,UpdatedBy,IsActive,CreatedBy) VALUES ('N',200034,'N',200000,'Y','5577f73c-ca99-43b6-8ad6-272739305b60','3','N','N',0,0,'Y','D','org.adempiere.process.ASU_Fill1099Extract','1099 Extract','1099 Extract',0,0,TO_DATE('2013-02-28 18:06:03','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 18:06:03','YYYY-MM-DD HH24:MI:SS'),100,'Y',100) +; + +-- Feb 28, 2013 6:06:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200034 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) +; + +-- Feb 28, 2013 6:06:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,FieldLength,IsCentrallyMaintained,SeqNo,DefaultValue,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',202239,200051,'a0516401-a005-4aa5-902d-31b9eac32768',200034,15,'N','D','Cut Date','Cut_Date',0,'Y',10,'@#Date@','Y',100,TO_DATE('2013-02-28 18:06:40','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-02-28 18:06:40','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Feb 28, 2013 6:06:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200051 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Feb 28, 2013 6:09:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','3',0,200069,'N','N','N','D','L','c30ba29f-a4ad-4457-b4a9-4818d7502599','Y','Y','ASU_1099Box','1099 Box',0,'Y',0,TO_DATE('2013-02-28 18:09:10','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2013-02-28 18:09:10','YYYY-MM-DD HH24:MI:SS')) +; + +-- Feb 28, 2013 6:09:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200069 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Feb 28, 2013 6:09:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200064,'e073a95b-670f-4ead-91a5-fb62670554ff','Table ASU_1099Box','ASU_1099Box',1,0,0,TO_DATE('2013-02-28 18:09:11','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-02-28 18:09:11','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +-- Feb 28, 2013 6:13:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208686,'D','Y','N','N','N',22,'N',19,129,'N',102,'N','Y','c0b60533-1e8d-44d4-9e92-a7aa35c9fdfc','N','AD_Client_ID','Client/Tenant for this installation.','@#AD_Client_ID@','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',100,TO_DATE('2013-02-28 18:13:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:13:17','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208686 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208687,'D','Y','N','N','N',22,'N',19,104,'N',113,'N','Y','5ff73687-c3b7-45ef-899d-fc8e9dba16b7','N','AD_Org_ID','Organizational entity within client','@#AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',100,TO_DATE('2013-02-28 18:13:18','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:13:18','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208687 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ASU_1099Box_ID',202246,'D','1099 Box','1099 Box','86a1d685-db8d-408d-9425-9a3b8705c7a4',0,TO_DATE('2013-02-28 18:13:19','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 18:13:19','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 6:13:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202246 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 6:13:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208688,'D','Y','N','N','N',22,'N',13,'Y',202246,'N','Y','aed0137b-141a-4fed-b7fa-bdce7c995cb9','N','ASU_1099Box_ID','1099 Box','N',100,TO_DATE('2013-02-28 18:13:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:13:19','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208688 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ASU_1099Box_UU',202247,'D','ASU_1099Box_UU','ASU_1099Box_UU','f718f03b-e96c-488e-b344-2245bcce3c27',0,TO_DATE('2013-02-28 18:13:21','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 18:13:21','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 6:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202247 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 6:13:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1.00,'N',200069,208689,'D','N','N','N','N',36,'N',10,'N',202247,'N','Y','b510ba17-72d1-4c0e-b5e4-dd00bd39908f','Y','ASU_1099Box_UU','ASU_1099Box_UU','N',100,TO_DATE('2013-02-28 18:13:21','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:13:21','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208689 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208690,'D','Y','N','N','N',7,'N',16,'N',245,'N','Y','1d42f76a-9ed8-4e22-b95d-5fa550b0d532','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',100,TO_DATE('2013-02-28 18:13:29','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:13:29','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208690 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208691,'D',110,'Y','N','N','N',22,'N',18,'N',246,'N','Y','ad78790b-2e5d-4345-b4c8-78c6e0a01e7c','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',100,TO_DATE('2013-02-28 18:13:30','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:13:30','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208691 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208692,'D','N','N','N','N',255,'Y',10,'N',275,'N','Y','a35477e7-6966-47d9-b85b-03b78c4956a9','Y','Description','Optional short description of the record','A description is limited to 255 characters.','Description','Y',100,TO_DATE('2013-02-28 18:13:31','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:13:31','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208692 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208693,'D','Y','N','N','N',1,'N',20,'N',348,'N','Y','8b3bc284-c463-473f-8887-3fc45c9c215c','Y','IsActive','The record is active in the system','Y','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.','Active','N',100,TO_DATE('2013-02-28 18:13:32','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:13:32','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208693 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208694,'D','Y','N','Y',1,'N',60,'Y',10,'N',469,'N','Y','68542e32-e109-4344-a99a-b0e3f39b8d7b','Y','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.','Name','Y',100,TO_DATE('2013-02-28 18:13:33','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:13:33','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208694 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208695,'D','Y','N','N','N',7,'N',16,'N',607,'N','Y','8fc1ecd1-0e0f-4fa8-8c72-0c1f9e54390d','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',100,TO_DATE('2013-02-28 18:13:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:13:34','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208695 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208696,'D',110,'Y','N','N','N',22,'N',18,'N',608,'N','Y','a43ce763-9a10-4808-9f46-5b7408bbb722','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',100,TO_DATE('2013-02-28 18:13:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:13:34','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208696 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:16:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('Bucket',202248,'D','Bucket','Bucket','8856f05a-49f8-4c59-959f-c3640be7e75b',0,TO_DATE('2013-02-28 18:16:33','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 18:16:33','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 6:16:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202248 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 6:17:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,ValueMin,IsSyncDatabase,AD_Table_ID,AD_Column_ID,ValueMax,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'1','N',200069,208697,'16','D','Y','N','N',0,'N',14,'N',11,'N',202248,'N','Y','907d1f5b-518d-4c30-a33f-346dc6057ee5','Y','Bucket','Bucket','Y',100,TO_DATE('2013-02-28 18:17:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:17:05','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:17:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208697 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:17:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200069,208698,'D','N','N','N',0,'N',2000,'N',14,'N',326,'N','Y','e1d6bec4-9866-42ab-9810-465cda40e860','Y','Help','Comment or Hint','The Help field contains a hint, comment or help about the use of this item.','Comment/Help','Y',100,TO_DATE('2013-02-28 18:17:49','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:17:49','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:17:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208698 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:18:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200069,208699,'D','Y','N','N',0,'N',40,'N',10,'N',620,'N','Y','7bb33046-902f-4a86-bc5c-2b310833b4e5','Y','Value','Search key for the record in the format required - must be unique','A search key allows you a fast method of finding a particular record. +If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Search Key','Y',100,TO_DATE('2013-02-28 18:18:29','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:18:29','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:18:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208699 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:18:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +CREATE TABLE ASU_1099Box (AD_Client_ID NUMBER(10) NOT NULL, AD_Org_ID NUMBER(10) NOT NULL, ASU_1099Box_ID NUMBER(10) NOT NULL, ASU_1099Box_UU NVARCHAR2(36) DEFAULT NULL , Bucket NUMBER(10) NOT NULL, Created DATE NOT NULL, CreatedBy NUMBER(10) NOT NULL, Description NVARCHAR2(255) DEFAULT NULL , Help NVARCHAR2(2000) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, Name NVARCHAR2(60) NOT NULL, Updated DATE NOT NULL, UpdatedBy NUMBER(10) NOT NULL, Value NVARCHAR2(40) NOT NULL, CONSTRAINT ASU_1099Box_Key PRIMARY KEY (ASU_1099Box_ID)) +; + +-- Feb 28, 2013 6:21:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('Default1099Box_ID',202249,'D','Default 1099 Box','Default 1099 Box','6c022404-8216-4312-9629-44c2d80bbffe',0,TO_DATE('2013-02-28 18:21:03','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 18:21:03','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 6:21:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202249 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 6:21:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Reference (AD_Reference_ID,Name,EntityType,AD_Reference_UU,IsOrderByValue,ValidationType,AD_Client_ID,AD_Org_ID,Updated,CreatedBy,IsActive,Created,UpdatedBy) VALUES (200065,'ASU_1099Box','D','d2516191-26bf-4536-9a32-0a63bd08e44a','N','T',0,0,TO_DATE('2013-02-28 18:21:31','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2013-02-28 18:21:31','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Feb 28, 2013 6:21:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Reference_Trl_UU ) SELECT l.AD_Language,t.AD_Reference_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=200065 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) +; + +-- Feb 28, 2013 6:21:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Ref_Table (IsValueDisplayed,AD_Reference_ID,AD_Key,AD_Display,EntityType,AD_Table_ID,AD_Ref_Table_UU,CreatedBy,Updated,Created,AD_Client_ID,UpdatedBy,AD_Org_ID,IsActive) VALUES ('Y',200065,208688,208694,'D',200069,'418e13b3-113c-4d10-bed1-6e1c24c91549',100,TO_DATE('2013-02-28 18:21:56','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 18:21:56','YYYY-MM-DD HH24:MI:SS'),0,100,0,'Y') +; + +-- Feb 28, 2013 6:22:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',291,208700,'D',200065,'N','N','N',0,'N',10,'N',18,'N',202249,'N','Y','c33fe104-a5ab-4607-a552-775d3a8154a2','Y','Default1099Box_ID','Default 1099 Box','Y',100,TO_DATE('2013-02-28 18:22:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:22:16','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:22:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208700 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:22:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +ALTER TABLE C_BPartner ADD Default1099Box_ID NUMBER(10) DEFAULT NULL +; + +-- Feb 28, 2013 6:22:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('Is1099Vendor',202250,'D','1099 Vendor','1099 Vendor','d47c3e7e-d9d8-42cb-bcd4-0cc6975830bc',0,TO_DATE('2013-02-28 18:22:46','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 18:22:46','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 6:22:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202250 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 6:23:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',291,208701,'D','Y','N','N',0,'N',1,'N',20,'N',202250,'N','Y','b62b3292-3268-46bf-9dea-81150a9b285a','Y','Is1099Vendor','N','1099 Vendor','Y',100,TO_DATE('2013-02-28 18:23:12','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:23:12','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:23:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208701 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:23:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +ALTER TABLE C_BPartner ADD Is1099Vendor CHAR(1) DEFAULT 'N' CHECK (Is1099Vendor IN ('Y','N')) NOT NULL +; + +-- Feb 28, 2013 6:25:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',598,208702,'D',200065,'N','N','N',0,'N',10,'N',18,'N',202246,'N','Y','1fac63b9-5298-4138-bc56-ee4e1507b18d','Y','ASU_1099Box_ID','1099 Box','Y',100,TO_DATE('2013-02-28 18:25:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:25:17','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:25:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208702 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:25:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +ALTER TABLE I_Invoice ADD ASU_1099Box_ID NUMBER(10) DEFAULT NULL +; + +-- Feb 28, 2013 6:25:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ASU_1099Box_Value',202251,'D','1099 Box Value','1099 Box Value','1ceb23a4-335a-42a8-86da-de7ee14a4abf',0,TO_DATE('2013-02-28 18:25:43','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 18:25:43','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 6:25:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202251 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 6:26:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',598,208703,'D','N','N','N',0,'N',40,'N',10,'N',202251,'N','Y','b6a4c506-50ca-4df4-b6b6-9457a3417de1','Y','ASU_1099Box_Value','1099 Box Value','Y',100,TO_DATE('2013-02-28 18:26:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:26:03','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:26:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208703 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:26:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +ALTER TABLE I_Invoice ADD ASU_1099Box_Value NVARCHAR2(40) DEFAULT NULL +; + +-- Feb 28, 2013 6:27:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',333,208704,'D',200065,'N','N','N',0,'N',10,'N',18,'N',202246,'N','Y','c17e9812-f26a-4044-84a3-dd237429a1f0','Y','ASU_1099Box_ID','@SQL=SELECT Default1099Box_ID FROM C_BPartner WHERE C_BPartner_ID=@C_BPartner_ID@ AND Is1099Vendor=''Y'' AND IsVendor=''Y'' AND ''@IsSOTrx@''=''N''','1099 Box','Y',100,TO_DATE('2013-02-28 18:27:13','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-02-28 18:27:13','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:27:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208704 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:27:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +ALTER TABLE C_InvoiceLine ADD ASU_1099Box_ID NUMBER(10) DEFAULT NULL +; + +-- Feb 28, 2013 6:28:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Window (Processing,WindowType,IsSOTrx,IsDefault,WinWidth,IsBetaFunctionality,WinHeight,EntityType,Name,AD_Window_ID,AD_Window_UU,Created,Updated,AD_Client_ID,AD_Org_ID,IsActive,UpdatedBy,CreatedBy) VALUES ('N','M','N','N',0,'N',0,'D','1099 Box',200036,'6bddc8cc-8d7c-44d9-8438-d03bcd6da13f',TO_DATE('2013-02-28 18:28:51','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-02-28 18:28:51','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',100,100) +; + +-- Feb 28, 2013 6:28:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Window_Trl (AD_Language,AD_Window_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Window_Trl_UU ) SELECT l.AD_Language,t.AD_Window_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Window t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Window_ID=200036 AND NOT EXISTS (SELECT * FROM AD_Window_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Window_ID=t.AD_Window_ID) +; + +-- Feb 28, 2013 6:29:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Tab (ImportFields,Processing,IsSingleRow,AD_Window_ID,SeqNo,IsTranslationTab,IsSortTab,AD_Table_ID,HasTree,IsReadOnly,IsInfoTab,AD_Tab_UU,IsInsertRecord,IsAdvancedTab,TabLevel,EntityType,Name,AD_Tab_ID,AD_Client_ID,Updated,AD_Org_ID,Created,CreatedBy,UpdatedBy,IsActive) VALUES ('N','N','Y',200036,10,'N','N',200069,'N','N','N','98596e65-a82f-4649-b4f2-abced2c16f62','Y','N',0,'D','1099 Box',200078,0,TO_DATE('2013-02-28 18:29:17','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-02-28 18:29:17','YYYY-MM-DD HH24:MI:SS'),100,100,'Y') +; + +-- Feb 28, 2013 6:29:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, Help,CommitWarning,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Tab_Trl_UU ) SELECT l.AD_Language,t.AD_Tab_ID, t.Help,t.CommitWarning,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=200078 AND NOT EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Tab_ID=t.AD_Tab_ID) +; + +-- Feb 28, 2013 6:29:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive,IsDisplayedGrid) VALUES ('N',200078,22,'N','N',208688,'Y',201839,'N','D','1099 Box','N','N','7b8ef0b8-3562-4551-a5cb-57d8c2bc72ef',100,0,TO_DATE('2013-02-28 18:29:19','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:29:19','YYYY-MM-DD HH24:MI:SS'),'Y','N') +; + +-- Feb 28, 2013 6:29:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201839 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,1,'N','N',208693,'Y',201840,'N','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.','D','The record is active in the system','Active','N','Y','52f5d1ac-72ea-444a-ba9d-f21aa67dd4b8',100,0,TO_DATE('2013-02-28 18:29:20','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:29:20','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201840 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,36,'N','N',208689,'Y',201841,'N','D','ASU_1099Box_UU','N','Y','2d0e5301-75a6-4b28-a464-8a2aa3a05ca0',100,0,TO_DATE('2013-02-28 18:29:21','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:29:21','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201841 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,14,'N','N',208697,'Y',201842,'N','D','Bucket','N','Y','5fd618a5-bd1a-4ff7-ace4-5a193f10ae57',100,0,TO_DATE('2013-02-28 18:29:22','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:29:22','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201842 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,22,'N','N',208686,'Y',201843,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','D','Client/Tenant for this installation.','Client','N','Y','bec16345-399b-4392-9601-5874eb925a6b',100,0,TO_DATE('2013-02-28 18:29:23','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:29:23','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201843 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,2000,'N','N',208698,'Y',201844,'N','The Help field contains a hint, comment or help about the use of this item.','D','Comment or Hint','Comment/Help','N','Y','62fa961b-8253-43f4-a450-0cd1e29857a0',100,0,TO_DATE('2013-02-28 18:29:24','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:29:24','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201844 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,255,'N','N',208692,'Y',201845,'N','A description is limited to 255 characters.','D','Optional short description of the record','Description','N','Y','b1c325f5-ad75-409b-8e75-146319fae207',100,0,TO_DATE('2013-02-28 18:29:25','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:29:25','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201845 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,60,'N','N',208694,'Y',201846,'N','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.','D','Alphanumeric identifier of the entity','Name','N','Y','3c9754ad-b2ef-49ed-990a-b10b9628f815',100,0,TO_DATE('2013-02-28 18:29:26','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:29:26','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201846 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,22,'N','N',208687,'Y',201847,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','D','Organizational entity within client','Organization','N','Y','af71820f-d152-4b0f-a489-59014634fa96',100,0,TO_DATE('2013-02-28 18:29:27','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:29:27','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201847 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,40,'N','N',208699,'Y',201848,'N','A search key allows you a fast method of finding a particular record. +If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','D','Search key for the record in the format required - must be unique','Search Key','N','Y','d8109565-22fe-4726-ac18-fec6c0c66f7f',100,0,TO_DATE('2013-02-28 18:29:28','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:29:28','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201848 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201841 +; + +-- Feb 28, 2013 6:29:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=201843 +; + +-- Feb 28, 2013 6:29:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=201847 +; + +-- Feb 28, 2013 6:29:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=201848 +; + +-- Feb 28, 2013 6:29:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=201846 +; + +-- Feb 28, 2013 6:29:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=201842 +; + +-- Feb 28, 2013 6:29:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=201845 +; + +-- Feb 28, 2013 6:29:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=201844 +; + +-- Feb 28, 2013 6:29:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=201840 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201841 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=201843 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=201847 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=201848 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=201846 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=201842 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=201845 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=201844 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=201840 +; + +-- Feb 28, 2013 6:30:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2013-02-28 18:30:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201847 +; + +-- Feb 28, 2013 6:30:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=22,Updated=TO_DATE('2013-02-28 18:30:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201848 +; + +-- Feb 28, 2013 6:30:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:30:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201843 +; + +-- Feb 28, 2013 6:30:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:30:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201847 +; + +-- Feb 28, 2013 6:30:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:30:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201848 +; + +-- Feb 28, 2013 6:30:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:30:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201846 +; + +-- Feb 28, 2013 6:30:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:30:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201842 +; + +-- Feb 28, 2013 6:31:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:31:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201845 +; + +-- Feb 28, 2013 6:31:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:31:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201844 +; + +-- Feb 28, 2013 6:31:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201840 +; + +-- Feb 28, 2013 6:31:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET NumLines=3, ColumnSpan=5,Updated=TO_DATE('2013-02-28 18:31:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201844 +; + +-- Feb 28, 2013 6:31:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=5,Updated=TO_DATE('2013-02-28 18:31:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201845 +; + +-- Feb 28, 2013 6:31:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=5,Updated=TO_DATE('2013-02-28 18:31:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201846 +; + +-- Feb 28, 2013 6:34:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Tab SET IsActive='Y',Updated=TO_DATE('2013-02-28 18:34:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=224 +; + +-- Feb 28, 2013 6:34:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,1,'N','N',208701,'Y',201849,'N','D','1099 Vendor','N','Y','59132d30-b786-41e2-9358-066670095d11',100,0,TO_DATE('2013-02-28 18:34:28','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:34:28','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201849 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,36,'N','N',60605,'Y',201850,'N','D','C_BPartner_UU','N','Y','0e2d9729-cbf7-47a4-b097-20911fcb9899',100,0,TO_DATE('2013-02-28 18:34:29','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:34:29','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201850 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,60,'N','N',200612,'Y',201851,'N','D','Customer Profile ID','N','Y','57f5bfe2-6a00-48a1-83e1-ea5c04a6b9d8',100,0,TO_DATE('2013-02-28 18:34:30','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:34:30','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201851 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,10,'N','N',208700,'Y',201852,'N','D','Default 1099 Box','N','Y','c4d02088-159e-4c27-ac9b-3ea51503d6a2',100,0,TO_DATE('2013-02-28 18:34:31','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:34:31','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201852 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,7,'N','N',53246,'Y',201853,'N','D','Dunning Grace Date','N','Y','4a926d89-9bb0-4fbb-812e-21a7b4c4b3d4',100,0,TO_DATE('2013-02-28 18:34:31','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:34:31','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201853 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,10,'N','N',58113,'Y',201854,'N','D','Logo','N','Y','d377e74b-8c97-416c-944e-120184793a5e',100,0,TO_DATE('2013-02-28 18:34:32','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:34:32','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201854 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,1,'N','N',58381,'Y',201855,'N','If a business partner is exempt from tax on purchases, the exempt tax rate is used. For this, you need to set up a tax rate with a 0% rate and indicate that this is your tax exempt rate. This is required for tax reporting, so that you can track tax exempt transactions.','D','Business partner is exempt from tax on purchases','PO Tax exempt','N','Y','be313995-5b93-42c6-bdea-0e2996d1cbe9',100,0,TO_DATE('2013-02-28 18:34:33','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:34:33','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201855 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,10,'N','N',54463,'Y',201856,'N','EE04','Tax Group','N','Y','cb54920b-8d4b-4247-8413-a232585194d9',100,0,TO_DATE('2013-02-28 18:34:34','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:34:34','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201856 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201850 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201851 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201853 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201854 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201855 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201856 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=201849 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=201852 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201850 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=2442 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201851 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201853 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201854 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201855 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201856 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=2444 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=2475 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=2464 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=7622 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=2567 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=8344 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=2480 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=4622 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=2466 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=5283 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=58570 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=201849 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=201852 +; + +-- Feb 28, 2013 6:36:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLogic='@Is1099Vendor@=''Y''', ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:36:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201852 +; + +-- Feb 28, 2013 6:36:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:36:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201849 +; + +-- Feb 28, 2013 6:36:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14, IsSameLine='Y', XPosition=4,Updated=TO_DATE('2013-02-28 18:36:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201852 +; + +-- Feb 28, 2013 6:36:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsActive='N',Updated=TO_DATE('2013-02-28 18:36:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201849 +; + +-- Feb 28, 2013 6:36:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsActive='N',Updated=TO_DATE('2013-02-28 18:36:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201852 +; + +-- Feb 28, 2013 6:36:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Tab SET IsActive='N',Updated=TO_DATE('2013-02-28 18:36:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=224 +; + +-- Feb 28, 2013 6:38:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',291,10,'N','N',208704,'Y',201857,'N','D','1099 Box','N','Y','09845e2b-d8fc-4677-ad6f-bd1034fb87f0',100,0,TO_DATE('2013-02-28 18:38:39','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:38:39','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:38:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201857 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:38:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',291,36,'N','N',60665,'Y',201858,'N','D','C_InvoiceLine_UU','N','Y','21ebaa24-485e-460f-a711-f4cc4e043e3f',100,0,TO_DATE('2013-02-28 18:38:41','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:38:41','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:38:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201858 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:38:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',291,1,'N','N',61470,'Y',201859,'N','D','IsFixedAssetInvoice','N','Y','d7126966-a50e-49f9-88be-24d9176320f6',100,0,TO_DATE('2013-02-28 18:38:41','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:38:41','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:38:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201859 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:38:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',291,1,'N','N',56073,'Y',201860,'N','D','Processed','N','Y','4ad428d5-1607-4449-8b91-1ffa8d476a2d',100,0,TO_DATE('2013-02-28 18:38:42','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:38:42','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:38:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201860 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:38:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',291,22,'N','N',52008,'Y',201861,'N','Detail information about the returned goods','D','Return Material Authorization Line','RMA Line','N','Y','609fe7a6-7f66-4dda-b27a-7bec36e3dcfe',100,0,TO_DATE('2013-02-28 18:38:43','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:38:43','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:38:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201861 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201858 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201859 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201860 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201861 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=201857 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=3366 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=56252 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=56253 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=5825 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=56254 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=10823 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=3365 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=3374 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=10824 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=3372 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=3373 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=3364 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=6430 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=12747 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=13668 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=13669 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=13693 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=13674 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=13675 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=3370 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=8266 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=8244 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=8267 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201858 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=3358 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201859 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201860 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201861 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=3359 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=3362 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=3363 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=3369 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=3357 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=3371 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=3360 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=201857 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=56252 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=56253 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=5825 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=56254 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=10823 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=150,IsDisplayedGrid='Y' WHERE AD_Field_ID=3365 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=160,IsDisplayedGrid='Y' WHERE AD_Field_ID=3374 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=170,IsDisplayedGrid='Y' WHERE AD_Field_ID=10824 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=180,IsDisplayedGrid='Y' WHERE AD_Field_ID=3372 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=190,IsDisplayedGrid='Y' WHERE AD_Field_ID=3373 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=200,IsDisplayedGrid='Y' WHERE AD_Field_ID=3364 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=210,IsDisplayedGrid='Y' WHERE AD_Field_ID=6430 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=220,IsDisplayedGrid='Y' WHERE AD_Field_ID=12747 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=230,IsDisplayedGrid='Y' WHERE AD_Field_ID=13668 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=240,IsDisplayedGrid='Y' WHERE AD_Field_ID=13669 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=250,IsDisplayedGrid='Y' WHERE AD_Field_ID=13693 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=260,IsDisplayedGrid='Y' WHERE AD_Field_ID=13674 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=270,IsDisplayedGrid='Y' WHERE AD_Field_ID=13675 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=280,IsDisplayedGrid='Y' WHERE AD_Field_ID=3370 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=290,IsDisplayedGrid='Y' WHERE AD_Field_ID=8266 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=300,IsDisplayedGrid='Y' WHERE AD_Field_ID=8244 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=310,IsDisplayedGrid='Y' WHERE AD_Field_ID=8267 +; + +-- Feb 28, 2013 6:39:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14, ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:39:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201857 +; + +-- Feb 28, 2013 6:40:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',510,10,'N','N',208702,'Y',201862,'N','D','1099 Box','N','Y','73a28046-64ea-4526-8f1c-a09684b107a4',100,0,TO_DATE('2013-02-28 18:40:34','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:40:34','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:40:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201862 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:40:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',510,40,'N','N',208703,'Y',201863,'N','D','1099 Box Value','N','Y','3017f291-8141-4d54-b9be-dd6cb83f3da0',100,0,TO_DATE('2013-02-28 18:40:35','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:40:35','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:40:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201863 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:40:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',510,36,'N','N',60839,'Y',201864,'N','D','I_Invoice_UU','N','Y','008b715c-3385-45f0-a1db-e3d8b8a89305',100,0,TO_DATE('2013-02-28 18:40:36','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 18:40:36','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:40:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201864 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=7210 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201864 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=7231 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=7213 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=7242 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=7245 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=7251 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=7226 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=7243 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=7246 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=7238 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=7216 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=7230 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=7248 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=7227 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=7223 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=7234 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=7236 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=7249 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=7221 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=7220 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=7218 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=7219 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=7637 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=7222 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=7229 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=7225 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=7235 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=7214 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=7635 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=7638 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=7634 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=7244 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=7639 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=7636 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=7212 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=8261 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=8260 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=7240 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=7208 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=53253 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=53254 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=7233 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=420,IsDisplayed='Y' WHERE AD_Field_ID=7232 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=430,IsDisplayed='Y' WHERE AD_Field_ID=7207 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=440,IsDisplayed='Y' WHERE AD_Field_ID=7228 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=450,IsDisplayed='Y' WHERE AD_Field_ID=7241 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=460,IsDisplayed='Y' WHERE AD_Field_ID=7215 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=470,IsDisplayed='Y' WHERE AD_Field_ID=7250 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=480,IsDisplayed='Y' WHERE AD_Field_ID=7209 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=490,IsDisplayed='Y' WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=500,IsDisplayed='Y' WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=510,IsDisplayed='Y' WHERE AD_Field_ID=7239 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=520,IsDisplayed='Y' WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=530,IsDisplayed='Y' WHERE AD_Field_ID=7237 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=540,IsDisplayed='Y' WHERE AD_Field_ID=7217 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=550,IsDisplayed='Y' WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=560,IsDisplayed='Y' WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=570,IsDisplayed='Y' WHERE AD_Field_ID=7247 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=580,IsDisplayed='Y' WHERE AD_Field_ID=7224 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=7210 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=7226 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201864 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=7231 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=7213 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=7242 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=7245 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=7251 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=7243 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=7246 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=7238 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=7216 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=7230 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=7248 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=7227 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=7223 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=7234 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=150,IsDisplayedGrid='Y' WHERE AD_Field_ID=7236 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=160,IsDisplayedGrid='Y' WHERE AD_Field_ID=7249 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=170,IsDisplayedGrid='Y' WHERE AD_Field_ID=7221 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=180,IsDisplayedGrid='Y' WHERE AD_Field_ID=7220 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=190,IsDisplayedGrid='Y' WHERE AD_Field_ID=7218 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=200,IsDisplayedGrid='Y' WHERE AD_Field_ID=7219 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=210,IsDisplayedGrid='Y' WHERE AD_Field_ID=7637 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=220,IsDisplayedGrid='Y' WHERE AD_Field_ID=7222 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=230,IsDisplayedGrid='Y' WHERE AD_Field_ID=7229 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=240,IsDisplayedGrid='Y' WHERE AD_Field_ID=7225 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=250,IsDisplayedGrid='Y' WHERE AD_Field_ID=7235 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=260,IsDisplayedGrid='Y' WHERE AD_Field_ID=7214 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=270,IsDisplayedGrid='Y' WHERE AD_Field_ID=7635 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=280,IsDisplayedGrid='Y' WHERE AD_Field_ID=7638 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=290,IsDisplayedGrid='Y' WHERE AD_Field_ID=7634 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=300,IsDisplayedGrid='Y' WHERE AD_Field_ID=7244 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=310,IsDisplayedGrid='Y' WHERE AD_Field_ID=7639 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=320,IsDisplayedGrid='Y' WHERE AD_Field_ID=7636 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=330,IsDisplayedGrid='Y' WHERE AD_Field_ID=7212 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=340,IsDisplayedGrid='Y' WHERE AD_Field_ID=8261 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=350,IsDisplayedGrid='Y' WHERE AD_Field_ID=8260 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=360,IsDisplayedGrid='Y' WHERE AD_Field_ID=7240 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=370,IsDisplayedGrid='Y' WHERE AD_Field_ID=7208 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=380,IsDisplayedGrid='Y' WHERE AD_Field_ID=53253 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=390,IsDisplayedGrid='Y' WHERE AD_Field_ID=53254 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=480,IsDisplayedGrid='Y' WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=490,IsDisplayedGrid='Y' WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=500,IsDisplayedGrid='Y' WHERE AD_Field_ID=7239 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=510,IsDisplayedGrid='Y' WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=520,IsDisplayedGrid='Y' WHERE AD_Field_ID=7237 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=530,IsDisplayedGrid='Y' WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=540,IsDisplayedGrid='Y' WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:41:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=550,IsDisplayedGrid='Y' WHERE AD_Field_ID=7217 +; + +-- Feb 28, 2013 6:41:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=560,IsDisplayedGrid='Y' WHERE AD_Field_ID=7247 +; + +-- Feb 28, 2013 6:41:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=570,IsDisplayedGrid='Y' WHERE AD_Field_ID=7224 +; + +-- Feb 28, 2013 6:41:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:41:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:42:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14, IsSameLine='Y', XPosition=4, ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:42:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:42:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14,Updated=TO_DATE('2013-02-28 18:42:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:45:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu (AD_Window_ID,AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,EntityType,AD_Menu_UU,IsCentrallyMaintained,Name,Action,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200036,200041,'N','N','N','D','4fe89318-c3ec-4b52-917a-35aaa2a1d402','Y','1099 Box','W','Y',0,100,TO_DATE('2013-02-28 18:45:32','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-02-28 18:45:32','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Feb 28, 2013 6:45:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200041 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + +-- Feb 28, 2013 6:45:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', SysDate, 100, SysDate, 100,t.AD_Tree_ID, 200041, 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=200041) +; + +-- Feb 28, 2013 6:45:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,AD_Menu_UU,IsCentrallyMaintained,Name,Action,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200042,'N','N','N',200034,'D','d6dc1c98-961b-4e15-918f-13a7ecc5ccdd','Y','1099 Extract','R','Y',0,100,TO_DATE('2013-02-28 18:45:52','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-02-28 18:45:52','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Feb 28, 2013 6:45:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200042 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + +-- Feb 28, 2013 6:45:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', SysDate, 100, SysDate, 100,t.AD_Tree_ID, 200042, 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=200042) +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Feb 28, 2013 6:46:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Feb 28, 2013 6:46:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Feb 28, 2013 6:46:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53242 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=519 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53296 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53083 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200022 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=518 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=19, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200024 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=20, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200038 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=32, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=32, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=32, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:49:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=2,Updated=TO_DATE('2013-02-28 18:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201840 +; + +-- Feb 28, 2013 6:51:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=520,IsDisplayed='Y' WHERE AD_Field_ID=7237 +; + +-- Feb 28, 2013 6:51:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=530,IsDisplayed='Y' WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:51:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=550,IsDisplayed='Y' WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:51:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=560,IsDisplayed='Y' WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:51:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=510,IsDisplayedGrid='Y' WHERE AD_Field_ID=7237 +; + +-- Feb 28, 2013 6:51:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=520,IsDisplayedGrid='Y' WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:51:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=530,IsDisplayedGrid='Y' WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:51:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=540,IsDisplayedGrid='Y' WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:51:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=530,IsDisplayedGrid='Y' WHERE AD_Field_ID=7217 +; + +-- Feb 28, 2013 6:51:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=540,IsDisplayedGrid='Y' WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:51:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=550,IsDisplayedGrid='Y' WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:52:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:52:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:52:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=1,Updated=TO_DATE('2013-02-28 18:52:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7217 +; + +-- Feb 28, 2013 6:52:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=1,Updated=TO_DATE('2013-02-28 18:52:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:52:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='Y', XPosition=4,Updated=TO_DATE('2013-02-28 18:52:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:52:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2013-02-28 18:52:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:52:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14,Updated=TO_DATE('2013-02-28 18:52:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:52:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2013-02-28 18:52:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7217 +; + +-- Feb 28, 2013 6:53:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2013-02-28 18:53:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:53:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:53:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:54:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=4,Updated=TO_DATE('2013-02-28 18:54:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:54:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=1,Updated=TO_DATE('2013-02-28 18:54:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7239 +; + +-- Feb 28, 2013 6:54:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14,Updated=TO_DATE('2013-02-28 18:54:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:54:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14,Updated=TO_DATE('2013-02-28 18:54:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:54:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14,Updated=TO_DATE('2013-02-28 18:54:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7209 +; + +-- Feb 28, 2013 6:54:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2013-02-28 18:54:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:54:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=490,IsDisplayed='Y' WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:54:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=500,IsDisplayed='Y' WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:54:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=480,IsDisplayedGrid='Y' WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:54:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=490,IsDisplayedGrid='Y' WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:54:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=1,Updated=TO_DATE('2013-02-28 18:54:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:55:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=4,Updated=TO_DATE('2013-02-28 18:55:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:55:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2013-02-28 18:55:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7239 +; + +-- Feb 28, 2013 6:56:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14,Updated=TO_DATE('2013-02-28 18:56:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7247 +; + +-- Feb 28, 2013 6:57:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2013-02-28 18:57:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7224 +; + +-- Feb 28, 2013 6:58:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_DATE('2013-02-28 18:58:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53254 +; + +-- Feb 28, 2013 7:00:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',220,1,'N','N',208701,'Y',201865,'N','D','1099 Vendor','N','Y','0e7b06d4-d47a-4ce0-a5a6-8b359bd8590c',100,0,TO_DATE('2013-02-28 19:00:50','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 19:00:50','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 7:00:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201865 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 7:00:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',220,10,'N','N',208700,'Y',201866,'N','D','Default 1099 Box','N','Y','ce66823b-82ef-4a8e-87be-2eeb02076d27',100,0,TO_DATE('2013-02-28 19:00:51','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-02-28 19:00:51','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 7:00:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201866 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=54555 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=9606 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=10592 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=2155 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=9620 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=2160 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=57981 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=2164 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=2133 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=2141 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=2136 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=9600 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=9602 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=9624 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=9601 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=9612 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=9607 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=9622 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=9611 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=10470 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=9628 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=54556 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=9619 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=9610 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=9603 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=420,IsDisplayed='Y' WHERE AD_Field_ID=200622 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=430,IsDisplayed='Y' WHERE AD_Field_ID=9621 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=440,IsDisplayed='Y' WHERE AD_Field_ID=9608 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=450,IsDisplayed='Y' WHERE AD_Field_ID=201865 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=460,IsDisplayed='Y' WHERE AD_Field_ID=201866 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=470,IsDisplayed='Y' WHERE AD_Field_ID=9609 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=480,IsDisplayed='Y' WHERE AD_Field_ID=2124 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=490,IsDisplayed='Y' WHERE AD_Field_ID=3261 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=500,IsDisplayed='Y' WHERE AD_Field_ID=9604 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=510,IsDisplayed='Y' WHERE AD_Field_ID=9618 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=520,IsDisplayed='Y' WHERE AD_Field_ID=9625 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=530,IsDisplayed='Y' WHERE AD_Field_ID=9613 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=540,IsDisplayed='Y' WHERE AD_Field_ID=2154 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=550,IsDisplayed='Y' WHERE AD_Field_ID=2132 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=560,IsDisplayed='Y' WHERE AD_Field_ID=2144 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=570,IsDisplayed='Y' WHERE AD_Field_ID=2127 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=580,IsDisplayed='Y' WHERE AD_Field_ID=2146 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=590,IsDisplayed='Y' WHERE AD_Field_ID=2153 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=600,IsDisplayed='Y' WHERE AD_Field_ID=2148 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=610,IsDisplayed='Y' WHERE AD_Field_ID=2128 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=620,IsDisplayed='Y' WHERE AD_Field_ID=2135 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201865 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=2123 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201866 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=9614 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=9626 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=9623 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=2125 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=2156 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=9627 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=3261 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=2145 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=3228 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=2133 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=2136 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=2141 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=8238 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=10592 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=150,IsDisplayedGrid='Y' WHERE AD_Field_ID=2155 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=160,IsDisplayedGrid='Y' WHERE AD_Field_ID=2160 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=170,IsDisplayedGrid='Y' WHERE AD_Field_ID=57981 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=180,IsDisplayedGrid='Y' WHERE AD_Field_ID=54555 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=190,IsDisplayedGrid='Y' WHERE AD_Field_ID=2132 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=200,IsDisplayedGrid='Y' WHERE AD_Field_ID=2149 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=210,IsDisplayedGrid='Y' WHERE AD_Field_ID=2144 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=220,IsDisplayedGrid='Y' WHERE AD_Field_ID=2162 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=230,IsDisplayedGrid='Y' WHERE AD_Field_ID=3955 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=240,IsDisplayedGrid='Y' WHERE AD_Field_ID=2124 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=250,IsDisplayedGrid='Y' WHERE AD_Field_ID=2164 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=260,IsDisplayedGrid='Y' WHERE AD_Field_ID=2139 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=270,IsDisplayedGrid='Y' WHERE AD_Field_ID=9620 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=280,IsDisplayedGrid='Y' WHERE AD_Field_ID=2148 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=290,IsDisplayedGrid='Y' WHERE AD_Field_ID=2128 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=300,IsDisplayedGrid='Y' WHERE AD_Field_ID=2127 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=310,IsDisplayedGrid='Y' WHERE AD_Field_ID=2146 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=320,IsDisplayedGrid='Y' WHERE AD_Field_ID=2154 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=330,IsDisplayedGrid='Y' WHERE AD_Field_ID=2153 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=340,IsDisplayedGrid='Y' WHERE AD_Field_ID=2135 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=350,IsDisplayedGrid='Y' WHERE AD_Field_ID=57533 +; + +-- Feb 28, 2013 7:01:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET AD_FieldGroup_ID=200006,Updated=TO_DATE('2013-02-28 19:01:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201865 +; + +-- Feb 28, 2013 7:01:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET AD_FieldGroup_ID=200006,Updated=TO_DATE('2013-02-28 19:01:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201866 +; + +-- Feb 28, 2013 7:02:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y',Updated=TO_DATE('2013-02-28 19:02:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201865 +; + +-- Feb 28, 2013 7:02:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y', ColumnSpan=2,Updated=TO_DATE('2013-02-28 19:02:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201866 +; + +-- Feb 28, 2013 7:02:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-02-28 19:02:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201865 +; + +-- Feb 28, 2013 7:02:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='Y', XPosition=4,Updated=TO_DATE('2013-02-28 19:02:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201866 +; + +-- Feb 28, 2013 7:02:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=2,Updated=TO_DATE('2013-02-28 19:02:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201865 +; + +-- Feb 28, 2013 7:03:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y&@Is1099Vendor@=Y',Updated=TO_DATE('2013-02-28 19:03:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201866 +; + +-- Feb 28, 2013 7:08:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormat (CreateCopy,IsForm,IsDefault,AD_PrintFormat_ID,IsStandardHeaderFooter,AD_ReportView_ID,AD_PrintPaper_ID,AD_PrintColor_ID,IsTableBased,AD_Table_ID,HeaderMargin,AD_PrintFont_ID,AD_PrintFormat_UU,FooterMargin,Name,Updated,CreatedBy,Created,UpdatedBy,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('N','N','N',200002,'Y',200000,100,100,'Y',200068,0,130,'b01c8fb7-5846-4543-a64c-9222ee91328f',0,'1099 Extract',TO_DATE('2013-02-28 19:08:53','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-02-28 19:08:53','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',0) +; + +-- Feb 28, 2013 7:09:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintPaper_ID=100, AD_PrintColor_ID=100, AD_Table_ID=200068, AD_PrintFont_ID=130, Name='RV_T_1099Extract_2',Updated=TO_DATE('2013-02-28 19:09:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200002 +; + +-- Feb 28, 2013 7:09:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Name',0,'Y','Y','C',200002,'N',0,'F','N',1,208656,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Name',1,'N','462eaeb4-0e0c-401a-9bd0-460298079211',0,200086,'N',0,TO_DATE('2013-02-28 19:09:13','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:13','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200086 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208656) WHERE AD_PrintFormatItem_ID = 200086 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208656 AND trl.AD_PrintFormatItem_ID = 200086) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Active',0,'N','N','C',200002,'N',0,'F','N',0,208649,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Active',0,'N','02ff5b1f-5eea-4a19-8f8a-00b128e67af0',0,200087,'N',0,TO_DATE('2013-02-28 19:09:14','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:14','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200087 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208649) WHERE AD_PrintFormatItem_ID = 200087 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208649 AND trl.AD_PrintFormatItem_ID = 200087) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Address',0,'N','Y','C',200002,'N',0,'F','N',3,208658,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Address',0,'N','4dc00cfc-1534-4602-9c79-bab9580e1292',0,200088,'N',0,TO_DATE('2013-02-28 19:09:15','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:15','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200088 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208658) WHERE AD_PrintFormatItem_ID = 200088 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208658 AND trl.AD_PrintFormatItem_ID = 200088) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Address 1',0,'N','Y','C',200002,'N',0,'F','N',4,208659,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Address 1',0,'N','cf5653d5-872b-4841-89c1-9072f1de9049',0,200089,'N',0,TO_DATE('2013-02-28 19:09:16','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:16','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200089 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208659) WHERE AD_PrintFormatItem_ID = 200089 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208659 AND trl.AD_PrintFormatItem_ID = 200089) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Address 2',0,'N','Y','C',200002,'N',0,'F','N',5,208660,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Address 2',0,'N','f008554a-71a5-4d27-bbb0-6e5b53a56539',0,200090,'N',0,TO_DATE('2013-02-28 19:09:18','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:18','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200090 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208660) WHERE AD_PrintFormatItem_ID = 200090 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208660 AND trl.AD_PrintFormatItem_ID = 200090) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Address 3',0,'N','Y','C',200002,'N',0,'F','N',6,208661,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Address 3',0,'N','15f2b60f-ddb5-4f46-b2f5-4a0a2e38a91b',0,200091,'N',0,TO_DATE('2013-02-28 19:09:19','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:19','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200091 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208661) WHERE AD_PrintFormatItem_ID = 200091 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208661 AND trl.AD_PrintFormatItem_ID = 200091) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Address 4',0,'N','Y','C',200002,'N',0,'F','N',7,208662,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Address 4',0,'N','08fc0220-e41f-4cda-9d84-f9660eefa7f4',0,200092,'N',0,TO_DATE('2013-02-28 19:09:20','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:20','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200092 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208662) WHERE AD_PrintFormatItem_ID = 200092 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208662 AND trl.AD_PrintFormatItem_ID = 200092) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 1',0,'N','Y','C',200002,'N',0,'F','N',8,208670,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 1',0,'N','e5d5a283-e331-432b-acc2-5bf8af510c85',0,200093,'N',0,TO_DATE('2013-02-28 19:09:21','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:21','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200093 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208670) WHERE AD_PrintFormatItem_ID = 200093 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208670 AND trl.AD_PrintFormatItem_ID = 200093) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 10',0,'N','Y','C',200002,'N',0,'F','N',9,208679,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 10',0,'N','2991916b-7b3e-4c6c-9e80-08657a32a87d',0,200094,'N',0,TO_DATE('2013-02-28 19:09:25','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:25','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200094 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208679) WHERE AD_PrintFormatItem_ID = 200094 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208679 AND trl.AD_PrintFormatItem_ID = 200094) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 11',0,'N','Y','C',200002,'N',0,'F','N',10,208680,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 11',0,'N','3347926a-1833-4d0d-b9e4-8a5026c4f402',0,200095,'N',0,TO_DATE('2013-02-28 19:09:26','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:26','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200095 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208680) WHERE AD_PrintFormatItem_ID = 200095 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208680 AND trl.AD_PrintFormatItem_ID = 200095) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 12',0,'N','Y','C',200002,'N',0,'F','N',11,208681,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 12',0,'N','7ddd1ed4-8b6f-418c-bbda-607fb46c452f',0,200096,'N',0,TO_DATE('2013-02-28 19:09:27','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:27','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200096 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208681) WHERE AD_PrintFormatItem_ID = 200096 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208681 AND trl.AD_PrintFormatItem_ID = 200096) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 13',0,'N','Y','C',200002,'N',0,'F','N',12,208682,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 13',0,'N','ace86336-6342-4585-97e3-c537a4b43214',0,200097,'N',0,TO_DATE('2013-02-28 19:09:28','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:28','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200097 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208682) WHERE AD_PrintFormatItem_ID = 200097 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208682 AND trl.AD_PrintFormatItem_ID = 200097) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 14',0,'N','Y','C',200002,'N',0,'F','N',13,208683,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 14',0,'N','5f6f8594-d760-4ed6-b964-3f80646e13c8',0,200098,'N',0,TO_DATE('2013-02-28 19:09:29','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:29','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200098 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208683) WHERE AD_PrintFormatItem_ID = 200098 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208683 AND trl.AD_PrintFormatItem_ID = 200098) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 15',0,'N','Y','C',200002,'N',0,'F','N',14,208684,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 15',0,'N','74628a15-a658-41dd-ac75-ac2b3cc900f2',0,200099,'N',0,TO_DATE('2013-02-28 19:09:30','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:30','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200099 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208684) WHERE AD_PrintFormatItem_ID = 200099 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208684 AND trl.AD_PrintFormatItem_ID = 200099) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 16',0,'N','Y','C',200002,'N',0,'F','N',15,208685,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 16',0,'N','d1d6071b-f98d-46e8-9bf0-a5020c7dd4f5',0,200100,'N',0,TO_DATE('2013-02-28 19:09:31','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:31','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200100 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208685) WHERE AD_PrintFormatItem_ID = 200100 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208685 AND trl.AD_PrintFormatItem_ID = 200100) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 2',0,'N','Y','C',200002,'N',0,'F','N',16,208671,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 2',0,'N','81d4788a-e624-41c8-a712-0b2371ab056f',0,200101,'N',0,TO_DATE('2013-02-28 19:09:32','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:32','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200101 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208671) WHERE AD_PrintFormatItem_ID = 200101 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208671 AND trl.AD_PrintFormatItem_ID = 200101) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 3',0,'N','Y','C',200002,'N',0,'F','N',17,208672,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 3',0,'N','eaa00a53-5cbc-4f7d-bbfd-bf31946e16a0',0,200102,'N',0,TO_DATE('2013-02-28 19:09:33','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:33','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200102 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208672) WHERE AD_PrintFormatItem_ID = 200102 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208672 AND trl.AD_PrintFormatItem_ID = 200102) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 4',0,'N','Y','C',200002,'N',0,'F','N',18,208673,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 4',0,'N','b6dfb300-1956-4285-8c2e-b5abdb7e943c',0,200103,'N',0,TO_DATE('2013-02-28 19:09:34','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:34','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200103 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208673) WHERE AD_PrintFormatItem_ID = 200103 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208673 AND trl.AD_PrintFormatItem_ID = 200103) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 5',0,'N','Y','C',200002,'N',0,'F','N',19,208674,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 5',0,'N','f01e3057-d8fa-4987-8722-ae69ad9ac96d',0,200104,'N',0,TO_DATE('2013-02-28 19:09:35','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:35','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200104 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208674) WHERE AD_PrintFormatItem_ID = 200104 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208674 AND trl.AD_PrintFormatItem_ID = 200104) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 6',0,'N','Y','C',200002,'N',0,'F','N',20,208675,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 6',0,'N','9596366d-0951-47f0-b673-624b509253d9',0,200105,'N',0,TO_DATE('2013-02-28 19:09:36','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:36','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200105 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208675) WHERE AD_PrintFormatItem_ID = 200105 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208675 AND trl.AD_PrintFormatItem_ID = 200105) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 7',0,'N','Y','C',200002,'N',0,'F','N',21,208676,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 7',0,'N','559a08ac-2794-4879-b8cb-17b51537c1fe',0,200106,'N',0,TO_DATE('2013-02-28 19:09:37','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:37','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200106 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208676) WHERE AD_PrintFormatItem_ID = 200106 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208676 AND trl.AD_PrintFormatItem_ID = 200106) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 8',0,'N','Y','C',200002,'N',0,'F','N',22,208677,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 8',0,'N','968c4a3f-9364-49f2-8f64-b2c2231b146e',0,200107,'N',0,TO_DATE('2013-02-28 19:09:38','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:38','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200107 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208677) WHERE AD_PrintFormatItem_ID = 200107 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208677 AND trl.AD_PrintFormatItem_ID = 200107) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 9',0,'N','Y','C',200002,'N',0,'F','N',23,208678,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 9',0,'N','a3478eab-3923-4475-974a-9527e20686fe',0,200108,'N',0,TO_DATE('2013-02-28 19:09:39','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:39','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200108 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208678) WHERE AD_PrintFormatItem_ID = 200108 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208678 AND trl.AD_PrintFormatItem_ID = 200108) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Business Partner ',0,'N','Y','C',200002,'N',0,'F','N',24,208654,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Business Partner ',0,'N','d9ea53b9-c359-4e66-b804-6b04a6def4a8',0,200109,'N',0,TO_DATE('2013-02-28 19:09:40','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:40','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200109 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208654) WHERE AD_PrintFormatItem_ID = 200109 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208654 AND trl.AD_PrintFormatItem_ID = 200109) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('City',0,'N','Y','C',200002,'N',0,'F','N',25,208664,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','City',0,'N','17a34303-29d9-4aa6-8bbe-15cca5bd1d96',0,200110,'N',0,TO_DATE('2013-02-28 19:09:41','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:41','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200110 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208664) WHERE AD_PrintFormatItem_ID = 200110 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208664 AND trl.AD_PrintFormatItem_ID = 200110) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('City State Zip',0,'N','Y','C',200002,'N',0,'F','N',26,208663,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','City State Zip',0,'N','3fbef02b-4409-4721-8969-e74a4895458f',0,200111,'N',0,TO_DATE('2013-02-28 19:09:42','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:42','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200111 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208663) WHERE AD_PrintFormatItem_ID = 200111 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208663 AND trl.AD_PrintFormatItem_ID = 200111) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Client',0,'N','N','C',200002,'N',0,'F','N',0,208647,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Client',0,'N','a806b83b-62ac-4170-b673-61c164747c29',0,200112,'N',0,TO_DATE('2013-02-28 19:09:43','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:43','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200112 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208647) WHERE AD_PrintFormatItem_ID = 200112 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208647 AND trl.AD_PrintFormatItem_ID = 200112) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Country',0,'N','Y','C',200002,'N',0,'F','N',28,208667,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Country',0,'N','749bf9d9-54e2-4371-9fea-aa0ca506fd14',0,200113,'N',0,TO_DATE('2013-02-28 19:09:44','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:44','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200113 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208667) WHERE AD_PrintFormatItem_ID = 200113 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208667 AND trl.AD_PrintFormatItem_ID = 200113) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Created',0,'N','N','C',200002,'N',0,'F','N',0,208650,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Created',0,'N','bef4d265-9e6a-471d-a925-2ea54f39a248',0,200114,'N',0,TO_DATE('2013-02-28 19:09:45','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:45','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200114 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208650) WHERE AD_PrintFormatItem_ID = 200114 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208650 AND trl.AD_PrintFormatItem_ID = 200114) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Created By',0,'N','N','C',200002,'N',0,'F','N',0,208651,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Created By',0,'N','624fa07f-e24e-467f-bf4e-cae90435b9c9',0,200115,'N',0,TO_DATE('2013-02-28 19:09:49','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:49','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200115 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208651) WHERE AD_PrintFormatItem_ID = 200115 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208651 AND trl.AD_PrintFormatItem_ID = 200115) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Cut Date',0,'N','Y','C',200002,'N',0,'F','N',31,208669,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Cut Date',0,'N','175f1a41-cb24-4089-943f-b808a54d6e7d',0,200116,'N',0,TO_DATE('2013-02-28 19:09:50','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:50','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200116 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208669) WHERE AD_PrintFormatItem_ID = 200116 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208669 AND trl.AD_PrintFormatItem_ID = 200116) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Cut Year',0,'N','Y','C',200002,'N',0,'F','N',32,208668,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Cut Year',0,'N','b44919b5-8a2c-4854-94c1-c98c8927e2d1',0,200117,'N',0,TO_DATE('2013-02-28 19:09:51','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:51','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200117 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208668) WHERE AD_PrintFormatItem_ID = 200117 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208668 AND trl.AD_PrintFormatItem_ID = 200117) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Organization',0,'N','N','C',200002,'N',0,'F','N',0,208648,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Organization',0,'N','1d91444f-d1c7-49a0-a9b3-c02a06b51e0f',0,200118,'N',0,TO_DATE('2013-02-28 19:09:52','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:52','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200118 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208648) WHERE AD_PrintFormatItem_ID = 200118 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208648 AND trl.AD_PrintFormatItem_ID = 200118) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Process Instance',0,'N','Y','C',200002,'N',0,'F','N',34,208646,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Process Instance',0,'N','4e7dfbea-16b2-46db-9459-16bb44e843ca',0,200119,'N',0,TO_DATE('2013-02-28 19:09:53','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:53','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200119 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208646) WHERE AD_PrintFormatItem_ID = 200119 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208646 AND trl.AD_PrintFormatItem_ID = 200119) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('region',0,'N','Y','C',200002,'N',0,'F','N',35,208665,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','region',0,'N','c4911e30-c3b3-49eb-9e3d-1d6ac6eff5c3',0,200120,'N',0,TO_DATE('2013-02-28 19:09:54','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:54','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200120 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208665) WHERE AD_PrintFormatItem_ID = 200120 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208665 AND trl.AD_PrintFormatItem_ID = 200120) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Search Key',0,'N','Y','C',200002,'N',0,'F','N',36,208655,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Search Key',0,'N','d544205b-8f42-4b07-8e7f-d7309da97197',0,200121,'N',0,TO_DATE('2013-02-28 19:09:58','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:58','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200121 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208655) WHERE AD_PrintFormatItem_ID = 200121 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208655 AND trl.AD_PrintFormatItem_ID = 200121) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:10:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Tax ID',0,'N','Y','C',200002,'N',0,'F','N',37,208657,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Tax ID',0,'N','a5dbd31d-4740-4ceb-b8f3-bc98549252b8',0,200122,'N',0,TO_DATE('2013-02-28 19:09:59','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:09:59','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:10:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200122 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:10:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208657) WHERE AD_PrintFormatItem_ID = 200122 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208657 AND trl.AD_PrintFormatItem_ID = 200122) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:10:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Updated',0,'N','N','C',200002,'N',0,'F','N',0,208652,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Updated',0,'N','6aebbb2e-9756-4584-bcf5-272c3eb21844',0,200123,'N',0,TO_DATE('2013-02-28 19:10:00','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:10:00','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:10:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200123 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:10:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208652) WHERE AD_PrintFormatItem_ID = 200123 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208652 AND trl.AD_PrintFormatItem_ID = 200123) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:10:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Updated By',0,'N','N','C',200002,'N',0,'F','N',0,208653,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Updated By',0,'N','09ab74ff-5e56-484e-8947-e0a94bdbd2bc',0,200124,'N',0,TO_DATE('2013-02-28 19:10:01','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:10:01','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:10:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200124 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:10:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208653) WHERE AD_PrintFormatItem_ID = 200124 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208653 AND trl.AD_PrintFormatItem_ID = 200124) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:10:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Zip',0,'N','Y','C',200002,'N',0,'F','N',40,208666,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Zip',0,'N','e697164c-2e56-4205-9e81-0f7f3fa0b56c',0,200125,'N',0,TO_DATE('2013-02-28 19:10:02','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-02-28 19:10:02','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:10:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200125 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:10:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208666) WHERE AD_PrintFormatItem_ID = 200125 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208666 AND trl.AD_PrintFormatItem_ID = 200125) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:10:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintFont_ID=160,Updated=TO_DATE('2013-02-28 19:10:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200002 +; + +-- Feb 28, 2013 7:10:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET Name='1099 Extract',Updated=TO_DATE('2013-02-28 19:10:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200002 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200088 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200109 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200110 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200116 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200119 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200121 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200125 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200120 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=10,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200086 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=20,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200089 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200090 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200091 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200092 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=60,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200111 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=70,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200113 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=80,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200122 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=90,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200117 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=100,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200093 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=110,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200101 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=120,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200102 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=130,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200103 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=140,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200104 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=150,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200105 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=160,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200106 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=170,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200107 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=180,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200108 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=190,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200094 +; + +-- Feb 28, 2013 7:11:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=200,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200095 +; + +-- Feb 28, 2013 7:11:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=210,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200096 +; + +-- Feb 28, 2013 7:11:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=220,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200097 +; + +-- Feb 28, 2013 7:11:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=230,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200098 +; + +-- Feb 28, 2013 7:11:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=240,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200099 +; + +-- Feb 28, 2013 7:11:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=250,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200100 +; + +-- Feb 28, 2013 7:13:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Region', Name='Region', PrintName='Region',Updated=TO_DATE('2013-02-28 19:13:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202243 +; + +-- Feb 28, 2013 7:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202243 +; + +-- Feb 28, 2013 7:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Region', Name='Region', Description=NULL, Help=NULL WHERE AD_Element_ID=202243 +; + +-- Feb 28, 2013 7:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Region', Name='Region', Description=NULL, Help=NULL, AD_Element_ID=202243 WHERE UPPER(ColumnName)='REGION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 7:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Region', Name='Region', Description=NULL, Help=NULL WHERE AD_Element_ID=202243 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 7:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Region', Name='Region', Description=NULL, Help=NULL WHERE AD_Element_ID=202243 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 7:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Region', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202243) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 7:13:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Region', Name='Region' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202243) +; + +-- Feb 28, 2013 7:14:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Year', SortNo=0,Updated=TO_DATE('2013-02-28 19:14:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200117 +; + +-- Feb 28, 2013 7:14:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200117 +; + +-- Feb 28, 2013 7:14:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 1/10', SortNo=0,Updated=TO_DATE('2013-02-28 19:14:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200093 +; + +-- Feb 28, 2013 7:14:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200093 +; + +-- Feb 28, 2013 7:14:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 2/13', SortNo=0,Updated=TO_DATE('2013-02-28 19:14:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200101 +; + +-- Feb 28, 2013 7:14:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200101 +; + +-- Feb 28, 2013 7:15:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 3/14', SortNo=0,Updated=TO_DATE('2013-02-28 19:15:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200102 +; + +-- Feb 28, 2013 7:15:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200102 +; + +-- Feb 28, 2013 7:15:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 4/15a', SortNo=0,Updated=TO_DATE('2013-02-28 19:15:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200103 +; + +-- Feb 28, 2013 7:15:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200103 +; + +-- Feb 28, 2013 7:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 5/15b', SortNo=0,Updated=TO_DATE('2013-02-28 19:15:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200104 +; + +-- Feb 28, 2013 7:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200104 +; + +-- Feb 28, 2013 7:15:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 6/16', SortNo=0,Updated=TO_DATE('2013-02-28 19:15:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200105 +; + +-- Feb 28, 2013 7:15:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200105 +; + +-- Feb 28, 2013 7:15:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 7/17', SortNo=0,Updated=TO_DATE('2013-02-28 19:15:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200106 +; + +-- Feb 28, 2013 7:15:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200106 +; + +-- Feb 28, 2013 7:15:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 8/18', SortNo=0,Updated=TO_DATE('2013-02-28 19:15:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200107 +; + +-- Feb 28, 2013 7:15:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200107 +; + +-- Feb 28, 2013 7:15:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 10', SortNo=0,Updated=TO_DATE('2013-02-28 19:15:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200108 +; + +-- Feb 28, 2013 7:15:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200108 +; + +-- Feb 28, 2013 7:15:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 13', SortNo=0,Updated=TO_DATE('2013-02-28 19:15:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200094 +; + +-- Feb 28, 2013 7:15:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200094 +; + +-- Feb 28, 2013 7:15:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 14', SortNo=0,Updated=TO_DATE('2013-02-28 19:15:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200095 +; + +-- Feb 28, 2013 7:15:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200095 +; + +-- Feb 28, 2013 7:15:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 15a', SortNo=0,Updated=TO_DATE('2013-02-28 19:15:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200096 +; + +-- Feb 28, 2013 7:15:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200096 +; + +-- Feb 28, 2013 7:15:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 15b', SortNo=0,Updated=TO_DATE('2013-02-28 19:15:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200097 +; + +-- Feb 28, 2013 7:15:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200097 +; + +-- Feb 28, 2013 7:15:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 16', SortNo=0,Updated=TO_DATE('2013-02-28 19:15:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200098 +; + +-- Feb 28, 2013 7:15:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200098 +; + +-- Feb 28, 2013 7:16:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 17', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200099 +; + +-- Feb 28, 2013 7:16:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200099 +; + +-- Feb 28, 2013 7:16:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 18', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200100 +; + +-- Feb 28, 2013 7:16:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200100 +; + +-- Feb 28, 2013 7:16:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200089 +; + +-- Feb 28, 2013 7:16:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200090 +; + +-- Feb 28, 2013 7:16:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200091 +; + +-- Feb 28, 2013 7:16:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200092 +; + +-- Feb 28, 2013 7:16:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200111 +; + +-- Feb 28, 2013 7:16:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200113 +; + +-- Feb 28, 2013 7:16:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200108 +; + +-- Feb 28, 2013 7:16:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200094 +; + +-- Feb 28, 2013 7:16:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200095 +; + +-- Feb 28, 2013 7:16:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200096 +; + +-- Feb 28, 2013 7:16:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200097 +; + +-- Feb 28, 2013 7:16:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200098 +; + +-- Feb 28, 2013 7:16:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:16:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200099 +; + +-- Feb 28, 2013 7:17:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200100 +; + +-- Feb 28, 2013 7:17:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200089 +; + +-- Feb 28, 2013 7:17:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200090 +; + +-- Feb 28, 2013 7:17:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200091 +; + +-- Feb 28, 2013 7:17:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200092 +; + +-- Feb 28, 2013 7:17:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200111 +; + +-- Feb 28, 2013 7:17:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200113 +; + +-- Feb 28, 2013 7:17:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=1, SortNo=0,Updated=TO_DATE('2013-02-28 19:17:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200089 +; + +-- Feb 28, 2013 7:17:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=1, SortNo=0,Updated=TO_DATE('2013-02-28 19:17:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200090 +; + +-- Feb 28, 2013 7:17:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=1, SortNo=0,Updated=TO_DATE('2013-02-28 19:17:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200091 +; + +-- Feb 28, 2013 7:17:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=1, SortNo=0,Updated=TO_DATE('2013-02-28 19:17:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200092 +; + +-- Feb 28, 2013 7:17:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=1, SortNo=0,Updated=TO_DATE('2013-02-28 19:17:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200111 +; + +-- Feb 28, 2013 7:17:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=1, SortNo=0,Updated=TO_DATE('2013-02-28 19:17:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200113 +; + +-- Feb 28, 2013 7:17:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200100 +; + +-- Feb 28, 2013 7:17:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200099 +; + +-- Feb 28, 2013 7:17:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200098 +; + +-- Feb 28, 2013 7:17:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200097 +; + +-- Feb 28, 2013 7:17:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200096 +; + +-- Feb 28, 2013 7:17:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200095 +; + +-- Feb 28, 2013 7:17:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_DATE('2013-02-28 19:17:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200094 +; + +-- Feb 28, 2013 7:18:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', BelowColumn=10, SortNo=0,Updated=TO_DATE('2013-02-28 19:18:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200108 +; + +-- Feb 28, 2013 7:18:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=11, SortNo=0,Updated=TO_DATE('2013-02-28 19:18:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200094 +; + +-- Feb 28, 2013 7:18:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=12, SortNo=0,Updated=TO_DATE('2013-02-28 19:18:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200095 +; + +-- Feb 28, 2013 7:18:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=13, SortNo=0,Updated=TO_DATE('2013-02-28 19:18:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200096 +; + +-- Feb 28, 2013 7:18:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=14, SortNo=0,Updated=TO_DATE('2013-02-28 19:18:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200097 +; + +-- Feb 28, 2013 7:18:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=15, SortNo=0,Updated=TO_DATE('2013-02-28 19:18:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200098 +; + +-- Feb 28, 2013 7:18:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=16, SortNo=0,Updated=TO_DATE('2013-02-28 19:18:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200099 +; + +-- Feb 28, 2013 7:18:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=17, SortNo=0,Updated=TO_DATE('2013-02-28 19:18:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200100 +; + +-- Feb 28, 2013 7:18:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, YPosition=0, MaxWidth=180,Updated=TO_DATE('2013-02-28 19:18:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200086 +; + +-- Feb 28, 2013 7:18:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, MaxWidth=64,Updated=TO_DATE('2013-02-28 19:18:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200122 +; + +-- Feb 28, 2013 7:19:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsFixedWidth='Y', SortNo=0, MaxWidth=24,Updated=TO_DATE('2013-02-28 19:19:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200117 +; + +-- Feb 28, 2013 7:19:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_DATE('2013-02-28 19:19:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200089 +; + +-- Feb 28, 2013 7:19:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_DATE('2013-02-28 19:19:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200090 +; + +-- Feb 28, 2013 7:19:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_DATE('2013-02-28 19:19:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200091 +; + +-- Feb 28, 2013 7:19:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_DATE('2013-02-28 19:19:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200092 +; + +-- Feb 28, 2013 7:19:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_DATE('2013-02-28 19:19:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200111 +; + +-- Feb 28, 2013 7:19:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_DATE('2013-02-28 19:19:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200113 +; + +-- Feb 28, 2013 7:19:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_DATE('2013-02-28 19:19:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200122 +; + +-- Feb 28, 2013 7:19:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_DATE('2013-02-28 19:19:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200117 +; + +CREATE OR REPLACE FUNCTION asu_get1099bucket ( + p_cbpartner_id IN NUMBER, + p_cut_date IN DATE, + p_bucket IN NUMBER +) + RETURN NUMBER +IS + tmpvar NUMBER; +/****************************************************************************** + NAME: asu_get1099bucket + PURPOSE: + + REVISIONS: + Ver Date Author Description + --------- ---------- --------------- ------------------------------------ + 1.0 04/01/2008 Carlos Ruiz 1. Created this function. + +******************************************************************************/ +BEGIN + SELECT SUM ( (NVL (linenetamt, 0) + NVL (taxamt, 0)) + * DECODE + (docbasetype, + 'API', 1, + 'APC', -1, + 0 + ) -- +API->AP Invoice / -APC->AP Credit Memo + ) + INTO tmpvar + FROM C_INVOICE i, C_INVOICELINE il, ASU_1099BOX b, C_DOCTYPE dt + WHERE i.c_invoice_id = il.c_invoice_id + AND i.issotrx = 'N' + AND il.asu_1099box_id = b.asu_1099box_id + AND i.dateacct BETWEEN TRUNC (p_cut_date, 'YEAR') AND p_cut_date + AND c_bpartner_id = p_cbpartner_id + AND b.bucket = p_bucket + AND i.c_doctype_id = dt.c_doctype_id + AND i.docstatus IN ('CO', 'CL'); + + RETURN tmpvar; +END asu_get1099bucket; +/ + +SELECT register_migration_script('201303041619_TICKET-1001763_1099Extract.sql') FROM dual +; \ No newline at end of file diff --git a/migration/i1.0a-release/oracle/201303041621_TICKET-1001763_BankRegister.sql b/migration/i1.0a-release/oracle/201303041621_TICKET-1001763_BankRegister.sql new file mode 100644 index 0000000000..b841838c51 --- /dev/null +++ b/migration/i1.0a-release/oracle/201303041621_TICKET-1001763_BankRegister.sql @@ -0,0 +1,1202 @@ +-- Mar 1, 2013 12:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','4',0,200070,'N','N','N','D','L','056ac053-9bfe-418e-b853-c5bc786bb13d','Y','Y','T_BankRegister','Bank Register',0,'Y',0,TO_DATE('2013-03-01 12:13:23','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2013-03-01 12:13:23','YYYY-MM-DD HH24:MI:SS')) +; + +-- Mar 1, 2013 12:13:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200070 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Mar 1, 2013 12:13:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200065,'0fa01ed9-afaa-495b-bfad-0b07a31c5ef1','Table T_BankRegister','T_BankRegister',1,0,0,TO_DATE('2013-03-01 12:13:27','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 12:13:27','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +-- Mar 1, 2013 12:14:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208705,'D','Y','N','N','N',22,'N',19,129,'N',102,'N','Y','d8581197-a7d9-4b73-87b8-eb9d9e13412d','N','AD_Client_ID','Client/Tenant for this installation.','@#AD_Client_ID@','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',100,TO_DATE('2013-03-01 12:13:59','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:13:59','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208705 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208706,'D','Y','N','N','N',22,'N',19,104,'N',113,'N','Y','fcc8b867-b51d-443d-8547-5c23c16d49b3','N','AD_Org_ID','Organizational entity within client','@#AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',100,TO_DATE('2013-03-01 12:14:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:14:01','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208706 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('T_BankRegister_ID',202252,'D','Bank Register','Bank Register','73b6821f-cacd-4b95-8989-fdd4db810c18',0,TO_DATE('2013-03-01 12:14:02','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 12:14:02','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 12:14:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202252 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 12:14:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208707,'D','Y','N','N','N',22,'N',13,'Y',202252,'N','Y','380a9f61-f43d-47d9-ba43-c363c3bd7190','N','T_BankRegister_ID','Bank Register','N',100,TO_DATE('2013-03-01 12:14:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:14:02','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208707 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('T_BankRegister_UU',202253,'D','T_BankRegister_UU','T_BankRegister_UU','dd68c280-981a-47fa-9d3f-e1bda934a2f7',0,TO_DATE('2013-03-01 12:14:04','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 12:14:04','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 12:14:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202253 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 12:14:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1.00,'N',200070,208708,'D','N','N','N','N',36,'N',10,'N',202253,'N','Y','3f3a42a2-2ad2-4756-afcd-2993c96e7987','Y','T_BankRegister_UU','T_BankRegister_UU','N',100,TO_DATE('2013-03-01 12:14:04','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:14:04','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208708 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208709,'D','Y','N','N','N',7,'N',16,'N',245,'N','Y','a1b905d6-7cd8-4ed0-8a59-3ec5d3d35b58','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',100,TO_DATE('2013-03-01 12:14:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:14:05','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208709 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208710,'D',110,'Y','N','N','N',22,'N',18,'N',246,'N','Y','d1335a32-f622-4024-a68e-6e641b241f62','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',100,TO_DATE('2013-03-01 12:14:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:14:06','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208710 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208711,'D','N','N','N','N',255,'Y',10,'N',275,'N','Y','d1490e91-db2d-49c9-8cd8-1297bed95ac5','Y','Description','Optional short description of the record','A description is limited to 255 characters.','Description','Y',100,TO_DATE('2013-03-01 12:14:07','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:14:07','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208711 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208712,'D','Y','N','N','N',1,'N',20,'N',348,'N','Y','94491fa5-7db6-4dec-b314-a9688bee7448','Y','IsActive','The record is active in the system','Y','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.','Active','N',100,TO_DATE('2013-03-01 12:14:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:14:08','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208712 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208713,'D','Y','N','Y',1,'N',60,'Y',10,'N',469,'N','Y','b564aaea-00f3-4e95-8b54-92fc429773fa','Y','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.','Name','Y',100,TO_DATE('2013-03-01 12:14:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:14:09','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208713 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208714,'D','Y','N','N','N',7,'N',16,'N',607,'N','Y','f48e0d0d-f6b6-4480-9c9f-d0c23b0c444f','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',100,TO_DATE('2013-03-01 12:14:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:14:09','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208714 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208715,'D',110,'Y','N','N','N',22,'N',18,'N',608,'N','Y','0d92d81c-275b-4a41-850e-9cc0de1fcb6e','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',100,TO_DATE('2013-03-01 12:14:10','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:14:10','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208715 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:15:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208709 +; + +-- Mar 1, 2013 12:15:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208709 +; + +-- Mar 1, 2013 12:15:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208710 +; + +-- Mar 1, 2013 12:15:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208710 +; + +-- Mar 1, 2013 12:15:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208711 +; + +-- Mar 1, 2013 12:15:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208711 +; + +-- Mar 1, 2013 12:15:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208712 +; + +-- Mar 1, 2013 12:15:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208712 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208713 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208713 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208707 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208707 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208708 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208708 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208714 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208714 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208715 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208715 +; + +-- Mar 1, 2013 12:16:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208716,'D','N','N','N',0,'N',255,'N',10,'N',53376,'N','Y','e49931b5-c130-4b1f-a8be-e565ea53bd02','Y','Account','Account','Y',100,TO_DATE('2013-03-01 12:16:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:16:06','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:16:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208716 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:16:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208717,'D','Y','N','N',0,'N',10,'N',19,'N',114,'N','Y','b9c60eff-b0e6-4a78-80f8-df80af14022b','Y','AD_PInstance_ID','Instance of the process','Process Instance','Y',100,TO_DATE('2013-03-01 12:16:56','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:16:56','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:16:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208717 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:17:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208718,'D','N','N','N',0,'N',14,'N',12,'N',161,'N','Y','a228827f-3770-488c-80e3-1ab73c5734e5','Y','AmtAcctCr','Accounted Credit Amount','The Account Credit Amount indicates the transaction amount converted to this organization''s accounting currency','Accounted Credit','Y',100,TO_DATE('2013-03-01 12:17:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:17:28','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:17:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208718 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:17:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208719,'D','N','N','N',0,'N',14,'N',12,'N',162,'N','Y','bc3f8bdc-d233-4544-a3fc-c8bf0d046e6e','Y','AmtAcctDr','Accounted Debit Amount','The Account Debit Amount indicates the transaction amount converted to this organization''s accounting currency','Accounted Debit','Y',100,TO_DATE('2013-03-01 12:17:55','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:17:55','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:17:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208719 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:18:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208720,'D','N','N','N',0,'N',14,'N',22,'N',1986,'N','Y','8ef7f56e-284e-4fc7-91e1-301f759eb235','Y','Balance','Balance','Y',100,TO_DATE('2013-03-01 12:18:36','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:18:36','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:18:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208720 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:19:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208721,'D','N','N','N',0,'N',255,'N',10,'N',52002,'N','Y','ed795859-4509-41fa-92c0-fae0c18c3030','Y','BankName','Bank Name','Y',100,TO_DATE('2013-03-01 12:19:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:19:08','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:19:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208721 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:19:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('BPartner',202254,'D','Business Partner','Business Partner','c8d7e6c2-0b7c-466d-a99d-9f4597270888',0,TO_DATE('2013-03-01 12:19:44','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 12:19:44','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 12:19:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202254 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 12:20:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208722,'D','N','N','N',0,'N',255,'N',10,'N',202254,'N','Y','5e301a06-906c-40f0-8eac-e17b3cdda13a','Y','BPartner','Business Partner','Y',100,TO_DATE('2013-03-01 12:20:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:20:05','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:20:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208722 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:20:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208723,'D','N','N','N',0,'N',10,'N',19,'N',835,'N','Y','fe2c8b78-da6b-4092-8339-d52696c932e4','Y','C_Bank_ID','Bank','The Bank is a unique identifier of a Bank for this Organization or for a Business Partner with whom this Organization transacts.','Bank','Y',100,TO_DATE('2013-03-01 12:20:38','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:20:38','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:20:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208723 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:21:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208724,'D','N','N','N',0,'N',10,'N',19,'N',187,'N','Y','599f8306-bea2-41ff-984e-d3a438e44122','Y','C_BPartner_ID','Identifies a Business Partner','A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Business Partner ','Y',100,TO_DATE('2013-03-01 12:21:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:21:08','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:21:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208724 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:21:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208725,'D','N','N','N',0,'N',7,'N',15,'N',263,'N','Y','f8998d88-9970-48df-9cb1-3d1292a9b4c5','Y','DateAcct','Accounting Date','The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.','Account Date','Y',100,TO_DATE('2013-03-01 12:21:32','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:21:32','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:21:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208725 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:22:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208726,'D','N','N','N',0,'N',255,'N',10,'N',290,'N','Y','69152f34-2da2-4cc0-862f-7c4189e77d8f','Y','DocumentNo','Document sequence number of the document','The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". + +If the document type of your document has no automatic document sequence defined, the field is empty if you create a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Document No','Y',100,TO_DATE('2013-03-01 12:22:11','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 12:22:11','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:22:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208726 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:26:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +CREATE TABLE T_BankRegister (Account NVARCHAR2(255) DEFAULT NULL , AD_Client_ID NUMBER(10) NOT NULL, AD_Org_ID NUMBER(10) NOT NULL, AD_PInstance_ID NUMBER(10) NOT NULL, AmtAcctCr NUMBER DEFAULT NULL , AmtAcctDr NUMBER DEFAULT NULL , Balance NUMBER DEFAULT NULL , BankName NVARCHAR2(255) DEFAULT NULL , BPartner NVARCHAR2(255) DEFAULT NULL , C_Bank_ID NUMBER(10) DEFAULT NULL , C_BPartner_ID NUMBER(10) DEFAULT NULL , DateAcct DATE DEFAULT NULL , DocumentNo NVARCHAR2(255) DEFAULT NULL ) +; + +-- Mar 1, 2013 12:27:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormat (CreateCopy,IsForm,IsDefault,AD_PrintFormat_ID,IsStandardHeaderFooter,AD_PrintPaper_ID,AD_PrintColor_ID,AD_PrintTableFormat_ID,IsTableBased,AD_Table_ID,HeaderMargin,AD_PrintFont_ID,AD_PrintFormat_UU,FooterMargin,Name,Updated,CreatedBy,Created,UpdatedBy,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('N','N','N',200003,'Y',100,100,100,'Y',200070,0,130,'ae17352f-3b58-4771-837a-40f87d88c0ca',0,'Bank Register Report',TO_DATE('2013-03-01 12:27:10','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 12:27:10','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',0) +; + +-- Mar 1, 2013 12:27:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintPaper_ID=100, AD_PrintColor_ID=100, AD_Table_ID=200070, AD_PrintFont_ID=130, Name='Bank Register_2',Updated=TO_DATE('2013-03-01 12:27:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200003 +; + +-- Mar 1, 2013 12:27:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account',0,'N','Y','C',200003,'N',0,'F','N',1,208716,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Account',0,'N','113ed988-6424-4f34-a72c-30d1e340c40e',0,200126,'N',0,TO_DATE('2013-03-01 12:27:23','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:27:23','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200126 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208716) WHERE AD_PrintFormatItem_ID = 200126 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208716 AND trl.AD_PrintFormatItem_ID = 200126) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account Date',0,'N','Y','C',200003,'N',0,'F','N',2,208725,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Acct Date',0,'N','18b91a0a-1335-460b-9cdf-4530451e41ca',0,200127,'N',0,TO_DATE('2013-03-01 12:27:25','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:27:25','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200127 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208725) WHERE AD_PrintFormatItem_ID = 200127 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208725 AND trl.AD_PrintFormatItem_ID = 200127) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Accounted Credit',0,'N','Y','C',200003,'N',0,'F','N',3,208718,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Acct Credit',0,'N','d3b49d5b-c669-4337-adc5-79a8ebc2301d',0,200128,'N',0,TO_DATE('2013-03-01 12:27:27','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:27:27','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200128 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208718) WHERE AD_PrintFormatItem_ID = 200128 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208718 AND trl.AD_PrintFormatItem_ID = 200128) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Accounted Debit',0,'N','Y','C',200003,'N',0,'F','N',4,208719,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Acct Debit',0,'N','208fb750-11ec-4190-b718-e93d1c8061e5',0,200129,'N',0,TO_DATE('2013-03-01 12:27:28','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:27:28','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200129 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208719) WHERE AD_PrintFormatItem_ID = 200129 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208719 AND trl.AD_PrintFormatItem_ID = 200129) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Balance',0,'N','Y','C',200003,'N',0,'F','N',5,208720,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Balance',0,'N','2e94bab6-2aeb-40f0-92d7-a884411cdb9f',0,200130,'N',0,TO_DATE('2013-03-01 12:27:29','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:27:29','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200130 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208720) WHERE AD_PrintFormatItem_ID = 200130 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208720 AND trl.AD_PrintFormatItem_ID = 200130) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Bank',0,'N','Y','C',200003,'N',0,'F','N',6,208723,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Bank',0,'N','141eccb4-5315-4762-bd58-b4a5fdb48e74',0,200131,'N',0,TO_DATE('2013-03-01 12:27:30','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:27:30','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200131 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208723) WHERE AD_PrintFormatItem_ID = 200131 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208723 AND trl.AD_PrintFormatItem_ID = 200131) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Bank Name',0,'N','Y','C',200003,'N',0,'F','N',7,208721,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Bank Name',0,'N','fc869b0c-2dab-4ac6-aed7-121ca9b62cad',0,200132,'N',0,TO_DATE('2013-03-01 12:27:30','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:27:30','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200132 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208721) WHERE AD_PrintFormatItem_ID = 200132 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208721 AND trl.AD_PrintFormatItem_ID = 200132) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Business Partner',0,'N','Y','C',200003,'N',0,'F','N',8,208722,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Business Partner',0,'N','2ad953c8-379a-4d99-9bae-b50c09b3499e',0,200133,'N',0,TO_DATE('2013-03-01 12:27:31','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:27:31','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200133 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208722) WHERE AD_PrintFormatItem_ID = 200133 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208722 AND trl.AD_PrintFormatItem_ID = 200133) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Business Partner ',0,'N','Y','C',200003,'N',0,'F','N',9,208724,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Business Partner ',0,'N','860444b7-8b81-432e-b6d8-cfdaa6ce70bf',0,200134,'N',0,TO_DATE('2013-03-01 12:27:32','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:27:32','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200134 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208724) WHERE AD_PrintFormatItem_ID = 200134 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208724 AND trl.AD_PrintFormatItem_ID = 200134) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Document No',0,'N','Y','C',200003,'N',0,'F','N',10,208726,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Document No',0,'N','ad917736-2b40-4ae6-90a8-4f782c9d1930',0,200135,'N',0,TO_DATE('2013-03-01 12:27:33','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:27:33','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200135 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208726) WHERE AD_PrintFormatItem_ID = 200135 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208726 AND trl.AD_PrintFormatItem_ID = 200135) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Process Instance',0,'N','Y','C',200003,'N',0,'F','N',11,208717,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Process Instance',0,'N','78a7220b-696f-4551-9418-642636ff89c2',0,200136,'N',0,TO_DATE('2013-03-01 12:27:34','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:27:34','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200136 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208717) WHERE AD_PrintFormatItem_ID = 200136 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208717 AND trl.AD_PrintFormatItem_ID = 200136) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Client',0,'N','N','C',200003,'N',0,'F','N',0,208705,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Client',0,'N','f8bdb97d-daa7-4e33-9876-436d55127902',0,200137,'N',0,TO_DATE('2013-03-01 12:27:34','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:27:34','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200137 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208705) WHERE AD_PrintFormatItem_ID = 200137 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208705 AND trl.AD_PrintFormatItem_ID = 200137) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Organization',0,'N','N','C',200003,'N',0,'F','N',0,208706,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Organization',0,'N','3fed5bed-5483-4587-8317-8611da138896',0,200138,'N',0,TO_DATE('2013-03-01 12:27:35','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:27:35','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200138 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208706) WHERE AD_PrintFormatItem_ID = 200138 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208706 AND trl.AD_PrintFormatItem_ID = 200138) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET Name='Bank Register Report',Updated=TO_DATE('2013-03-01 12:27:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200003 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200126 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200131 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200136 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=10,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200132 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=20,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200133 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200134 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200135 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200127 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=60,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200128 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=70,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200129 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=80,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200130 +; + +-- Mar 1, 2013 12:28:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200134 +; + +-- Mar 1, 2013 12:28:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200135 +; + +-- Mar 1, 2013 12:28:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200127 +; + +-- Mar 1, 2013 12:28:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200128 +; + +-- Mar 1, 2013 12:28:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=60,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200129 +; + +-- Mar 1, 2013 12:28:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=70,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200130 +; + +-- Mar 1, 2013 12:29:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SortNo=10,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=200127 +; + +-- Mar 1, 2013 12:29:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SortNo=20,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=200135 +; + +-- Mar 1, 2013 12:29:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, MaxWidth=144,Updated=TO_DATE('2013-03-01 12:29:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200133 +; + +-- Mar 1, 2013 12:29:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, YPosition=0, MaxWidth=108,Updated=TO_DATE('2013-03-01 12:29:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200135 +; + +-- Mar 1, 2013 12:29:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSummarized='Y', SortNo=0,Updated=TO_DATE('2013-03-01 12:29:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200130 +; + +-- Mar 1, 2013 12:29:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSummarized='Y', SortNo=0,Updated=TO_DATE('2013-03-01 12:29:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200129 +; + +-- Mar 1, 2013 12:30:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSummarized='Y', SortNo=0,Updated=TO_DATE('2013-03-01 12:30:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200128 +; + +-- Mar 1, 2013 12:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_ReportView (AD_ReportView_UU,AD_Table_ID,AD_ReportView_ID,EntityType,Name,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Org_ID,IsActive) VALUES ('863599ca-4cb8-4e07-b76e-db54f4ed5a8d',200070,200001,'D','T_BankRegister',0,TO_DATE('2013-03-01 12:31:57','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 12:31:57','YYYY-MM-DD HH24:MI:SS'),100,0,'Y') +; + +-- Mar 1, 2013 12:33:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormat (CreateCopy,IsForm,IsDefault,AD_PrintFormat_ID,IsStandardHeaderFooter,AD_ReportView_ID,AD_PrintPaper_ID,AD_PrintColor_ID,AD_PrintTableFormat_ID,IsTableBased,AD_Table_ID,HeaderMargin,AD_PrintFont_ID,AD_PrintFormat_UU,FooterMargin,Name,Updated,CreatedBy,Created,UpdatedBy,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('N','N','N',200005,'Y',200001,100,100,100,'Y',200070,0,130,'b94fc032-5fd2-44e8-a425-d1a141bf685c',0,'Bank Register Report 2',TO_DATE('2013-03-01 12:33:44','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 12:33:44','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',0) +; + +-- Mar 1, 2013 12:33:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET CreateCopy='N', IsForm='N', IsDefault='N', IsStandardHeaderFooter='Y', AD_PrintPaper_ID=100, AD_PrintColor_ID=100, AD_PrintTableFormat_ID=100, IsTableBased='Y', AD_Table_ID=200070, HeaderMargin=0, AD_PrintFont_ID=130, FooterMargin=0, Name='Bank Register Report &Copy Record 42',Updated=TO_DATE('2013-03-01 12:33:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200005 +; + +-- Mar 1, 2013 12:33:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Organization',0,'N','N','C',200005,'N',0,'F','N',0,208706,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Organization',0,'N','ef9c141e-8d3d-43a7-8b53-2c067733137c',0,200139,'N',0,TO_DATE('2013-03-01 12:33:54','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:33:54','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:33:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200139 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:33:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208706) WHERE AD_PrintFormatItem_ID = 200139 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208706 AND trl.AD_PrintFormatItem_ID = 200139) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:33:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Client',0,'N','N','C',200005,'N',0,'F','N',0,208705,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Client',0,'N','d3964417-c89f-480f-94b8-ff16526175f3',0,200140,'N',0,TO_DATE('2013-03-01 12:33:55','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:33:55','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:33:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200140 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:33:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208705) WHERE AD_PrintFormatItem_ID = 200140 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208705 AND trl.AD_PrintFormatItem_ID = 200140) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Process Instance',0,'N','N','C',200005,'N',0,'F','N',0,208717,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Process Instance',0,'N','28f3334d-99bd-49b8-9686-1c6520b5c6ee',0,200141,'N',0,TO_DATE('2013-03-01 12:33:56','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:33:56','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200141 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208717) WHERE AD_PrintFormatItem_ID = 200141 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208717 AND trl.AD_PrintFormatItem_ID = 200141) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Business Partner ',0,'N','N','C',200005,'N',0,'F','N',0,208724,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Business Partner ',0,'N','b7ba8149-8503-45d0-8d9f-0bc0bf462551',0,200142,'N',0,TO_DATE('2013-03-01 12:33:57','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:33:57','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200142 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208724) WHERE AD_PrintFormatItem_ID = 200142 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208724 AND trl.AD_PrintFormatItem_ID = 200142) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Bank',0,'N','N','C',200005,'N',0,'F','N',0,208723,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Bank',0,'N','ea6c446a-99ff-436c-a78c-aecc28721c33',0,200143,'N',0,TO_DATE('2013-03-01 12:33:57','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:33:57','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200143 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208723) WHERE AD_PrintFormatItem_ID = 200143 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208723 AND trl.AD_PrintFormatItem_ID = 200143) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:33:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Account',0,'N','N','C',200005,'N',0,'F','N',0,208716,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Account',0,'N','d77d51c3-ae0a-47a3-b2e8-39b6aec5c74c',0,200144,'N',0,TO_DATE('2013-03-01 12:33:58','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:33:58','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200144 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208716) WHERE AD_PrintFormatItem_ID = 200144 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208716 AND trl.AD_PrintFormatItem_ID = 200144) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Bank Name',0,'N','Y','C',200005,'N',0,'F','N',10,208721,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Bank Name',0,'N','84424a2f-f767-4a62-b508-c604f5ec8d66',0,200145,'N',0,TO_DATE('2013-03-01 12:34:01','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:34:01','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200145 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208721) WHERE AD_PrintFormatItem_ID = 200145 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208721 AND trl.AD_PrintFormatItem_ID = 200145) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Business Partner',0,'N','Y','C',200005,'N',0,'F','N',20,208722,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Business Partner',0,'N','01e59d1e-abf6-4f49-8166-c5930874d34f',0,200146,'N',144,TO_DATE('2013-03-01 12:34:01','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:34:01','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200146 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208722) WHERE AD_PrintFormatItem_ID = 200146 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208722 AND trl.AD_PrintFormatItem_ID = 200146) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Document No',0,'Y','Y','C',200005,'N',0,'F','N',30,208726,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Document No',20,'N','46ead6ea-1925-43ac-8b06-dc8862e32dc4',0,200147,'N',108,TO_DATE('2013-03-01 12:34:02','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:34:02','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200147 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208726) WHERE AD_PrintFormatItem_ID = 200147 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208726 AND trl.AD_PrintFormatItem_ID = 200147) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Account Date',0,'Y','Y','C',200005,'N',0,'F','N',40,208725,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Acct Date',10,'N','1d6d09e4-47fa-4cf8-8e18-37daae4d7639',0,200148,'N',0,TO_DATE('2013-03-01 12:34:03','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:34:03','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200148 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208725) WHERE AD_PrintFormatItem_ID = 200148 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208725 AND trl.AD_PrintFormatItem_ID = 200148) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Accounted Credit',0,'N','Y','C',200005,'N',0,'F','N',50,208718,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','Y','N','N','N','N','Acct Credit',0,'N','ff6dd747-7092-4e40-8744-22fc45c46576',0,200149,'N',0,TO_DATE('2013-03-01 12:34:04','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:34:04','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200149 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208718) WHERE AD_PrintFormatItem_ID = 200149 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208718 AND trl.AD_PrintFormatItem_ID = 200149) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Accounted Debit',0,'N','Y','C',200005,'N',0,'F','N',60,208719,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','Y','N','N','N','N','Acct Debit',0,'N','195446d9-ff37-4bb4-add8-0922748608da',0,200150,'N',0,TO_DATE('2013-03-01 12:34:04','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:34:04','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200150 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208719) WHERE AD_PrintFormatItem_ID = 200150 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208719 AND trl.AD_PrintFormatItem_ID = 200150) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Balance',0,'N','Y','C',200005,'N',0,'F','N',70,208720,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','Y','N','N','N','N','Balance',0,'N','810c3421-ed5f-4d64-8583-f9b2e7024112',0,200151,'N',0,TO_DATE('2013-03-01 12:34:05','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 12:34:05','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200151 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208720) WHERE AD_PrintFormatItem_ID = 200151 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208720 AND trl.AD_PrintFormatItem_ID = 200151) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl new SET (PrintName, PrintNameSuffix, IsTranslated) = (SELECT PrintName, PrintNameSuffix, IsTranslated FROM AD_PrintFormatItem_Trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200138) WHERE AD_PrintFormatItem_ID=200139 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200138) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl new SET (PrintName, PrintNameSuffix, IsTranslated) = (SELECT PrintName, PrintNameSuffix, IsTranslated FROM AD_PrintFormatItem_Trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200137) WHERE AD_PrintFormatItem_ID=200140 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200137) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl new SET (PrintName, PrintNameSuffix, IsTranslated) = (SELECT PrintName, PrintNameSuffix, IsTranslated FROM AD_PrintFormatItem_Trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200136) WHERE AD_PrintFormatItem_ID=200141 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200136) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl new SET (PrintName, PrintNameSuffix, IsTranslated) = (SELECT PrintName, PrintNameSuffix, IsTranslated FROM AD_PrintFormatItem_Trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200134) WHERE AD_PrintFormatItem_ID=200142 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200134) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl new SET (PrintName, PrintNameSuffix, IsTranslated) = (SELECT PrintName, PrintNameSuffix, IsTranslated FROM AD_PrintFormatItem_Trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200131) WHERE AD_PrintFormatItem_ID=200143 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200131) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl new SET (PrintName, PrintNameSuffix, IsTranslated) = (SELECT PrintName, PrintNameSuffix, IsTranslated FROM AD_PrintFormatItem_Trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200126) WHERE AD_PrintFormatItem_ID=200144 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200126) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl new SET (PrintName, PrintNameSuffix, IsTranslated) = (SELECT PrintName, PrintNameSuffix, IsTranslated FROM AD_PrintFormatItem_Trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200132) WHERE AD_PrintFormatItem_ID=200145 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200132) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl new SET (PrintName, PrintNameSuffix, IsTranslated) = (SELECT PrintName, PrintNameSuffix, IsTranslated FROM AD_PrintFormatItem_Trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200133) WHERE AD_PrintFormatItem_ID=200146 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200133) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl new SET (PrintName, PrintNameSuffix, IsTranslated) = (SELECT PrintName, PrintNameSuffix, IsTranslated FROM AD_PrintFormatItem_Trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200135) WHERE AD_PrintFormatItem_ID=200147 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200135) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl new SET (PrintName, PrintNameSuffix, IsTranslated) = (SELECT PrintName, PrintNameSuffix, IsTranslated FROM AD_PrintFormatItem_Trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200127) WHERE AD_PrintFormatItem_ID=200148 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200127) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl new SET (PrintName, PrintNameSuffix, IsTranslated) = (SELECT PrintName, PrintNameSuffix, IsTranslated FROM AD_PrintFormatItem_Trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200128) WHERE AD_PrintFormatItem_ID=200149 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200128) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl new SET (PrintName, PrintNameSuffix, IsTranslated) = (SELECT PrintName, PrintNameSuffix, IsTranslated FROM AD_PrintFormatItem_Trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200129) WHERE AD_PrintFormatItem_ID=200150 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200129) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl new SET (PrintName, PrintNameSuffix, IsTranslated) = (SELECT PrintName, PrintNameSuffix, IsTranslated FROM AD_PrintFormatItem_Trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200130) WHERE AD_PrintFormatItem_ID=200151 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl old WHERE old.AD_Language=new.AD_Language AND AD_PrintFormatItem_ID =200130) +; + +-- Mar 1, 2013 12:34:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_PrintFormat WHERE AD_PrintFormat_ID=200003 +; + +-- Mar 1, 2013 12:34:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET Name='Bank Register Report',Updated=TO_DATE('2013-03-01 12:34:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200005 +; + +-- Mar 1, 2013 12:35:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process (CopyFromProcess,AD_Process_ID,IsDirectPrint,AD_ReportView_ID,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Classname,Name,Value,AD_Org_ID,AD_Client_ID,Created,Updated,UpdatedBy,IsActive,CreatedBy) VALUES ('N',200035,'N',200001,'Y','860657cd-af9b-4c98-9f96-3909deba4f54','1','N','N',0,0,'Y','D','org.compiere.report.BankRegister','Bank Register Report','BankRegister',0,0,TO_DATE('2013-03-01 12:35:38','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 12:35:38','YYYY-MM-DD HH24:MI:SS'),100,'Y',100) +; + +-- Mar 1, 2013 12:35:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200035 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) +; + +-- Mar 1, 2013 12:36:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',835,200052,'c3d74841-8b65-42e4-9fbf-19f56c5ca316','The Bank is a unique identifier of a Bank for this Organization or for a Business Partner with whom this Organization transacts.',200035,19,'Y','D','Bank','C_Bank_ID','Bank',0,'Y',10,'Y',100,TO_DATE('2013-03-01 12:36:09','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 12:36:09','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 12:36:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200052 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 12:37:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,DefaultValue,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',263,200053,'87de0151-1900-47dc-b22a-5be1ceba19d4','The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.',200035,15,'N','D','Account Date','DateAcct','Accounting Date',0,'Y',20,'SELECT StartDate FROM C_Period WHERE C_Year_ID IN (SELECT p.C_Year_ID FROM AD_ClientInfo c INNER JOIN C_Year y ON (c.C_Calendar_ID=y.C_Calendar_ID) INNER JOIN C_Period p ON (y.C_Year_ID=p.C_Year_ID) WHERE c.AD_Client_ID=@#AD_Client_ID@ AND getdate() BETWEEN StartDate AND EndDate) AND IsActive=''Y'' AND PeriodType=''S'' AND periodNo = 1','Y',100,TO_DATE('2013-03-01 12:37:11','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 12:37:11','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 12:37:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200053 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 12:37:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',187,200054,'989c092f-6384-488b-bfd3-b040cb114a10','A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson',200035,30,'N','D','Business Partner ','C_BPartner_ID','Identifies a Business Partner',0,'Y',30,'Y',100,TO_DATE('2013-03-01 12:37:37','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 12:37:37','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 12:37:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200054 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 12:38:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,AD_Menu_UU,IsCentrallyMaintained,Name,Action,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200043,'N','N','N',200035,'D','37e1bf78-0c58-4cc3-80ba-8c2d8dcf5e17','Y','Bank Register Report','R','Y',0,100,TO_DATE('2013-03-01 12:38:31','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-03-01 12:38:31','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Mar 1, 2013 12:38:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200043 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + +-- Mar 1, 2013 12:38:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', SysDate, 100, SysDate, 100,t.AD_Tree_ID, 200043, 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=200043) +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200043 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=32, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +SELECT register_migration_script('201303041621_TICKET-1001763_BankRegister.sql') FROM dual +; \ No newline at end of file diff --git a/migration/i1.0a-release/oracle/201303041623_TICKET-1001763_ProductWhereUsed.sql b/migration/i1.0a-release/oracle/201303041623_TICKET-1001763_ProductWhereUsed.sql new file mode 100644 index 0000000000..9d333fee73 --- /dev/null +++ b/migration/i1.0a-release/oracle/201303041623_TICKET-1001763_ProductWhereUsed.sql @@ -0,0 +1,732 @@ +CREATE OR REPLACE VIEW RV_M_Product_WhereUsed_V AS + SELECT bom.ad_client_id, bom.ad_org_id, p2.m_product_id, p2.name AS selectedproductname, + p2.value AS selectedproductvalue, p2.description AS selectedproductdescription, b.pp_product_bom_id, + p.value, p.name, p.description, b.qtybom, b.line + FROM m_product p2 + LEFT JOIN pp_product_bomline b ON p2.m_product_id = b.m_product_id + LEFT JOIN pp_product_bom bom ON b.pp_product_bom_id = bom.pp_product_bom_id + LEFT JOIN m_product p ON bom.m_product_id = p.m_product_id + WHERE p.isactive = 'Y' AND b.isactive = 'Y' AND p2.isactive = 'Y'; + +-- Mar 1, 2013 2:25:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','3',0,200071,'N','Y','N','D','L','d50870a2-be0f-4af1-9e21-f2274ff2013a','Y','N','RV_M_Product_WhereUsed_V','Product/Component Where Used',0,'Y',0,TO_DATE('2013-03-01 14:25:28','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2013-03-01 14:25:28','YYYY-MM-DD HH24:MI:SS')) +; + +-- Mar 1, 2013 2:25:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200071 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Mar 1, 2013 2:25:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200066,'da1fcf3f-75a0-49a9-8e8e-33bcb0333fa0','Table RV_M_Product_WhereUsed_V','RV_M_Product_WhereUsed_V',1,0,0,TO_DATE('2013-03-01 14:25:30','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 14:25:30','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +-- Mar 1, 2013 2:26:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208727,'D','N','N','N','N',10,'N',19,'N',102,'beed4f42-399b-4528-a199-db97d9585a59','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client',100,TO_DATE('2013-03-01 14:26:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 14:26:27','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208727 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208728,'D','N','N','N','N',10,'N',19,'N',113,'0e956082-39e0-45b4-b9eb-219d35cadde5','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization',100,TO_DATE('2013-03-01 14:26:29','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 14:26:29','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208728 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208729,'D','N','N','N','N',10,'N',19,'N',454,'42d1334e-6e36-4285-9b9f-a22ccd9905f3','N','M_Product_ID','Product, Service, Item','Identifies an item which is either purchased or sold in this organization.','Product',100,TO_DATE('2013-03-01 14:26:30','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 14:26:30','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208729 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('selectedproductname',202255,'D','selectedproductname','selectedproductname','6c2e9946-7985-4765-98f1-017e946b3de4',0,TO_DATE('2013-03-01 14:26:31','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 14:26:31','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 2:26:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202255 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 2:26:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208730,'D','N','N','N','N',255,'Y',10,'N',202255,'f52dcaac-a25c-45fc-a6e9-9d0fa5d2e475','N','selectedproductname','selectedproductname',100,TO_DATE('2013-03-01 14:26:31','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 14:26:31','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208730 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('selectedproductvalue',202256,'D','selectedproductvalue','selectedproductvalue','64c695a5-8338-4451-b5a8-b303916fc72a',0,TO_DATE('2013-03-01 14:26:32','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 14:26:32','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 2:26:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202256 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 2:26:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208731,'D','N','N','N','N',40,'N',10,'N',202256,'37809389-db8b-41e0-905d-91401de71557','N','selectedproductvalue','selectedproductvalue',100,TO_DATE('2013-03-01 14:26:32','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 14:26:32','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208731 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('selectedproductdescription',202257,'D','selectedproductdescription','selectedproductdescription','884d0a2c-e721-4535-bf53-78219a143a4d',0,TO_DATE('2013-03-01 14:26:34','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 14:26:34','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 2:26:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202257 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 2:26:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208732,'D','N','N','N','N',255,'N',10,'N',202257,'11024fa9-4688-4ca1-81e2-4961ca4c3b22','N','selectedproductdescription','selectedproductdescription',100,TO_DATE('2013-03-01 14:26:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 14:26:34','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208732 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208733,'D','N','N','N','N',10,'N',19,'N',53245,'9daccb82-ac45-4894-b04d-77513168ea19','N','PP_Product_BOM_ID','BOM & Formula','BOM & Formula',100,TO_DATE('2013-03-01 14:26:36','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 14:26:36','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208733 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208734,'D','N','N','N','N',40,'Y',10,'N',620,'a739c739-0e76-4b61-839c-3655e62b448a','N','Value','Search key for the record in the format required - must be unique','A search key allows you a fast method of finding a particular record. +If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Search Key',100,TO_DATE('2013-03-01 14:26:37','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 14:26:37','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208734 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208735,'D','N','N','Y',1,'N',255,'Y',10,'N',469,'780d73f6-fc81-45e6-82d5-9c0aeeeb657d','N','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.','Name',100,TO_DATE('2013-03-01 14:26:38','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 14:26:38','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208735 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208736,'D','N','N','N','N',255,'Y',10,'N',275,'e677d5fe-e1e8-4719-b08d-4425e4164312','N','Description','Optional short description of the record','A description is limited to 255 characters.','Description',100,TO_DATE('2013-03-01 14:26:39','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 14:26:39','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208736 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208737,'D','N','N','N','N',131089,'N',29,'N',53255,'13304a67-8a49-410e-ba53-c85e8640a379','N','QtyBOM','Indicate the Quantity use in this BOM','Exist two way the add a compenent to a BOM or Formula: + +1.- Adding a Component based in quantity to use in this BOM +2.- Adding a Component based in % to use the Order Quantity of Manufacturing Order in this Formula. +','Quantity',100,TO_DATE('2013-03-01 14:26:40','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 14:26:40','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208737 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208738,'D','N','N','N','N',10,'N',11,'N',439,'6e074fb9-0ead-4932-a046-5ede903e9781','N','Line','Unique line for this document','Indicates the unique line for a document. It will also control the display order of the lines within a document.','Line No',100,TO_DATE('2013-03-01 14:26:40','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 14:26:40','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208738 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='SelectedProductDescription', Name='Selected Product Description', PrintName='Selected Product Description',Updated=TO_DATE('2013-03-01 14:27:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202257 +; + +-- Mar 1, 2013 2:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202257 +; + +-- Mar 1, 2013 2:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='SelectedProductDescription', Name='Selected Product Description', Description=NULL, Help=NULL WHERE AD_Element_ID=202257 +; + +-- Mar 1, 2013 2:27:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='SelectedProductDescription', Name='Selected Product Description', Description=NULL, Help=NULL, AD_Element_ID=202257 WHERE UPPER(ColumnName)='SELECTEDPRODUCTDESCRIPTION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 2:27:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='SelectedProductDescription', Name='Selected Product Description', Description=NULL, Help=NULL WHERE AD_Element_ID=202257 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:27:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='SelectedProductDescription', Name='Selected Product Description', Description=NULL, Help=NULL WHERE AD_Element_ID=202257 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:27:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Selected Product Description', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202257) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:27:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Selected Product Description', Name='Selected Product Description' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202257) +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='SelectedProductName', Name='Selected Product Name', PrintName='Selected Product Name',Updated=TO_DATE('2013-03-01 14:27:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202255 +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202255 +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='SelectedProductName', Name='Selected Product Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202255 +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='SelectedProductName', Name='Selected Product Name', Description=NULL, Help=NULL, AD_Element_ID=202255 WHERE UPPER(ColumnName)='SELECTEDPRODUCTNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='SelectedProductName', Name='Selected Product Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202255 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='SelectedProductName', Name='Selected Product Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202255 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Selected Product Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202255) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Selected Product Name', Name='Selected Product Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202255) +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='SelectedProductValue', Name='Selected Product Value', PrintName='Selected Product Value',Updated=TO_DATE('2013-03-01 14:28:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202256 +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202256 +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='SelectedProductValue', Name='Selected Product Value', Description=NULL, Help=NULL WHERE AD_Element_ID=202256 +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='SelectedProductValue', Name='Selected Product Value', Description=NULL, Help=NULL, AD_Element_ID=202256 WHERE UPPER(ColumnName)='SELECTEDPRODUCTVALUE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='SelectedProductValue', Name='Selected Product Value', Description=NULL, Help=NULL WHERE AD_Element_ID=202256 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='SelectedProductValue', Name='Selected Product Value', Description=NULL, Help=NULL WHERE AD_Element_ID=202256 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Selected Product Value', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202256) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Selected Product Value', Name='Selected Product Value' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202256) +; + +-- Mar 1, 2013 2:29:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_ReportView (AD_ReportView_UU,AD_Table_ID,AD_ReportView_ID,EntityType,Name,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Org_ID,IsActive) VALUES ('d9136825-2589-4001-b4bd-e6df2df8ff78',200071,200002,'D','RV_M_Product_WhereUsed_V',0,TO_DATE('2013-03-01 14:29:24','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 14:29:24','YYYY-MM-DD HH24:MI:SS'),100,0,'Y') +; + +-- Mar 1, 2013 2:30:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process (CopyFromProcess,Help,AD_Process_ID,IsDirectPrint,AD_ReportView_ID,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Description,Name,Value,AD_Org_ID,AD_Client_ID,Created,Updated,UpdatedBy,IsActive,CreatedBy) VALUES ('N','Enter a product/component below, and the system will check for BOM(s) that contain that product/component. This report is non-recursive. In other words, it will only show one parent level above the product/component.',200036,'N',200002,'Y','7f338cc6-05cc-42ba-8bf7-56051b4e7971','3','N','N',0,0,'Y','D','Product/Component Where Used','Product/Component Where Used','RV_M_Product_WhereUsed_V',0,0,TO_DATE('2013-03-01 14:30:39','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 14:30:39','YYYY-MM-DD HH24:MI:SS'),100,'Y',100) +; + +-- Mar 1, 2013 2:30:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200036 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) +; + +-- Mar 1, 2013 2:31:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',454,200055,'89347a17-13c7-4705-88ad-502c19658f45','Identifies an item which is either purchased or sold in this organization.',200036,30,'Y','D','Product','M_Product_ID','Product, Service, Item',0,'Y',10,'Y',100,TO_DATE('2013-03-01 14:31:19','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 14:31:19','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 2:31:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200055 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 2:31:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET Help=NULL, Description='Please enter the product (component) you wish to search for', IsCentrallyMaintained='N',Updated=TO_DATE('2013-03-01 14:31:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200055 +; + +-- Mar 1, 2013 2:31:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=200055 +; + +-- Mar 1, 2013 2:34:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,AD_Menu_UU,IsCentrallyMaintained,Name,Description,Action,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200044,'N','N','N',200036,'D','61d17885-f1e3-4600-bf7c-f66decb23e8d','Y','Product/Component Where Used',NULL,'R','Y',0,100,TO_DATE('2013-03-01 14:34:20','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-03-01 14:34:20','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Mar 1, 2013 2:34:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200044 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + +-- Mar 1, 2013 2:34:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', SysDate, 100, SysDate, 100,t.AD_Tree_ID, 200044, 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=200044) +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=268 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=125 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=422 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=107 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=130 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=188 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=227 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=381 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=126 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=421 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=534 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200044 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=267 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=490 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=132 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=310 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200032 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200033 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200029 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=19, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=128 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=20, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=585 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=21, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=187 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=22, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53210 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=23, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53211 +; + +-- Mar 1, 2013 2:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormat (CreateCopy,IsForm,IsDefault,AD_PrintFormat_ID,IsStandardHeaderFooter,AD_ReportView_ID,AD_PrintPaper_ID,AD_PrintColor_ID,AD_PrintTableFormat_ID,IsTableBased,AD_Table_ID,HeaderMargin,AD_PrintFont_ID,AD_PrintFormat_UU,FooterMargin,Name,Updated,CreatedBy,Created,UpdatedBy,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('N','N','N',200006,'Y',200002,100,100,100,'Y',200071,0,130,'eb357ba2-5e77-4da2-919d-db942619249c',0,'Product/Component Where Used',TO_DATE('2013-03-01 14:38:59','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 14:38:59','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',0) +; + +-- Mar 1, 2013 2:39:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintPaper_ID=100, AD_PrintColor_ID=100, AD_Table_ID=200071, AD_PrintFont_ID=130, Name='RV_M_Product_WhereUsed_V_2',Updated=TO_DATE('2013-03-01 14:39:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200006 +; + +-- Mar 1, 2013 2:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Name',0,'Y','Y','C',200006,'N',0,'F','N',1,208735,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Name',1,'N','8f730ef8-fcf9-43b4-8635-5ade4f48fb60',0,200152,'N',0,TO_DATE('2013-03-01 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 14:39:12','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200152 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208735) WHERE AD_PrintFormatItem_ID = 200152 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208735 AND trl.AD_PrintFormatItem_ID = 200152) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BOM & Formula',0,'N','Y','C',200006,'N',0,'F','N',2,208733,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BOM & Formula',0,'N','a5ba879b-3be9-4a68-8b77-8a1cc83031e6',0,200153,'N',0,TO_DATE('2013-03-01 14:39:15','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 14:39:15','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200153 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208733) WHERE AD_PrintFormatItem_ID = 200153 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208733 AND trl.AD_PrintFormatItem_ID = 200153) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Client',0,'N','N','C',200006,'N',0,'F','N',0,208727,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Client',0,'N','e92f4a2c-aa33-43c4-8986-f0bb8a6b7fe8',0,200154,'N',0,TO_DATE('2013-03-01 14:39:16','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 14:39:16','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200154 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208727) WHERE AD_PrintFormatItem_ID = 200154 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208727 AND trl.AD_PrintFormatItem_ID = 200154) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Description',0,'N','Y','C',200006,'N',0,'F','N',4,208736,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Description',0,'N','ee989c86-9bd1-46a4-9230-5498215b5879',0,200155,'N',0,TO_DATE('2013-03-01 14:39:17','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 14:39:17','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200155 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208736) WHERE AD_PrintFormatItem_ID = 200155 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208736 AND trl.AD_PrintFormatItem_ID = 200155) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Line No',0,'N','Y','C',200006,'N',0,'F','N',5,208738,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Line No',0,'N','dc49bf58-92fd-4c98-a84c-a2e374641148',0,200156,'N',0,TO_DATE('2013-03-01 14:39:18','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 14:39:18','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200156 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208738) WHERE AD_PrintFormatItem_ID = 200156 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208738 AND trl.AD_PrintFormatItem_ID = 200156) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Organization',0,'N','N','C',200006,'N',0,'F','N',0,208728,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Organization',0,'N','0e671bf6-703a-4210-9586-201a390232e4',0,200157,'N',0,TO_DATE('2013-03-01 14:39:19','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 14:39:19','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200157 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208728) WHERE AD_PrintFormatItem_ID = 200157 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208728 AND trl.AD_PrintFormatItem_ID = 200157) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Product',0,'N','Y','C',200006,'N',0,'F','N',7,208729,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Product',0,'N','b906826a-0f2b-440f-94ba-3161fbc6ad2d',0,200158,'N',0,TO_DATE('2013-03-01 14:39:20','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 14:39:20','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200158 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208729) WHERE AD_PrintFormatItem_ID = 200158 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208729 AND trl.AD_PrintFormatItem_ID = 200158) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Quantity',0,'N','Y','C',200006,'N',0,'F','N',8,208737,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Quantity',0,'N','ddf1e9e8-af92-4b78-a631-c3ac9b7862d9',0,200159,'N',0,TO_DATE('2013-03-01 14:39:21','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 14:39:21','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200159 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208737) WHERE AD_PrintFormatItem_ID = 200159 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208737 AND trl.AD_PrintFormatItem_ID = 200159) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Search Key',0,'N','Y','C',200006,'N',0,'F','N',9,208734,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Search Key',0,'N','b7d011c9-46ad-4f70-a6e3-3806516c950c',0,200160,'N',0,TO_DATE('2013-03-01 14:39:22','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 14:39:22','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200160 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208734) WHERE AD_PrintFormatItem_ID = 200160 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208734 AND trl.AD_PrintFormatItem_ID = 200160) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Selected Product Description',0,'N','Y','C',200006,'N',0,'F','N',10,208732,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Selected Product Description',0,'N','db5849db-c725-4d6e-9a89-7b12f26a2dfb',0,200161,'N',0,TO_DATE('2013-03-01 14:39:23','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 14:39:23','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200161 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208732) WHERE AD_PrintFormatItem_ID = 200161 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208732 AND trl.AD_PrintFormatItem_ID = 200161) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Selected Product Name',0,'N','Y','C',200006,'N',0,'F','N',11,208730,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Selected Product Name',0,'N','01726c2f-2aaa-45aa-ba40-78a4853752b0',0,200162,'N',0,TO_DATE('2013-03-01 14:39:23','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 14:39:23','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200162 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208730) WHERE AD_PrintFormatItem_ID = 200162 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208730 AND trl.AD_PrintFormatItem_ID = 200162) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Selected Product Value',0,'N','Y','C',200006,'N',0,'F','N',12,208731,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Selected Product Value',0,'N','b6f59bad-6aff-4137-8d5d-d9323042ee2c',0,200163,'N',0,TO_DATE('2013-03-01 14:39:24','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 14:39:24','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200163 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208731) WHERE AD_PrintFormatItem_ID = 200163 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208731 AND trl.AD_PrintFormatItem_ID = 200163) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200155 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200160 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200161 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200162 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200163 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=10,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200158 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=20,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200153 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200152 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200159 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200156 +; + +-- Mar 1, 2013 2:40:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET Name='Master BOM', XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsCentrallyMaintained='N', PrintName='Master BOM', SortNo=0,Updated=TO_DATE('2013-03-01 14:40:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200153 +; + +-- Mar 1, 2013 2:40:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200153 +; + +-- Mar 1, 2013 2:41:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_DATE('2013-03-01 14:41:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200153 +; + +-- Mar 1, 2013 2:41:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET Name='Product/Component Where Used',Updated=TO_DATE('2013-03-01 14:41:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200006 +; + +SELECT register_migration_script('201303041623_TICKET-1001763_ProductWhereUsed.sql') FROM dual +; \ No newline at end of file diff --git a/migration/i1.0a-release/oracle/201303041624_TICKET-1001763_FactView.sql b/migration/i1.0a-release/oracle/201303041624_TICKET-1001763_FactView.sql new file mode 100644 index 0000000000..91cd1885bc --- /dev/null +++ b/migration/i1.0a-release/oracle/201303041624_TICKET-1001763_FactView.sql @@ -0,0 +1,4172 @@ +-- Mar 1, 2013 4:52:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('FY_StartDate',202258,'D','Financial Year Start Date','Financial Year Start Date','612dd5a3-8a96-41a6-95e6-5425d13fa9dd',0,TO_DATE('2013-03-01 16:52:22','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 16:52:22','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 4:52:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202258 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 4:52:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',227,208739,'D','N','N','N',0,'N',7,'N',15,'N',202258,'N','Y','9ed9f064-33ce-4c0e-a45e-ca905291ca42','Y','FY_StartDate','Financial Year Start Date','Y',100,TO_DATE('2013-03-01 16:52:50','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 16:52:50','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 4:52:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208739 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 4:52:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +ALTER TABLE AD_ClientInfo ADD FY_StartDate DATE DEFAULT NULL +; + +CREATE OR REPLACE VIEW rv_fact_simple AS + SELECT rv_fact_acct.ad_client_id, rv_fact_acct.ad_org_id, rv_fact_acct.isactive, rv_fact_acct.created, rv_fact_acct.createdby, + rv_fact_acct.updated, rv_fact_acct.updatedby, rv_fact_acct.c_project_id, rv_fact_acct.c_acctschema_id, rv_fact_acct.account_id, + rv_fact_acct.accountvalue, rv_fact_acct.accounttype, rv_fact_acct.dateacct, to_char(rv_fact_acct.dateacct, 'YYYY-MM') AS finyear_mth, + sum(rv_fact_acct.amtacctdr - rv_fact_acct.amtacctcr) AS amtacct, to_char(rv_fact_acct.dateacct, '"FY"YYYY') AS finyear, + CASE rv_fact_acct.accounttype + WHEN 'A' THEN 'B' + WHEN 'E' THEN 'P' + WHEN 'L' THEN 'B' + WHEN 'M' THEN 'B' + WHEN 'O' THEN 'B' + WHEN 'R' THEN 'P' + ELSE '9. Unknown' + END AS "case" + FROM rv_fact_acct + WHERE rv_fact_acct.postingtype = 'A' + GROUP BY rv_fact_acct.ad_client_id, rv_fact_acct.ad_org_id, rv_fact_acct.isactive, rv_fact_acct.created, + rv_fact_acct.createdby, rv_fact_acct.updated, rv_fact_acct.updatedby, rv_fact_acct.c_project_id, + rv_fact_acct.c_acctschema_id, rv_fact_acct.account_id, rv_fact_acct.accountvalue, rv_fact_acct.accounttype, + rv_fact_acct.dateacct, rv_fact_acct.amtacct; + +CREATE OR REPLACE VIEW rv_fact_adaxa AS + SELECT f.ad_client_id, f.ad_org_id, ( SELECT cli.name + FROM ad_client cli + WHERE cli.ad_client_id = f.ad_client_id) AS clientname, f.dateacct, + CASE + WHEN f.dateacct < (( SELECT clinfo.fy_startdate + FROM ad_clientinfo clinfo + WHERE clinfo.ad_client_id = f.ad_client_id)) THEN (( SELECT clinfo.fy_startdate - 1 + FROM ad_clientinfo clinfo + WHERE clinfo.ad_client_id = f.ad_client_id)) + ELSE f.dateacct + END AS bsdate, + CASE + WHEN f.dateacct < (( SELECT clinfo.fy_startdate + FROM ad_clientinfo clinfo + WHERE clinfo.ad_client_id = f.ad_client_id)) THEN ( SELECT to_char((clinfo.fy_startdate - 1), 'YYYY-MM') AS to_char + FROM ad_clientinfo clinfo + WHERE clinfo.ad_client_id = f.ad_client_id) + ELSE to_char(f.dateacct, 'YYYY-MM') + END AS bsmth, to_char((f.dateacct + 184), '"FY"YYYY') AS fyear, to_char(f.dateacct, 'YYYY-MM') AS fymth, ( SELECT t.name + FROM ad_table t + WHERE t.ad_table_id = f.ad_table_id) AS table_name, f.record_id, ( SELECT gl.name + FROM gl_budget gl + WHERE gl.gl_budget_id = f.gl_budget_id) AS budname, ( SELECT tax.name + FROM c_tax tax + WHERE tax.c_tax_id = f.c_tax_id) AS taxname, + CASE f.postingtype + WHEN 'A' THEN 'Actual' + WHEN 'B' THEN 'Budget' + WHEN 'E' THEN 'Encumbrance' + WHEN 'S' THEN 'Statistic' + ELSE 'Other' + END AS act_bud, ( SELECT c.iso_code + FROM c_currency c + WHERE c.c_currency_id = f.c_currency_id) AS currency, f.amtsourcedr - f.amtsourcecr AS amtsce, f.amtacctdr - f.amtacctcr AS amtacct, + CASE + WHEN f.postingtype = 'B' THEN 0 + ELSE f.amtacctcr - f.amtacctdr + END AS "pl$act", + CASE + WHEN f.postingtype = 'B' THEN 0 + WHEN ev.accounttype = 'A' THEN f.amtacctdr - f.amtacctcr + WHEN ev.accounttype = 'L' THEN f.amtacctdr - f.amtacctcr + WHEN ev.accounttype = 'O' THEN f.amtacctcr - f.amtacctdr + WHEN ev.accounttype = 'E' THEN f.amtacctcr - f.amtacctdr + WHEN ev.accounttype = 'R' THEN f.amtacctcr - f.amtacctdr + ELSE 0 + END AS "bs$act", + CASE + WHEN f.postingtype = 'A' THEN 0 + WHEN ev.accounttype = 'E' THEN f.amtacctcr - f.amtacctdr + WHEN ev.accounttype = 'R' THEN f.amtacctcr - f.amtacctdr + ELSE 0 + END AS "pl$bud", ( SELECT um.uomsymbol + FROM c_uom um + WHERE um.c_uom_id = f.c_uom_id) AS uomname, f.qty, ( SELECT prj.name + FROM c_project prj + WHERE prj.c_project_id = f.c_project_id) AS projectname, f.description, o.name AS orgname, ev.value AS ac_code, ev.name AS ac_name, (ev.value || '-' || ev.name) AS account_name, + CASE ev.accounttype + WHEN 'A' THEN '1 Asset' + WHEN 'E' THEN '3 Equity' + WHEN 'L' THEN '2 Liability' + WHEN 'M' THEN '9 Memo' + WHEN 'O' THEN '3 Equity' + WHEN 'R' THEN '3 Equity' + ELSE '9. Unknown' + END AS bstypename, + CASE ev.accounttype + WHEN 'A' THEN '9 BSheet' + WHEN 'E' THEN '6 Expense' + WHEN 'L' THEN '9 BSheet' + WHEN 'M' THEN '9 Memo' + WHEN 'O' THEN '9 BSheet' + WHEN 'R' THEN '4 Revenue' + ELSE '9. Unknown' + END AS pltypename, ( SELECT (ss.value || '-') || ss.name + FROM c_elementvalue ss + WHERE ss.value = substr(ev.value, 1, 1) AND ss.issummary = 'Y' AND ss.ad_client_id = f.ad_client_id) AS ac_group, + CASE ev.accounttype + WHEN 'A' THEN ( SELECT (TO_CHAR(ss.value) || '-') || TO_CHAR(ss.name) + FROM c_elementvalue ss + WHERE ss.value = substr(ev.value, 1, 3) AND ss.issummary = 'Y' AND ss.ad_client_id = f.ad_client_id) + WHEN 'E' THEN '330-Current P and L Accounts Balance' + WHEN 'L' THEN ( SELECT (TO_CHAR(ss.value) || '-') || TO_CHAR(ss.name) + FROM c_elementvalue ss + WHERE ss.value = substr(ev.value, 1, 3) AND ss.issummary = 'Y' AND ss.ad_client_id = f.ad_client_id) + WHEN 'O' THEN ( SELECT (TO_CHAR(ss.value) || '-') || TO_CHAR(ss.name) + FROM c_elementvalue ss + WHERE ss.value = substr(ev.value, 1, 3) AND ss.issummary = 'Y' AND ss.ad_client_id = f.ad_client_id) + WHEN 'R' THEN '330-Current P and L Accounts Balance' + ELSE 'Unknown Account Type' + END AS bsgroup, + CASE ev.accounttype + WHEN 'A' THEN '999-Balance Sheet Item' + WHEN 'E' THEN ( SELECT (TO_CHAR(ss.value) || '-') || TO_CHAR(ss.name) + FROM c_elementvalue ss + WHERE ss.value = substr(ev.value, 1, 3) AND ss.issummary = 'Y' AND ss.ad_client_id = f.ad_client_id) + WHEN 'L' THEN '999-Balance Sheet Item' + WHEN 'O' THEN '999-Balance Sheet Item' + WHEN 'R' THEN ( SELECT (TO_CHAR(ss.value) || '-') || TO_CHAR(ss.name) + FROM c_elementvalue ss + WHERE ss.value = substr(ev.value, 1, 3) AND ss.issummary = 'Y' AND ss.ad_client_id = f.ad_client_id) + ELSE 'Unknown Account Type' + END AS plgroup, + CASE ev.accounttype + WHEN 'A' THEN 'BS' + WHEN 'E' THEN 'PL' + WHEN 'L' THEN 'BS' + WHEN 'M' THEN 'Unknown Account Type' + WHEN 'O' THEN 'BS' + WHEN 'R' THEN 'PL' + ELSE 'Unknown Account Type' + END AS plbs, + CASE ev.accounttype + WHEN 'A' THEN '1 NetAssets' + WHEN 'E' THEN '2 Equity' + WHEN 'L' THEN '1 NetAssets' + WHEN 'M' THEN '9 Memo' + WHEN 'O' THEN '2 Equity' + WHEN 'R' THEN '2 Equity' + ELSE 'Unknown Account Type' + END AS na_eq, bp.value AS bpcode, bp.name AS bpname, + CASE + WHEN bp.name IS NULL THEN NULL + ELSE (TO_CHAR(bp.value) || '-') || TO_CHAR(bp.name) + END AS bpartnercodeandname, ( SELECT bpg.name + FROM c_bp_group bpg + WHERE bpg.c_bp_group_id = bp.c_bp_group_id) AS bpgroupname, ( SELECT ad_user.name + FROM ad_user + WHERE ad_user.ad_user_id = bp.salesrep_id) AS repname, p.value AS prodcode, p.name AS prodname, + CASE + WHEN p.name IS NULL THEN NULL + ELSE (TO_CHAR(p.value) || '-') || TO_CHAR(p.name) + END AS product, ( SELECT pc.name + FROM m_product_category pc + WHERE pc.m_product_category_id = p.m_product_category_id) AS prodcategory + FROM fact_acct f + JOIN ad_org o ON f.ad_org_id = o.ad_org_id + JOIN c_elementvalue ev ON f.account_id = ev.c_elementvalue_id + LEFT JOIN c_bpartner bp ON f.c_bpartner_id = bp.c_bpartner_id + LEFT JOIN m_product p ON f.m_product_id = p.m_product_id; + -- Mar 1, 2013 5:49:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','3',0,200072,'N','Y','N','D','L','014cfa42-6fad-47d9-bc06-d29272245190','Y','N','RV_Fact_Simple','Simple Fact View',0,'Y',0,TO_DATE('2013-03-01 17:49:50','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2013-03-01 17:49:50','YYYY-MM-DD HH24:MI:SS')) +; + +-- Mar 1, 2013 5:49:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200072 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Mar 1, 2013 5:49:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200067,'abffb14b-035f-417e-b52f-cb88cb1cc618','Table RV_Fact_Simple','RV_Fact_Simple',1,0,0,TO_DATE('2013-03-01 17:49:52','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 17:49:52','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +-- Mar 1, 2013 5:50:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208740,'D','N','N','N','N',10,'N',19,'N',102,'f4c1919e-a53d-4331-9b3c-ab8dc2fbbce2','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client',100,TO_DATE('2013-03-01 17:50:15','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:15','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208740 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208741,'D','N','N','N','N',10,'N',19,'N',113,'a7f82948-9a2f-4fe2-b1de-0ca369be3a0c','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization',100,TO_DATE('2013-03-01 17:50:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:16','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208741 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208742,'D','N','N','N','N',1,'N',20,'N',348,'bbe13fe3-5da8-40d9-884b-f4c8350f5d97','N','IsActive','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.','Active',100,TO_DATE('2013-03-01 17:50:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:17','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208742 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208743,'D','N','N','N','N',29,'N',16,'N',245,'31221c75-a25c-4adc-97f0-8c8c1bb05085','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created',100,TO_DATE('2013-03-01 17:50:18','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:18','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208743 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208744,'D',110,'N','N','N','N',10,'N',18,'N',246,'a34c09cd-d0d0-4236-afc4-0624c9279044','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By',100,TO_DATE('2013-03-01 17:50:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:19','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208744 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208745,'D','N','N','N','N',29,'N',16,'N',607,'8bfc9fb6-a62f-49dd-829f-e70208801b63','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated',100,TO_DATE('2013-03-01 17:50:20','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:20','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208745 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208746,'D',110,'N','N','N','N',10,'N',18,'N',608,'543ec7b2-91df-4a2b-b098-5b136aed4b7d','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By',100,TO_DATE('2013-03-01 17:50:20','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:20','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208746 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208747,'D','N','N','N','N',10,'N',19,'N',208,'8a6bd0f3-649b-4fa7-9ad8-55eca9f51901','N','C_Project_ID','Financial Project','A Project allows you to track and control internal or external activities.','Project',100,TO_DATE('2013-03-01 17:50:21','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:21','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208747 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208748,'D','N','N','N','N',10,'N',19,'N',181,'68ed5b73-5293-49fe-880e-e1c08098be02','N','C_AcctSchema_ID','Rules for accounting','An Accounting Schema defines the rules used in accounting such as costing method, currency and calendar','Accounting Schema',100,TO_DATE('2013-03-01 17:50:22','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:22','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208748 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208749,'D','N','N','N','N',10,'N',19,'N',148,'2b668ab1-d97a-4916-ac35-086fdd5bbc27','N','Account_ID','Account used','The (natural) account used','Account',100,TO_DATE('2013-03-01 17:50:23','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:23','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208749 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208750,'D','N','N','N','N',40,'N',10,'N',2083,'037feec7-316f-4850-a395-93311cdee2e5','N','AccountValue','Key of Account Element','Account Key',100,TO_DATE('2013-03-01 17:50:23','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:23','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208750 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208751,'D','N','N','N','N',1,'N',20,'N',147,'37dfde49-731e-4819-ab18-10cc674b4a81','N','AccountType','Indicates the type of account','Valid account types are A - Asset, E - Expense, L - Liability, O- Owner''s Equity, R -Revenue and M- Memo. The account type is used to determine what taxes, if any are applicable, validating payables and receivables for business partners. Note: Memo account amounts are ignored when checking for balancing','Account Type',100,TO_DATE('2013-03-01 17:50:24','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:24','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208751 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208752,'D','N','N','N','N',29,'N',16,'N',263,'a4a5e8a5-3844-4f19-8125-1947e07e9167','N','DateAcct','Accounting Date','The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.','Account Date',100,TO_DATE('2013-03-01 17:50:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:25','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208752 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('finyear_mth',202259,'D','finyear_mth','finyear_mth','99474de4-31c0-4e16-afe9-cec9c35048b8',0,TO_DATE('2013-03-01 17:50:26','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:50:26','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:50:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202259 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:50:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208753,'D','N','N','N','N',2147483647,'N',14,'N',202259,'a42a8cba-2511-4feb-97cf-1cbc378ecedf','N','finyear_mth','finyear_mth',100,TO_DATE('2013-03-01 17:50:26','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:26','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208753 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208754,'D','N','N','N','N',131089,'N',12,'N',2342,'115482bc-4605-4f61-9988-39aff47f9858','N','AmtAcct','Amount Balance in Currency of Accounting Schema','Accounted Amount',100,TO_DATE('2013-03-01 17:50:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:28','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208754 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('finyear',202260,'D','finyear','finyear','9a93b6bf-ed03-4ad9-be6f-67f28b4745a3',0,TO_DATE('2013-03-01 17:50:28','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:50:28','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:50:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202260 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:50:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208755,'D','N','N','N','N',2147483647,'N',14,'N',202260,'256480ea-8832-4c39-b078-2e6ae8e66642','N','finyear','finyear',100,TO_DATE('2013-03-01 17:50:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:28','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208755 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('case',202261,'D','case','case','78f255f0-926d-46e9-b2f8-6d2b70e4ab29',0,TO_DATE('2013-03-01 17:50:30','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:50:30','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:50:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202261 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:50:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208756,'D','N','N','N','N',2147483647,'N',14,'N',202261,'7831762a-7166-40c4-9bd0-e037839cb3a3','N','case','case',100,TO_DATE('2013-03-01 17:50:30','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:50:30','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208756 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:51:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Case', Name='Case', PrintName='Case',Updated=TO_DATE('2013-03-01 17:51:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202261 +; + +-- Mar 1, 2013 5:51:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202261 +; + +-- Mar 1, 2013 5:51:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Case', Name='Case', Description=NULL, Help=NULL WHERE AD_Element_ID=202261 +; + +-- Mar 1, 2013 5:51:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Case', Name='Case', Description=NULL, Help=NULL, AD_Element_ID=202261 WHERE UPPER(ColumnName)='CASE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 5:51:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Case', Name='Case', Description=NULL, Help=NULL WHERE AD_Element_ID=202261 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Case', Name='Case', Description=NULL, Help=NULL WHERE AD_Element_ID=202261 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Case', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202261) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Case', Name='Case' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202261) +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='FinYear', Name='Financial Year', PrintName='Financial Year',Updated=TO_DATE('2013-03-01 17:51:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202260 +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202260 +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='FinYear', Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Element_ID=202260 +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FinYear', Name='Financial Year', Description=NULL, Help=NULL, AD_Element_ID=202260 WHERE UPPER(ColumnName)='FINYEAR' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FinYear', Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Element_ID=202260 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='FinYear', Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Element_ID=202260 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202260) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Financial Year', Name='Financial Year' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202260) +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='FinYear_Mth', Name='Financial Year (Month)', PrintName='Financial Year (Month)',Updated=TO_DATE('2013-03-01 17:51:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202259 +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202259 +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='FinYear_Mth', Name='Financial Year (Month)', Description=NULL, Help=NULL WHERE AD_Element_ID=202259 +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FinYear_Mth', Name='Financial Year (Month)', Description=NULL, Help=NULL, AD_Element_ID=202259 WHERE UPPER(ColumnName)='FINYEAR_MTH' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FinYear_Mth', Name='Financial Year (Month)', Description=NULL, Help=NULL WHERE AD_Element_ID=202259 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='FinYear_Mth', Name='Financial Year (Month)', Description=NULL, Help=NULL WHERE AD_Element_ID=202259 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Financial Year (Month)', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202259) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Financial Year (Month)', Name='Financial Year (Month)' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202259) +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Financial Month', PrintName='Financial Month',Updated=TO_DATE('2013-03-01 17:54:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202259 +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202259 +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='FinYear_Mth', Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202259 +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FinYear_Mth', Name='Financial Month', Description=NULL, Help=NULL, AD_Element_ID=202259 WHERE UPPER(ColumnName)='FINYEAR_MTH' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FinYear_Mth', Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202259 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='FinYear_Mth', Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202259 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202259) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Financial Month', Name='Financial Month' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202259) +; + +-- Mar 1, 2013 5:56:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','3',0,200073,'N','Y','N','D','L','f9e90dd6-dae3-48c9-ad30-b96090e75ab9','Y','N','RV_Fact_Adaxa','Complex Fact View',0,'Y',0,TO_DATE('2013-03-01 17:56:25','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2013-03-01 17:56:25','YYYY-MM-DD HH24:MI:SS')) +; + +-- Mar 1, 2013 5:56:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200073 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Mar 1, 2013 5:56:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200068,'cb8381dc-04dc-449d-8802-6cad5f6d671a','Table RV_Fact_Adaxa','RV_Fact_Adaxa',1,0,0,TO_DATE('2013-03-01 17:56:26','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 17:56:26','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +-- Mar 1, 2013 5:56:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208757,'D','N','N','N','N',10,'N',19,'N',102,'be1e7a04-e81e-4c0c-b036-4d7ea990d0e4','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client',100,TO_DATE('2013-03-01 17:56:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:34','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208757 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208758,'D','N','N','N','N',10,'N',19,'N',113,'39abf002-ea46-4f9c-9f50-af456b1d1d2c','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization',100,TO_DATE('2013-03-01 17:56:35','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:35','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208758 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208759,'D','N','N','N','N',60,'Y',10,'N',200186,'11254560-8d64-4e4b-8435-47db4596ced3','N','clientName','Client in which current session user logged in','Client Name',100,TO_DATE('2013-03-01 17:56:36','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:36','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208759 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208760,'D','N','N','N','N',29,'N',16,'N',263,'48f7cad5-9816-4632-bba8-a3310b0e353d','N','DateAcct','Accounting Date','The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.','Account Date',100,TO_DATE('2013-03-01 17:56:37','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:37','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208760 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bsdate',202262,'D','bsdate','bsdate','8141cd46-6711-48b2-a95e-5c21ebba3c29',0,TO_DATE('2013-03-01 17:56:37','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:37','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202262 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208761,'D','N','N','N','N',29,'N',16,'N',202262,'89d805e2-b5da-48ea-968d-fcbf8e664ee1','N','bsdate','bsdate',100,TO_DATE('2013-03-01 17:56:37','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:37','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208761 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bsmth',202263,'D','bsmth','bsmth','3f632b5e-38bc-4664-8810-b7d667a7ebd1',0,TO_DATE('2013-03-01 17:56:39','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:39','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202263 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208762,'D','N','N','N','N',2147483647,'N',14,'N',202263,'6c7286fc-6605-433f-bdba-e07e0070d369','N','bsmth','bsmth',100,TO_DATE('2013-03-01 17:56:39','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:39','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208762 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('fyear',202264,'D','fyear','fyear','73767ab0-a2c8-4d3e-8cad-9607b6fc84b3',0,TO_DATE('2013-03-01 17:56:40','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:40','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202264 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208763,'D','N','N','N','N',2147483647,'N',14,'N',202264,'dcca0850-c900-40fb-901d-8b840ddd23f8','N','fyear','fyear',100,TO_DATE('2013-03-01 17:56:40','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:40','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208763 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('fymth',202265,'D','fymth','fymth','d02f291c-8ad1-413e-b1cf-eb62c982dd48',0,TO_DATE('2013-03-01 17:56:42','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:42','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202265 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208764,'D','N','N','N','N',2147483647,'N',14,'N',202265,'653178be-d8cd-4d0b-98a4-c7245e0fbbd4','N','fymth','fymth',100,TO_DATE('2013-03-01 17:56:42','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:42','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208764 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('table_name',202266,'D','table_name','table_name','5a9ec751-1e67-4742-b287-6304e92b7373',0,TO_DATE('2013-03-01 17:56:43','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:43','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202266 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208765,'D','N','N','N','N',60,'Y',10,'N',202266,'53ae73ea-6e40-45a2-86c5-6ec779d130a7','N','table_name','table_name',100,TO_DATE('2013-03-01 17:56:43','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:43','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208765 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208766,'D','N','N','N','N',10,'N',19,'N',538,'ac181a2d-3ffe-4c48-93ac-9dcd3cb0c38a','N','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.','Record ID',100,TO_DATE('2013-03-01 17:56:45','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:45','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208766 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('budname',202267,'D','budname','budname','aa5546b2-b60e-4a94-bf10-0ebca296d54a',0,TO_DATE('2013-03-01 17:56:46','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:46','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202267 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208767,'D','N','N','N','N',60,'Y',10,'N',202267,'85aaf955-733b-419a-a14b-9d96fa10d42e','N','budname','budname',100,TO_DATE('2013-03-01 17:56:46','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:46','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208767 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('taxname',202268,'D','taxname','taxname','5c65c6b8-efd2-4677-9f00-6d78371a0fc5',0,TO_DATE('2013-03-01 17:56:47','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:47','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202268 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208768,'D','N','N','N','N',60,'Y',10,'N',202268,'fd238236-d8a3-49ae-b859-e200de3af9f7','N','taxname','taxname',100,TO_DATE('2013-03-01 17:56:47','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:47','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208768 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('act_bud',202269,'D','act_bud','act_bud','e9282f1f-acf0-42d9-97a4-8bcf74bcd5f3',0,TO_DATE('2013-03-01 17:56:49','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:49','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202269 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208769,'D','N','N','N','N',2147483647,'N',14,'N',202269,'65c6caa2-a705-4df3-84e5-43912964f37c','N','act_bud','act_bud',100,TO_DATE('2013-03-01 17:56:49','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:49','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208769 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('currency',202270,'D','currency','currency','261b6c98-a764-46d2-9c4f-bc1030fde7cd',0,TO_DATE('2013-03-01 17:56:50','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:50','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202270 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208770,'D','N','N','N','N',3,'N',17,'N',202270,'ca594716-ceeb-42a3-8d71-b25ca4827ed2','N','currency','currency',100,TO_DATE('2013-03-01 17:56:50','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:50','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208770 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('amtsce',202271,'D','amtsce','amtsce','c444dd04-3cc8-44e0-9f4f-ede1153fa4c5',0,TO_DATE('2013-03-01 17:56:52','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:52','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202271 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208771,'D','N','N','N','N',131089,'N',12,'N',202271,'1f979ed4-f8b5-4785-9a85-1f740f1aa72c','N','amtsce','amtsce',100,TO_DATE('2013-03-01 17:56:52','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:52','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208771 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208772,'D','N','N','N','N',131089,'N',12,'N',2342,'d6933daa-e338-43fe-8772-eee08b23dc73','N','AmtAcct','Amount Balance in Currency of Accounting Schema','Accounted Amount',100,TO_DATE('2013-03-01 17:56:54','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:54','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208772 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('pl$act',202272,'D','pl$act','pl$act','1ff41f3b-2236-46d6-8361-429767fc27e6',0,TO_DATE('2013-03-01 17:56:54','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:54','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202272 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208773,'D','N','N','N','N',131089,'N',22,'N',202272,'53b0890b-7616-4015-b2db-12e48a2f965f','N','pl$act','pl$act',100,TO_DATE('2013-03-01 17:56:54','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:54','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208773 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bs$act',202273,'D','bs$act','bs$act','913ca6f4-6259-49e2-9ceb-3ab9a8b45b10',0,TO_DATE('2013-03-01 17:56:56','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:56','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202273 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208774,'D','N','N','N','N',131089,'N',22,'N',202273,'7ddd6a28-e2e9-4541-9f34-72980ce06140','N','bs$act','bs$act',100,TO_DATE('2013-03-01 17:56:56','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:56','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208774 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('pl$bud',202274,'D','pl$bud','pl$bud','353c6a5e-ced7-4858-9267-e6453cc84783',0,TO_DATE('2013-03-01 17:56:57','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:57','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202274 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208775,'D','N','N','N','N',131089,'N',22,'N',202274,'aa9ba732-fbf0-4568-a26f-9bba5080bfb2','N','pl$bud','pl$bud',100,TO_DATE('2013-03-01 17:56:57','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:57','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208775 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('uomname',202275,'D','uomname','uomname','c5e7b626-3aef-4825-a61a-f1e6077e827c',0,TO_DATE('2013-03-01 17:56:59','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:56:59','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202275 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208776,'D','N','N','N','N',10,'Y',10,'N',202275,'e9bf0ff9-6e5c-454a-9efb-9d927f7e7ccb','N','uomname','uomname',100,TO_DATE('2013-03-01 17:56:59','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:56:59','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208776 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208777,'D','N','N','N','N',131089,'N',29,'N',526,'a2b95e8e-192b-4a65-8554-14e834b6cce5','N','Qty','Quantity','The Quantity indicates the number of a specific product or item for this document.','Quantity',100,TO_DATE('2013-03-01 17:57:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:00','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208777 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208778,'D','N','N','N','N',60,'Y',10,'N',2161,'3c52345a-29dd-4a7a-beed-c773ad0a53d8','N','ProjectName','Name of the Project','Project',100,TO_DATE('2013-03-01 17:57:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:01','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208778 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208779,'D','N','N','N','N',255,'Y',10,'N',275,'e3290167-ff83-4b62-bfe0-adcac990cb6f','N','Description','Optional short description of the record','A description is limited to 255 characters.','Description',100,TO_DATE('2013-03-01 17:57:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:02','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208779 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208780,'D','N','N','N','N',60,'Y',10,'N',2660,'d4c4aec3-5c74-4bfc-a7af-71dd25afc4a9','N','OrgName','Name of the Organization','Organization Name',100,TO_DATE('2013-03-01 17:57:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:03','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208780 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ac_code',202276,'D','ac_code','ac_code','800ddcbb-2597-455e-af34-168d05b4a2cc',0,TO_DATE('2013-03-01 17:57:03','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:03','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202276 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208781,'D','N','N','N','N',40,'N',10,'N',202276,'131841a7-dc05-4a08-a65a-354769ba9cb9','N','ac_code','ac_code',100,TO_DATE('2013-03-01 17:57:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:03','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208781 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ac_name',202277,'D','ac_name','ac_name','d2faa895-2d90-4153-8ae3-1e6357fda78c',0,TO_DATE('2013-03-01 17:57:05','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:05','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202277 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208782,'D','N','N','N','N',60,'Y',10,'N',202277,'f29b2713-a2d8-472b-ab89-524066b96d1a','N','ac_name','ac_name',100,TO_DATE('2013-03-01 17:57:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:05','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208782 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('account_name',202278,'D','account_name','account_name','49d01eb9-7598-4bd8-9b3e-1aaed4bbd5f4',0,TO_DATE('2013-03-01 17:57:06','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:06','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202278 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208783,'D','N','N','N','N',2147483647,'Y',14,'N',202278,'16fc8413-db15-4a04-8225-8f8bba41a3be','N','account_name','account_name',100,TO_DATE('2013-03-01 17:57:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:06','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208783 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bstypename',202279,'D','bstypename','bstypename','85a90f7d-bcf8-42c3-903c-085559f72555',0,TO_DATE('2013-03-01 17:57:08','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:08','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202279 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208784,'D','N','N','N','N',2147483647,'Y',14,'N',202279,'f8530cf4-5ac9-4e63-aefe-5d5cefc3383f','N','bstypename','bstypename',100,TO_DATE('2013-03-01 17:57:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:08','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208784 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('pltypename',202280,'D','pltypename','pltypename','3198a724-906f-48e1-b13e-a9c9cf429bf7',0,TO_DATE('2013-03-01 17:57:09','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:09','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202280 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208785,'D','N','N','N','N',2147483647,'Y',14,'N',202280,'52dc9a1c-d49e-4d2d-bff5-263c747fc64d','N','pltypename','pltypename',100,TO_DATE('2013-03-01 17:57:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:09','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208785 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ac_group',202281,'D','ac_group','ac_group','efd6a109-e8e9-45e6-865d-610c6492f81b',0,TO_DATE('2013-03-01 17:57:11','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:11','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202281 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208786,'D','N','N','N','N',2147483647,'N',14,'N',202281,'93a3cd0b-422a-47f3-99a3-9abc958f142c','N','ac_group','ac_group',100,TO_DATE('2013-03-01 17:57:11','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:11','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208786 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bsgroup',202282,'D','bsgroup','bsgroup','bee13042-0c74-4700-a349-6049c13ad827',0,TO_DATE('2013-03-01 17:57:12','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:12','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202282 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208787,'D','N','N','N','N',2147483647,'N',14,'N',202282,'3517f418-f223-4dca-971d-88e8dc8412e4','N','bsgroup','bsgroup',100,TO_DATE('2013-03-01 17:57:12','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:12','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208787 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('plgroup',202283,'D','plgroup','plgroup','d8a888a1-f31f-43d0-adb9-d61c29b6939b',0,TO_DATE('2013-03-01 17:57:14','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:14','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202283 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208788,'D','N','N','N','N',2147483647,'N',14,'N',202283,'38ef8a13-ca36-4ad5-92dc-435082e28c2f','N','plgroup','plgroup',100,TO_DATE('2013-03-01 17:57:14','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:14','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208788 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('plbs',202284,'D','plbs','plbs','4910dd99-d985-484c-8622-08b41854b3de',0,TO_DATE('2013-03-01 17:57:16','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:16','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202284 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208789,'D','N','N','N','N',2147483647,'N',14,'N',202284,'3e2e48a6-260d-4c61-9777-a09d6068447c','N','plbs','plbs',100,TO_DATE('2013-03-01 17:57:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:16','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208789 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('na_eq',202285,'D','na_eq','na_eq','c609a69b-0c00-49f2-9cf8-ad888f76bacf',0,TO_DATE('2013-03-01 17:57:17','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:17','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202285 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208790,'D','N','N','N','N',2147483647,'N',14,'N',202285,'a6a7e716-07ac-4bd5-8a1e-1b35fbb01411','N','na_eq','na_eq',100,TO_DATE('2013-03-01 17:57:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:17','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208790 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bpcode',202286,'D','bpcode','bpcode','db4fb444-35a1-4c0e-a650-dc8853918a44',0,TO_DATE('2013-03-01 17:57:19','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:19','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202286 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208791,'D','N','N','N','N',40,'N',10,'N',202286,'5ecae4db-1cae-4d2c-8bcf-d4e00333096b','N','bpcode','bpcode',100,TO_DATE('2013-03-01 17:57:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:19','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208791 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208792,'D','N','N','N','N',60,'Y',10,'N',2510,'cdae90e8-dec9-483d-b1a0-c9ce9aec322b','N','BPName','BP Name',100,TO_DATE('2013-03-01 17:57:20','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:20','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208792 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bpartnercodeandname',202287,'D','bpartnercodeandname','bpartnercodeandname','9f207660-56d7-435c-add0-d9ea6074ddbd',0,TO_DATE('2013-03-01 17:57:21','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:21','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202287 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208793,'D','N','N','N','N',2147483647,'Y',14,'N',202287,'2affae11-41ec-4888-b1a3-0d0a92ec5aac','N','bpartnercodeandname','bpartnercodeandname',100,TO_DATE('2013-03-01 17:57:21','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:21','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208793 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bpgroupname',202288,'D','bpgroupname','bpgroupname','f46d9f14-3d04-4fb8-b374-54510b798f8c',0,TO_DATE('2013-03-01 17:57:22','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:22','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202288 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208794,'D','N','N','N','N',60,'Y',10,'N',202288,'fcc31714-fd70-46f1-aad2-77fdb1f4fe71','N','bpgroupname','bpgroupname',100,TO_DATE('2013-03-01 17:57:22','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:22','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208794 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('repname',202289,'D','repname','repname','026c01fa-3fee-4187-ba7c-d0c4f7eeb179',0,TO_DATE('2013-03-01 17:57:24','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:24','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202289 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208795,'D','N','N','N','N',60,'Y',10,'N',202289,'388e75fc-debe-4736-8f5c-60283a10e702','N','repname','repname',100,TO_DATE('2013-03-01 17:57:24','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:24','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208795 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('prodcode',202290,'D','prodcode','prodcode','dd1227b5-583e-4e38-9360-b86ffbfa78fe',0,TO_DATE('2013-03-01 17:57:25','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:25','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202290 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208796,'D','N','N','N','N',40,'N',10,'N',202290,'30a7aa37-c1dd-4d93-8230-24e5ffc53c99','N','prodcode','prodcode',100,TO_DATE('2013-03-01 17:57:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:25','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208796 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('prodname',202291,'D','prodname','prodname','e081670e-44fc-4857-a3e9-781a03d99843',0,TO_DATE('2013-03-01 17:57:27','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:27','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202291 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208797,'D','N','N','N','N',255,'Y',10,'N',202291,'d27bb1d0-4144-496b-8257-d443f5146fd3','N','prodname','prodname',100,TO_DATE('2013-03-01 17:57:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:27','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208797 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208798,'D','N','N','N','N',2147483647,'N',14,'N',1417,'4c7a77dc-4876-4d37-9280-c22aa2beb240','N','Product','Product',100,TO_DATE('2013-03-01 17:57:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:28','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208798 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('prodcategory',202292,'D','prodcategory','prodcategory','4cf9d342-eb9b-411f-8d86-ca2627f93627',0,TO_DATE('2013-03-01 17:57:29','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 17:57:29','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202292 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208799,'D','N','N','N','N',60,'N',10,'N',202292,'43473408-72fc-4138-95d5-c4adc5665f1b','N','prodcategory','prodcategory',100,TO_DATE('2013-03-01 17:57:29','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-01 17:57:29','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208799 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='AC_Code', Name='Account Code', PrintName='Account Code',Updated=TO_DATE('2013-03-01 17:59:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202276 +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202276 +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AC_Code', Name='Account Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202276 +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Code', Name='Account Code', Description=NULL, Help=NULL, AD_Element_ID=202276 WHERE UPPER(ColumnName)='AC_CODE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Code', Name='Account Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202276 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AC_Code', Name='Account Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202276 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Account Code', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202276) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Account Code', Name='Account Code' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202276) +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='AC_Group', Name='AC Group', PrintName='AC Group',Updated=TO_DATE('2013-03-01 18:01:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202281 +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202281 +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AC_Group', Name='AC Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202281 +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Group', Name='AC Group', Description=NULL, Help=NULL, AD_Element_ID=202281 WHERE UPPER(ColumnName)='AC_GROUP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Group', Name='AC Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202281 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AC_Group', Name='AC Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202281 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='AC Group', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202281) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='AC Group', Name='AC Group' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202281) +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='AC Code', PrintName='AC Code',Updated=TO_DATE('2013-03-01 18:01:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202276 +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202276 +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AC_Code', Name='AC Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202276 +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Code', Name='AC Code', Description=NULL, Help=NULL, AD_Element_ID=202276 WHERE UPPER(ColumnName)='AC_CODE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Code', Name='AC Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202276 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AC_Code', Name='AC Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202276 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='AC Code', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202276) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='AC Code', Name='AC Code' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202276) +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='AC_Name', Name='AC Name', PrintName='AC Name',Updated=TO_DATE('2013-03-01 18:02:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202277 +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202277 +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AC_Name', Name='AC Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202277 +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Name', Name='AC Name', Description=NULL, Help=NULL, AD_Element_ID=202277 WHERE UPPER(ColumnName)='AC_NAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Name', Name='AC Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202277 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AC_Name', Name='AC Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202277 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='AC Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202277) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='AC Name', Name='AC Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202277) +; + +-- Mar 1, 2013 6:02:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Account_Name', Name='Account Name', PrintName='Account Name',Updated=TO_DATE('2013-03-01 18:02:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202278 +; + +-- Mar 1, 2013 6:02:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202278 +; + +-- Mar 1, 2013 6:02:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Account_Name', Name='Account Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202278 +; + +-- Mar 1, 2013 6:02:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Account_Name', Name='Account Name', Description=NULL, Help=NULL, AD_Element_ID=202278 WHERE UPPER(ColumnName)='ACCOUNT_NAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:02:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Account_Name', Name='Account Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202278 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:02:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Account_Name', Name='Account Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202278 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:02:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Account Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202278) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:02:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Account Name', Name='Account Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202278) +; + +-- Mar 1, 2013 6:05:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Act_Bud', Name='Posting Type Name', PrintName='Posting Type Name',Updated=TO_DATE('2013-03-01 18:05:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202269 +; + +-- Mar 1, 2013 6:05:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202269 +; + +-- Mar 1, 2013 6:05:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Act_Bud', Name='Posting Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202269 +; + +-- Mar 1, 2013 6:05:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Act_Bud', Name='Posting Type Name', Description=NULL, Help=NULL, AD_Element_ID=202269 WHERE UPPER(ColumnName)='ACT_BUD' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:05:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Act_Bud', Name='Posting Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202269 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:05:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Act_Bud', Name='Posting Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202269 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:05:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Posting Type Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202269) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:05:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Posting Type Name', Name='Posting Type Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202269) +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='AmtSce', Name='Source Amount', PrintName='Source Amount',Updated=TO_DATE('2013-03-01 18:06:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202271 +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202271 +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtSce', Name='Source Amount', Description=NULL, Help=NULL WHERE AD_Element_ID=202271 +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtSce', Name='Source Amount', Description=NULL, Help=NULL, AD_Element_ID=202271 WHERE UPPER(ColumnName)='AMTSCE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtSce', Name='Source Amount', Description=NULL, Help=NULL WHERE AD_Element_ID=202271 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtSce', Name='Source Amount', Description=NULL, Help=NULL WHERE AD_Element_ID=202271 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Source Amount', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202271) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Source Amount', Name='Source Amount' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202271) +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BPartnerCodeAndName', Name='BP Code and Name', PrintName='BP Code and Name',Updated=TO_DATE('2013-03-01 18:07:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202287 +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202287 +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BPartnerCodeAndName', Name='BP Code and Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202287 +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BPartnerCodeAndName', Name='BP Code and Name', Description=NULL, Help=NULL, AD_Element_ID=202287 WHERE UPPER(ColumnName)='BPARTNERCODEANDNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BPartnerCodeAndName', Name='BP Code and Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202287 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BPartnerCodeAndName', Name='BP Code and Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202287 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BP Code and Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202287) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='BP Code and Name', Name='BP Code and Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202287) +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BPCode', Name='BP Code', PrintName='BP Code',Updated=TO_DATE('2013-03-01 18:07:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202286 +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202286 +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BPCode', Name='BP Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202286 +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BPCode', Name='BP Code', Description=NULL, Help=NULL, AD_Element_ID=202286 WHERE UPPER(ColumnName)='BPCODE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BPCode', Name='BP Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202286 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BPCode', Name='BP Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202286 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BP Code', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202286) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='BP Code', Name='BP Code' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202286) +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BPGroupName', Name='BP Group Name', PrintName='BP Group Name',Updated=TO_DATE('2013-03-01 18:08:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202288 +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202288 +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BPGroupName', Name='BP Group Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202288 +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BPGroupName', Name='BP Group Name', Description=NULL, Help=NULL, AD_Element_ID=202288 WHERE UPPER(ColumnName)='BPGROUPNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BPGroupName', Name='BP Group Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202288 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BPGroupName', Name='BP Group Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202288 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BP Group Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202288) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='BP Group Name', Name='BP Group Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202288) +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BS$ACT', Name='BS$ACT', PrintName='BS$ACT',Updated=TO_DATE('2013-03-01 18:08:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202273 +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202273 +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BS$ACT', Name='BS$ACT', Description=NULL, Help=NULL WHERE AD_Element_ID=202273 +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BS$ACT', Name='BS$ACT', Description=NULL, Help=NULL, AD_Element_ID=202273 WHERE UPPER(ColumnName)='BS$ACT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BS$ACT', Name='BS$ACT', Description=NULL, Help=NULL WHERE AD_Element_ID=202273 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BS$ACT', Name='BS$ACT', Description=NULL, Help=NULL WHERE AD_Element_ID=202273 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BS$ACT', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202273) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='BS$ACT', Name='BS$ACT' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202273) +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BSDate', Name='BS Date', PrintName='BS Date',Updated=TO_DATE('2013-03-01 18:09:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202262 +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202262 +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BSDate', Name='BS Date', Description=NULL, Help=NULL WHERE AD_Element_ID=202262 +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSDate', Name='BS Date', Description=NULL, Help=NULL, AD_Element_ID=202262 WHERE UPPER(ColumnName)='BSDATE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSDate', Name='BS Date', Description=NULL, Help=NULL WHERE AD_Element_ID=202262 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BSDate', Name='BS Date', Description=NULL, Help=NULL WHERE AD_Element_ID=202262 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BS Date', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202262) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='BS Date', Name='BS Date' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202262) +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BSGroup', Name='BS Group', PrintName='BS Group',Updated=TO_DATE('2013-03-01 18:10:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202282 +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202282 +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BSGroup', Name='BS Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202282 +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSGroup', Name='BS Group', Description=NULL, Help=NULL, AD_Element_ID=202282 WHERE UPPER(ColumnName)='BSGROUP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSGroup', Name='BS Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202282 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BSGroup', Name='BS Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202282 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BS Group', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202282) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='BS Group', Name='BS Group' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202282) +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BSMth', Name='BS Month', PrintName='BS Month',Updated=TO_DATE('2013-03-01 18:11:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202263 +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202263 +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BSMth', Name='BS Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202263 +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSMth', Name='BS Month', Description=NULL, Help=NULL, AD_Element_ID=202263 WHERE UPPER(ColumnName)='BSMTH' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSMth', Name='BS Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202263 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BSMth', Name='BS Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202263 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BS Month', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202263) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='BS Month', Name='BS Month' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202263) +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BSTypeName', Name='BS Type Name', PrintName='BS Type Name',Updated=TO_DATE('2013-03-01 18:11:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202279 +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202279 +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BSTypeName', Name='BS Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202279 +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSTypeName', Name='BS Type Name', Description=NULL, Help=NULL, AD_Element_ID=202279 WHERE UPPER(ColumnName)='BSTYPENAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSTypeName', Name='BS Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202279 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BSTypeName', Name='BS Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202279 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BS Type Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202279) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='BS Type Name', Name='BS Type Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202279) +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BudName', Name='Budget Name', PrintName='Budget Name',Updated=TO_DATE('2013-03-01 18:12:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202267 +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202267 +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BudName', Name='Budget Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202267 +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BudName', Name='Budget Name', Description=NULL, Help=NULL, AD_Element_ID=202267 WHERE UPPER(ColumnName)='BUDNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BudName', Name='Budget Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202267 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BudName', Name='Budget Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202267 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Budget Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202267) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:12:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Budget Name', Name='Budget Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202267) +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Currency', Name='Currency', PrintName='Currency',Updated=TO_DATE('2013-03-01 18:12:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202270 +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202270 +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Currency', Name='Currency', Description=NULL, Help=NULL WHERE AD_Element_ID=202270 +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Currency', Name='Currency', Description=NULL, Help=NULL, AD_Element_ID=202270 WHERE UPPER(ColumnName)='CURRENCY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Currency', Name='Currency', Description=NULL, Help=NULL WHERE AD_Element_ID=202270 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Currency', Name='Currency', Description=NULL, Help=NULL WHERE AD_Element_ID=202270 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Currency', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202270) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Currency', Name='Currency' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202270) +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='FYear', Name='Financial Year', PrintName='Financial Year',Updated=TO_DATE('2013-03-01 18:13:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202264 +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202264 +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='FYear', Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Element_ID=202264 +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FYear', Name='Financial Year', Description=NULL, Help=NULL, AD_Element_ID=202264 WHERE UPPER(ColumnName)='FYEAR' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FYear', Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Element_ID=202264 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='FYear', Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Element_ID=202264 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202264) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Financial Year', Name='Financial Year' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202264) +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='FYMth', Name='Financial Month', PrintName='Financial Month',Updated=TO_DATE('2013-03-01 18:13:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202265 +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202265 +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='FYMth', Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202265 +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FYMth', Name='Financial Month', Description=NULL, Help=NULL, AD_Element_ID=202265 WHERE UPPER(ColumnName)='FYMTH' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FYMth', Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202265 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='FYMth', Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202265 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202265) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Financial Month', Name='Financial Month' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202265) +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Na_Eq', Name='Net Assets / Equity', PrintName='Net Assets / Equity',Updated=TO_DATE('2013-03-01 18:14:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202285 +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202285 +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Na_Eq', Name='Net Assets / Equity', Description=NULL, Help=NULL WHERE AD_Element_ID=202285 +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Na_Eq', Name='Net Assets / Equity', Description=NULL, Help=NULL, AD_Element_ID=202285 WHERE UPPER(ColumnName)='NA_EQ' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Na_Eq', Name='Net Assets / Equity', Description=NULL, Help=NULL WHERE AD_Element_ID=202285 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Na_Eq', Name='Net Assets / Equity', Description=NULL, Help=NULL WHERE AD_Element_ID=202285 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Net Assets / Equity', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202285) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Net Assets / Equity', Name='Net Assets / Equity' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202285) +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='PL$ACT', Name='PL$ACT', PrintName='PL$ACT',Updated=TO_DATE('2013-03-01 18:15:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202272 +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202272 +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='PL$ACT', Name='PL$ACT', Description=NULL, Help=NULL WHERE AD_Element_ID=202272 +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PL$ACT', Name='PL$ACT', Description=NULL, Help=NULL, AD_Element_ID=202272 WHERE UPPER(ColumnName)='PL$ACT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PL$ACT', Name='PL$ACT', Description=NULL, Help=NULL WHERE AD_Element_ID=202272 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='PL$ACT', Name='PL$ACT', Description=NULL, Help=NULL WHERE AD_Element_ID=202272 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='PL$ACT', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202272) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='PL$ACT', Name='PL$ACT' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202272) +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='PL$BUD', Name='PL$BUD', PrintName='PL$BUD',Updated=TO_DATE('2013-03-01 18:16:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202274 +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202274 +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='PL$BUD', Name='PL$BUD', Description=NULL, Help=NULL WHERE AD_Element_ID=202274 +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PL$BUD', Name='PL$BUD', Description=NULL, Help=NULL, AD_Element_ID=202274 WHERE UPPER(ColumnName)='PL$BUD' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PL$BUD', Name='PL$BUD', Description=NULL, Help=NULL WHERE AD_Element_ID=202274 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='PL$BUD', Name='PL$BUD', Description=NULL, Help=NULL WHERE AD_Element_ID=202274 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='PL$BUD', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202274) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='PL$BUD', Name='PL$BUD' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202274) +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='PLBS', Name='PL / BS', PrintName='PL / BS',Updated=TO_DATE('2013-03-01 18:16:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202284 +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202284 +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='PLBS', Name='PL / BS', Description=NULL, Help=NULL WHERE AD_Element_ID=202284 +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PLBS', Name='PL / BS', Description=NULL, Help=NULL, AD_Element_ID=202284 WHERE UPPER(ColumnName)='PLBS' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PLBS', Name='PL / BS', Description=NULL, Help=NULL WHERE AD_Element_ID=202284 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='PLBS', Name='PL / BS', Description=NULL, Help=NULL WHERE AD_Element_ID=202284 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='PL / BS', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202284) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='PL / BS', Name='PL / BS' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202284) +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='PLGroup', Name='PL Group', PrintName='PL Group',Updated=TO_DATE('2013-03-01 18:16:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202283 +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202283 +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='PLGroup', Name='PL Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202283 +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PLGroup', Name='PL Group', Description=NULL, Help=NULL, AD_Element_ID=202283 WHERE UPPER(ColumnName)='PLGROUP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PLGroup', Name='PL Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202283 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='PLGroup', Name='PL Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202283 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='PL Group', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202283) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='PL Group', Name='PL Group' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202283) +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='PLTypeName', Name='PL Type Name', PrintName='PL Type Name',Updated=TO_DATE('2013-03-01 18:17:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202280 +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202280 +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='PLTypeName', Name='PL Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202280 +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PLTypeName', Name='PL Type Name', Description=NULL, Help=NULL, AD_Element_ID=202280 WHERE UPPER(ColumnName)='PLTYPENAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PLTypeName', Name='PL Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202280 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='PLTypeName', Name='PL Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202280 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='PL Type Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202280) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:17:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='PL Type Name', Name='PL Type Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202280) +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='ProdCategory', Name='Product Category', PrintName='Product Category',Updated=TO_DATE('2013-03-01 18:17:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202292 +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202292 +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='ProdCategory', Name='Product Category', Description=NULL, Help=NULL WHERE AD_Element_ID=202292 +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ProdCategory', Name='Product Category', Description=NULL, Help=NULL, AD_Element_ID=202292 WHERE UPPER(ColumnName)='PRODCATEGORY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ProdCategory', Name='Product Category', Description=NULL, Help=NULL WHERE AD_Element_ID=202292 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='ProdCategory', Name='Product Category', Description=NULL, Help=NULL WHERE AD_Element_ID=202292 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Product Category', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202292) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Product Category', Name='Product Category' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202292) +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='ProdCode', Name='Product Code', PrintName='Product Code',Updated=TO_DATE('2013-03-01 18:18:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202290 +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202290 +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='ProdCode', Name='Product Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202290 +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ProdCode', Name='Product Code', Description=NULL, Help=NULL, AD_Element_ID=202290 WHERE UPPER(ColumnName)='PRODCODE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ProdCode', Name='Product Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202290 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='ProdCode', Name='Product Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202290 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Product Code', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202290) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Product Code', Name='Product Code' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202290) +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='ProdName', Name='Product Name', PrintName='Product Name',Updated=TO_DATE('2013-03-01 18:18:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202291 +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202291 +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='ProdName', Name='Product Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202291 +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ProdName', Name='Product Name', Description=NULL, Help=NULL, AD_Element_ID=202291 WHERE UPPER(ColumnName)='PRODNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ProdName', Name='Product Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202291 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='ProdName', Name='Product Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202291 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Product Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202291) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Product Name', Name='Product Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202291) +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='RepName', Name='Sales Rep Name', PrintName='Sales Rep Name',Updated=TO_DATE('2013-03-01 18:18:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202289 +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202289 +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='RepName', Name='Sales Rep Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202289 +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='RepName', Name='Sales Rep Name', Description=NULL, Help=NULL, AD_Element_ID=202289 WHERE UPPER(ColumnName)='REPNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='RepName', Name='Sales Rep Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202289 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='RepName', Name='Sales Rep Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202289 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Sales Rep Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202289) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Sales Rep Name', Name='Sales Rep Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202289) +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Table_Name', Name='Table Name', PrintName='Table Name',Updated=TO_DATE('2013-03-01 18:19:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202266 +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202266 +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Table_Name', Name='Table Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202266 +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Table_Name', Name='Table Name', Description=NULL, Help=NULL, AD_Element_ID=202266 WHERE UPPER(ColumnName)='TABLE_NAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Table_Name', Name='Table Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202266 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Table_Name', Name='Table Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202266 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Table Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202266) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Table Name', Name='Table Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202266) +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='TaxName', Name='Tax Name', PrintName='Tax Name',Updated=TO_DATE('2013-03-01 18:19:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202268 +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202268 +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='TaxName', Name='Tax Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202268 +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='TaxName', Name='Tax Name', Description=NULL, Help=NULL, AD_Element_ID=202268 WHERE UPPER(ColumnName)='TAXNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='TaxName', Name='Tax Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202268 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='TaxName', Name='Tax Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202268 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Tax Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202268) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='Tax Name', Name='Tax Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202268) +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='UOMName', Name='UOM Name', PrintName='UOM Name',Updated=TO_DATE('2013-03-01 18:19:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202275 +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202275 +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='UOMName', Name='UOM Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202275 +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='UOMName', Name='UOM Name', Description=NULL, Help=NULL, AD_Element_ID=202275 WHERE UPPER(ColumnName)='UOMNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='UOMName', Name='UOM Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202275 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='UOMName', Name='UOM Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202275 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='UOM Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202275) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem pi SET PrintName='UOM Name', Name='UOM Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=202275) +; + +-- Mar 1, 2013 6:21:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_ReportView (AD_ReportView_UU,AD_Table_ID,AD_ReportView_ID,EntityType,Name,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Org_ID,IsActive) VALUES ('1ec4db62-c8ab-4320-ae3c-9bb8af432f7e',200072,200003,'D','RV_Fact_Simple',0,TO_DATE('2013-03-01 18:21:07','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 18:21:07','YYYY-MM-DD HH24:MI:SS'),100,0,'Y') +; + +-- Mar 1, 2013 6:21:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_ReportView (AD_ReportView_UU,AD_Table_ID,AD_ReportView_ID,EntityType,Name,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Org_ID,IsActive) VALUES ('e760d018-1023-46a2-b508-2f6659bbdf6c',200073,200004,'D','RV_Fact_Adaxa',0,TO_DATE('2013-03-01 18:21:25','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 18:21:25','YYYY-MM-DD HH24:MI:SS'),100,0,'Y') +; + +-- Mar 1, 2013 6:22:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process (CopyFromProcess,AD_Process_ID,IsDirectPrint,AD_ReportView_ID,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Name,Value,AD_Org_ID,AD_Client_ID,Created,Updated,UpdatedBy,IsActive,CreatedBy) VALUES ('N',200037,'N',200003,'Y','e6d33f36-e200-4ab2-95f8-884959210b7e','3','N','N',0,0,'Y','D','Simple Fact View','RV_Fact_Simple',0,0,TO_DATE('2013-03-01 18:22:44','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 18:22:44','YYYY-MM-DD HH24:MI:SS'),100,'Y',100) +; + +-- Mar 1, 2013 6:22:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200037 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) +; + +-- Mar 1, 2013 6:23:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',181,200056,'99999b62-5a7a-4de7-adb3-25bcefed3b88','An Accounting Schema defines the rules used in accounting such as costing method, currency and calendar',200037,19,'N','D','Accounting Schema','C_AcctSchema_ID','Rules for accounting',0,'Y',10,'Y',100,TO_DATE('2013-03-01 18:23:24','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 18:23:24','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 6:23:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200056 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 6:23:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,AD_Reference_Value_ID,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',113,200057,'5aed24a0-841e-413f-8a0a-f7429e810563','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200037,18,'N',130,'D','Organization','AD_Org_ID','Organizational entity within client',0,'Y',20,'Y',100,TO_DATE('2013-03-01 18:23:57','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 18:23:57','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 6:23:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200057 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 6:24:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,AD_Reference_Value_ID,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',148,200058,'62d9bcae-8b17-4951-9372-8266dd9c5ac4','The (natural) account used',200037,18,'N',132,'D','Account','Account_ID','Account used',0,'Y',30,'Y',100,TO_DATE('2013-03-01 18:24:28','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 18:24:28','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 6:24:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200058 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 6:25:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('Y',2083,200059,'a575f559-4406-48f7-803a-f6f8eb52c143',200037,10,'N','D','Account Key','AccountValue','Key of Account Element',0,'Y',40,'Y',100,TO_DATE('2013-03-01 18:25:05','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 18:25:05','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 6:25:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200059 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 6:26:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,VFormat,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('Y',202259,200060,'7d107cc7-f8be-4e63-95bd-f8d965de08ec','The only valid date format is: YYYY-MM',200037,10,'N','D','Financial Year Month','FinYear_Mth','The only valid date format is: YYYY-MM',0,'N','0000-00',50,'Y',100,TO_DATE('2013-03-01 18:26:40','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 18:26:40','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 6:26:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200060 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 6:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process (CopyFromProcess,AD_Process_ID,IsDirectPrint,AD_ReportView_ID,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Name,Value,AD_Org_ID,AD_Client_ID,Created,Updated,UpdatedBy,IsActive,CreatedBy) VALUES ('N',200038,'N',200004,'Y','fab3d440-ee73-4aef-a2ba-c7d96b2c5934','3','N','N',0,0,'Y','D','Complex Fact View','RV_Fact_Adaxa',0,0,TO_DATE('2013-03-01 18:27:25','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 18:27:25','YYYY-MM-DD HH24:MI:SS'),100,'Y',100) +; + +-- Mar 1, 2013 6:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200038 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) +; + +-- Mar 1, 2013 6:28:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormat (CreateCopy,IsForm,IsDefault,AD_PrintFormat_ID,IsStandardHeaderFooter,AD_ReportView_ID,AD_PrintPaper_ID,AD_PrintColor_ID,AD_PrintTableFormat_ID,IsTableBased,AD_Table_ID,HeaderMargin,AD_PrintFont_ID,AD_PrintFormat_UU,FooterMargin,Name,Updated,CreatedBy,Created,UpdatedBy,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('N','N','N',200007,'Y',200003,100,100,100,'Y',200072,0,130,'23bf5453-6efa-4109-a8d2-251d0b7bc5dc',0,'Simple Fact View',TO_DATE('2013-03-01 18:28:52','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 18:28:52','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',0) +; + +-- Mar 1, 2013 6:29:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintPaper_ID=100, AD_PrintColor_ID=100, AD_Table_ID=200072, AD_PrintFont_ID=130, Name='RV_Fact_Simple_2',Updated=TO_DATE('2013-03-01 18:29:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200007 +; + +-- Mar 1, 2013 6:29:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account',0,'N','Y','C',200007,'N',0,'F','N',1,208749,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Account',0,'N','60d36388-7dc0-4ba8-83bf-d933a7818b88',0,200164,'N',0,TO_DATE('2013-03-01 18:29:04','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:04','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200164 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208749) WHERE AD_PrintFormatItem_ID = 200164 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208749 AND trl.AD_PrintFormatItem_ID = 200164) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account Date',0,'N','Y','C',200007,'N',0,'F','N',2,208752,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Acct Date',0,'N','7520594e-9c61-475f-bd20-f31e85a12b13',0,200165,'N',0,TO_DATE('2013-03-01 18:29:06','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:06','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200165 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208752) WHERE AD_PrintFormatItem_ID = 200165 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208752 AND trl.AD_PrintFormatItem_ID = 200165) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account Key',0,'N','Y','C',200007,'N',0,'F','N',3,208750,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Account Key',0,'N','cabeb09c-e6eb-4a34-84bc-37362c2859ac',0,200166,'N',0,TO_DATE('2013-03-01 18:29:06','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:06','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200166 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208750) WHERE AD_PrintFormatItem_ID = 200166 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208750 AND trl.AD_PrintFormatItem_ID = 200166) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account Type',0,'N','Y','C',200007,'N',0,'F','N',4,208751,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Account Type',0,'N','a54ee288-58b7-45ca-9d7f-695002d81ee9',0,200167,'N',0,TO_DATE('2013-03-01 18:29:07','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:07','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200167 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208751) WHERE AD_PrintFormatItem_ID = 200167 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208751 AND trl.AD_PrintFormatItem_ID = 200167) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Accounted Amount',0,'N','Y','C',200007,'N',0,'F','N',5,208754,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Accounted',0,'N','1eafb308-8386-49f1-bc39-2c448d54ee03',0,200168,'N',0,TO_DATE('2013-03-01 18:29:09','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:09','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200168 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208754) WHERE AD_PrintFormatItem_ID = 200168 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208754 AND trl.AD_PrintFormatItem_ID = 200168) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Accounting Schema',0,'N','Y','C',200007,'N',0,'F','N',6,208748,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Accounting Schema',0,'N','a14d8bf2-7c01-4400-9ad7-2ed1646a8ebc',0,200169,'N',0,TO_DATE('2013-03-01 18:29:10','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:10','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200169 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208748) WHERE AD_PrintFormatItem_ID = 200169 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208748 AND trl.AD_PrintFormatItem_ID = 200169) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Active',0,'N','N','C',200007,'N',0,'F','N',0,208742,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Active',0,'N','6895b288-b96d-4b47-9129-c0195b5d9f94',0,200170,'N',0,TO_DATE('2013-03-01 18:29:11','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:11','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200170 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208742) WHERE AD_PrintFormatItem_ID = 200170 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208742 AND trl.AD_PrintFormatItem_ID = 200170) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Case',0,'N','Y','C',200007,'N',0,'F','N',8,208756,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Case',0,'N','263fbc37-0453-480d-a06a-2eed8f3ef790',0,200171,'N',0,TO_DATE('2013-03-01 18:29:11','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:11','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200171 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208756) WHERE AD_PrintFormatItem_ID = 200171 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208756 AND trl.AD_PrintFormatItem_ID = 200171) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Client',0,'N','N','C',200007,'N',0,'F','N',0,208740,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Client',0,'N','04bcb33e-4b5d-4c5b-be03-484a973e1b04',0,200172,'N',0,TO_DATE('2013-03-01 18:29:12','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:12','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200172 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208740) WHERE AD_PrintFormatItem_ID = 200172 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208740 AND trl.AD_PrintFormatItem_ID = 200172) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Created',0,'N','N','C',200007,'N',0,'F','N',0,208743,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Created',0,'N','aaa0a1c6-1132-4790-bf53-a1470e20103f',0,200173,'N',0,TO_DATE('2013-03-01 18:29:13','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:13','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200173 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208743) WHERE AD_PrintFormatItem_ID = 200173 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208743 AND trl.AD_PrintFormatItem_ID = 200173) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Created By',0,'N','N','C',200007,'N',0,'F','N',0,208744,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Created By',0,'N','c4eae83a-22de-49fc-b9b5-4063b850dd40',0,200174,'N',0,TO_DATE('2013-03-01 18:29:14','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:14','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200174 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208744) WHERE AD_PrintFormatItem_ID = 200174 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208744 AND trl.AD_PrintFormatItem_ID = 200174) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Financial Month',0,'N','Y','C',200007,'N',0,'F','N',12,208753,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Financial Month',0,'N','55d02756-f9d9-4e77-8898-65d822d27a60',0,200175,'N',0,TO_DATE('2013-03-01 18:29:15','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:15','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200175 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208753) WHERE AD_PrintFormatItem_ID = 200175 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208753 AND trl.AD_PrintFormatItem_ID = 200175) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Financial Year',0,'N','Y','C',200007,'N',0,'F','N',13,208755,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Financial Year',0,'N','54237461-0306-4082-867a-fec75c5b9ea3',0,200176,'N',0,TO_DATE('2013-03-01 18:29:16','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:16','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200176 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208755) WHERE AD_PrintFormatItem_ID = 200176 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208755 AND trl.AD_PrintFormatItem_ID = 200176) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Organization',0,'N','N','C',200007,'N',0,'F','N',0,208741,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Organization',0,'N','30309939-89d4-4b23-9510-de498becc157',0,200177,'N',0,TO_DATE('2013-03-01 18:29:16','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:16','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200177 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208741) WHERE AD_PrintFormatItem_ID = 200177 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208741 AND trl.AD_PrintFormatItem_ID = 200177) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Project',0,'N','Y','C',200007,'N',0,'F','N',15,208747,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Project',0,'N','0557c4e8-a4e3-4d34-b34e-b00fbc60df41',0,200178,'N',0,TO_DATE('2013-03-01 18:29:17','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:17','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200178 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208747) WHERE AD_PrintFormatItem_ID = 200178 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208747 AND trl.AD_PrintFormatItem_ID = 200178) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Updated',0,'N','N','C',200007,'N',0,'F','N',0,208745,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Updated',0,'N','84b1a320-54d0-4df0-8c8e-6dc9ea3d003d',0,200179,'N',0,TO_DATE('2013-03-01 18:29:18','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:18','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200179 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208745) WHERE AD_PrintFormatItem_ID = 200179 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208745 AND trl.AD_PrintFormatItem_ID = 200179) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Updated By',0,'N','N','C',200007,'N',0,'F','N',0,208746,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Updated By',0,'N','37a3c314-f244-4931-abfe-fa77c72011f8',0,200180,'N',0,TO_DATE('2013-03-01 18:29:19','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:29:19','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200180 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208746) WHERE AD_PrintFormatItem_ID = 200180 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208746 AND trl.AD_PrintFormatItem_ID = 200180) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET Name='Simple Fact View',Updated=TO_DATE('2013-03-01 18:29:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200007 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200165 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200166 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200169 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200178 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=10,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200171 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=20,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200167 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200164 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200176 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200175 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=60,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200168 +; + +-- Mar 1, 2013 6:30:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SortNo=10,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=200164 +; + +-- Mar 1, 2013 6:30:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SortNo=20,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=200167 +; + +-- Mar 1, 2013 6:31:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='Y', YPosition=0,Updated=TO_DATE('2013-03-01 18:31:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200167 +; + +-- Mar 1, 2013 6:31:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSummarized='Y', SortNo=0,Updated=TO_DATE('2013-03-01 18:31:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200168 +; + +-- Mar 1, 2013 6:31:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormat (CreateCopy,IsForm,IsDefault,AD_PrintFormat_ID,IsStandardHeaderFooter,AD_ReportView_ID,AD_PrintPaper_ID,AD_PrintColor_ID,IsTableBased,AD_Table_ID,HeaderMargin,AD_PrintFont_ID,AD_PrintFormat_UU,FooterMargin,Name,Updated,CreatedBy,Created,UpdatedBy,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('N','N','N',200008,'Y',200004,100,100,'Y',200073,0,130,'73172ae9-4315-4c41-be74-8cb5689e27f6',0,'Complex Fact View',TO_DATE('2013-03-01 18:31:41','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-01 18:31:41','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',0) +; + +-- Mar 1, 2013 6:31:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintPaper_ID=100, AD_PrintColor_ID=100, AD_Table_ID=200073, AD_PrintFont_ID=130, Name='RV_Fact_Adaxa_2',Updated=TO_DATE('2013-03-01 18:31:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200008 +; + +-- Mar 1, 2013 6:31:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('AC Code',0,'N','Y','C',200008,'N',0,'F','N',1,208781,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','AC Code',0,'N','1fe443e5-fed4-496a-bdab-cae8fdeea1f2',0,200181,'N',0,TO_DATE('2013-03-01 18:31:50','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:31:50','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200181 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208781) WHERE AD_PrintFormatItem_ID = 200181 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208781 AND trl.AD_PrintFormatItem_ID = 200181) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('AC Group',0,'N','Y','C',200008,'N',0,'F','N',2,208786,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','AC Group',0,'N','cfd97f26-f582-4992-a5c8-35ffbf107ba0',0,200182,'N',0,TO_DATE('2013-03-01 18:31:51','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:31:51','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200182 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208786) WHERE AD_PrintFormatItem_ID = 200182 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208786 AND trl.AD_PrintFormatItem_ID = 200182) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('AC Name',0,'N','Y','C',200008,'N',0,'F','N',3,208782,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','AC Name',0,'N','0ee091a6-e8e2-4a77-8378-4d2f9fa7db44',0,200183,'N',0,TO_DATE('2013-03-01 18:31:51','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:31:51','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200183 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208782) WHERE AD_PrintFormatItem_ID = 200183 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208782 AND trl.AD_PrintFormatItem_ID = 200183) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account Date',0,'N','Y','C',200008,'N',0,'F','N',4,208760,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Acct Date',0,'N','6ae42832-e1da-4511-8708-58d0a2c9354b',0,200184,'N',0,TO_DATE('2013-03-01 18:31:52','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:31:52','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200184 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208760) WHERE AD_PrintFormatItem_ID = 200184 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208760 AND trl.AD_PrintFormatItem_ID = 200184) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account Name',0,'N','Y','C',200008,'N',0,'F','N',5,208783,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Account Name',0,'N','91e9d7a4-3ba8-49bd-b1f7-e365e117b54e',0,200185,'N',0,TO_DATE('2013-03-01 18:31:53','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:31:53','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200185 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208783) WHERE AD_PrintFormatItem_ID = 200185 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208783 AND trl.AD_PrintFormatItem_ID = 200185) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Accounted Amount',0,'N','Y','C',200008,'N',0,'F','N',6,208772,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Accounted',0,'N','145bdca3-f45e-45cd-96cf-5078653624cb',0,200186,'N',0,TO_DATE('2013-03-01 18:31:54','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:31:54','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200186 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208772) WHERE AD_PrintFormatItem_ID = 200186 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208772 AND trl.AD_PrintFormatItem_ID = 200186) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BP Code',0,'N','Y','C',200008,'N',0,'F','N',7,208791,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BP Code',0,'N','4a5fc986-1f32-4a15-81e9-3b48fd1ec8a4',0,200187,'N',0,TO_DATE('2013-03-01 18:31:55','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:31:55','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200187 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208791) WHERE AD_PrintFormatItem_ID = 200187 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208791 AND trl.AD_PrintFormatItem_ID = 200187) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BP Code and Name',0,'N','Y','C',200008,'N',0,'F','N',8,208793,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BP Code and Name',0,'N','581f892b-b5d3-4641-8272-ad0e91dbfcb3',0,200188,'N',0,TO_DATE('2013-03-01 18:31:55','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:31:55','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200188 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208793) WHERE AD_PrintFormatItem_ID = 200188 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208793 AND trl.AD_PrintFormatItem_ID = 200188) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BP Group Name',0,'N','Y','C',200008,'N',0,'F','N',9,208794,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BP Group Name',0,'N','8e89ea0c-9225-4fa4-8dfb-6614867e51e7',0,200189,'N',0,TO_DATE('2013-03-01 18:31:56','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:31:56','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200189 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208794) WHERE AD_PrintFormatItem_ID = 200189 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208794 AND trl.AD_PrintFormatItem_ID = 200189) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BP Name',0,'N','Y','C',200008,'N',0,'F','N',10,208792,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BP Name',0,'N','5cf859c0-2621-45a5-8f34-2f162afa4f2b',0,200190,'N',0,TO_DATE('2013-03-01 18:31:57','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:31:57','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200190 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208792) WHERE AD_PrintFormatItem_ID = 200190 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208792 AND trl.AD_PrintFormatItem_ID = 200190) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BS Date',0,'N','Y','C',200008,'N',0,'F','N',11,208761,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BS Date',0,'N','fabbe1a3-0ef3-411e-a31c-9275cc57e278',0,200191,'N',0,TO_DATE('2013-03-01 18:31:58','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:31:58','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200191 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208761) WHERE AD_PrintFormatItem_ID = 200191 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208761 AND trl.AD_PrintFormatItem_ID = 200191) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BS Group',0,'N','Y','C',200008,'N',0,'F','N',12,208787,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BS Group',0,'N','78fa067f-752d-4a3f-831a-aafa9f7a386f',0,200192,'N',0,TO_DATE('2013-03-01 18:31:58','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:31:58','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200192 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208787) WHERE AD_PrintFormatItem_ID = 200192 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208787 AND trl.AD_PrintFormatItem_ID = 200192) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BS Month',0,'N','Y','C',200008,'N',0,'F','N',13,208762,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BS Month',0,'N','9c4fa3f0-052a-4ea7-8e32-7eeb31b66dee',0,200193,'N',0,TO_DATE('2013-03-01 18:31:59','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:31:59','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200193 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208762) WHERE AD_PrintFormatItem_ID = 200193 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208762 AND trl.AD_PrintFormatItem_ID = 200193) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BS Type Name',0,'N','Y','C',200008,'N',0,'F','N',14,208784,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BS Type Name',0,'N','15d33071-ccdb-4a74-8d10-e94a55374d37',0,200194,'N',0,TO_DATE('2013-03-01 18:32:00','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:00','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200194 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208784) WHERE AD_PrintFormatItem_ID = 200194 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208784 AND trl.AD_PrintFormatItem_ID = 200194) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BS$ACT',0,'N','Y','C',200008,'N',0,'F','N',15,208774,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BS$ACT',0,'N','f4465ada-dabc-4a9b-b9ae-fc9236d95ccc',0,200195,'N',0,TO_DATE('2013-03-01 18:32:01','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:01','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200195 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208774) WHERE AD_PrintFormatItem_ID = 200195 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208774 AND trl.AD_PrintFormatItem_ID = 200195) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Budget Name',0,'N','Y','C',200008,'N',0,'F','N',16,208767,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Budget Name',0,'N','2f37ec62-67eb-48c7-88ee-fc4355029b77',0,200196,'N',0,TO_DATE('2013-03-01 18:32:01','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:01','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200196 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208767) WHERE AD_PrintFormatItem_ID = 200196 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208767 AND trl.AD_PrintFormatItem_ID = 200196) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Client',0,'N','N','C',200008,'N',0,'F','N',0,208757,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Client',0,'N','934ce8e4-780d-4778-ac09-6138c83ced25',0,200197,'N',0,TO_DATE('2013-03-01 18:32:02','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:02','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200197 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208757) WHERE AD_PrintFormatItem_ID = 200197 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208757 AND trl.AD_PrintFormatItem_ID = 200197) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Client Name',0,'N','Y','C',200008,'N',0,'F','N',18,208759,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Client Name',0,'N','0cd756af-c5b5-41ca-b3b5-fdccf58b2300',0,200198,'N',0,TO_DATE('2013-03-01 18:32:03','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:03','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200198 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208759) WHERE AD_PrintFormatItem_ID = 200198 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208759 AND trl.AD_PrintFormatItem_ID = 200198) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Currency',0,'N','Y','C',200008,'N',0,'F','N',19,208770,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Currency',0,'N','55e781aa-c2b7-43b3-a929-e12635dff9c6',0,200199,'N',0,TO_DATE('2013-03-01 18:32:04','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:04','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200199 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208770) WHERE AD_PrintFormatItem_ID = 200199 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208770 AND trl.AD_PrintFormatItem_ID = 200199) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Description',0,'N','Y','C',200008,'N',0,'F','N',20,208779,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Description',0,'N','e71984b3-68f2-4af7-908c-ada939fd65e1',0,200200,'N',0,TO_DATE('2013-03-01 18:32:05','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:05','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200200 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208779) WHERE AD_PrintFormatItem_ID = 200200 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208779 AND trl.AD_PrintFormatItem_ID = 200200) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Financial Month',0,'N','Y','C',200008,'N',0,'F','N',21,208764,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Financial Month',0,'N','4f054d3a-6442-4f41-8dd1-e69b1300e58b',0,200201,'N',0,TO_DATE('2013-03-01 18:32:05','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:05','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200201 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208764) WHERE AD_PrintFormatItem_ID = 200201 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208764 AND trl.AD_PrintFormatItem_ID = 200201) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Financial Year',0,'N','Y','C',200008,'N',0,'F','N',22,208763,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Financial Year',0,'N','f8c26f4b-ea1a-419b-a5cc-77c1e993291c',0,200202,'N',0,TO_DATE('2013-03-01 18:32:06','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:06','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200202 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208763) WHERE AD_PrintFormatItem_ID = 200202 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208763 AND trl.AD_PrintFormatItem_ID = 200202) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Net Assets / Equity',0,'N','Y','C',200008,'N',0,'F','N',23,208790,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Net Assets / Equity',0,'N','49f3a57a-f3c2-4a2f-ba6e-56cbc5a89901',0,200203,'N',0,TO_DATE('2013-03-01 18:32:07','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:07','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200203 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208790) WHERE AD_PrintFormatItem_ID = 200203 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208790 AND trl.AD_PrintFormatItem_ID = 200203) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Organization',0,'N','N','C',200008,'N',0,'F','N',0,208758,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Organization',0,'N','f9339a92-a4a7-4251-9ef6-a0ea0d6d9315',0,200204,'N',0,TO_DATE('2013-03-01 18:32:08','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:08','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200204 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208758) WHERE AD_PrintFormatItem_ID = 200204 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208758 AND trl.AD_PrintFormatItem_ID = 200204) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Organization Name',0,'N','Y','C',200008,'N',0,'F','N',25,208780,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Org Name',0,'N','e4a4b00d-fd0b-479b-a8a2-750516275352',0,200205,'N',0,TO_DATE('2013-03-01 18:32:09','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:09','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200205 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208780) WHERE AD_PrintFormatItem_ID = 200205 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208780 AND trl.AD_PrintFormatItem_ID = 200205) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('PL / BS',0,'N','Y','C',200008,'N',0,'F','N',26,208789,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','PL / BS',0,'N','848ea965-f98d-439b-a9a8-01f22f145418',0,200206,'N',0,TO_DATE('2013-03-01 18:32:09','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:09','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200206 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208789) WHERE AD_PrintFormatItem_ID = 200206 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208789 AND trl.AD_PrintFormatItem_ID = 200206) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('PL Group',0,'N','Y','C',200008,'N',0,'F','N',27,208788,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','PL Group',0,'N','e7d4b154-d1f6-47ec-bc14-9c1d68a3bab4',0,200207,'N',0,TO_DATE('2013-03-01 18:32:10','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:10','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200207 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208788) WHERE AD_PrintFormatItem_ID = 200207 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208788 AND trl.AD_PrintFormatItem_ID = 200207) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('PL Type Name',0,'N','Y','C',200008,'N',0,'F','N',28,208785,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','PL Type Name',0,'N','5591e956-1162-4dbe-8f28-cab4ae2bbcbe',0,200208,'N',0,TO_DATE('2013-03-01 18:32:11','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:11','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200208 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208785) WHERE AD_PrintFormatItem_ID = 200208 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208785 AND trl.AD_PrintFormatItem_ID = 200208) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('PL$ACT',0,'N','Y','C',200008,'N',0,'F','N',29,208773,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','PL$ACT',0,'N','ec8a5a43-d897-43da-850d-d6b1670784f5',0,200209,'N',0,TO_DATE('2013-03-01 18:32:12','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:12','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200209 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208773) WHERE AD_PrintFormatItem_ID = 200209 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208773 AND trl.AD_PrintFormatItem_ID = 200209) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('PL$BUD',0,'N','Y','C',200008,'N',0,'F','N',30,208775,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','PL$BUD',0,'N','3cd4a267-154d-4e44-b612-452282a041a8',0,200210,'N',0,TO_DATE('2013-03-01 18:32:13','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:13','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200210 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208775) WHERE AD_PrintFormatItem_ID = 200210 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208775 AND trl.AD_PrintFormatItem_ID = 200210) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Posting Type Name',0,'N','Y','C',200008,'N',0,'F','N',31,208769,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Posting Type Name',0,'N','03f55621-b7d4-4dee-8f78-788ff3b67f22',0,200211,'N',0,TO_DATE('2013-03-01 18:32:13','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:13','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200211 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208769) WHERE AD_PrintFormatItem_ID = 200211 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208769 AND trl.AD_PrintFormatItem_ID = 200211) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Product',0,'N','Y','C',200008,'N',0,'F','N',32,208798,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Product',0,'N','9dec2025-d376-4b0d-8af1-9083395e7875',0,200212,'N',0,TO_DATE('2013-03-01 18:32:14','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:14','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200212 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208798) WHERE AD_PrintFormatItem_ID = 200212 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208798 AND trl.AD_PrintFormatItem_ID = 200212) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Product Category',0,'N','Y','C',200008,'N',0,'F','N',33,208799,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Product Category',0,'N','cd4d3989-61f5-4efd-a4b2-035f22d0a035',0,200213,'N',0,TO_DATE('2013-03-01 18:32:15','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:15','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200213 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208799) WHERE AD_PrintFormatItem_ID = 200213 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208799 AND trl.AD_PrintFormatItem_ID = 200213) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Product Code',0,'N','Y','C',200008,'N',0,'F','N',34,208796,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Product Code',0,'N','63d87647-d1ab-42f9-9407-3a80c50078ff',0,200214,'N',0,TO_DATE('2013-03-01 18:32:15','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:15','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200214 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208796) WHERE AD_PrintFormatItem_ID = 200214 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208796 AND trl.AD_PrintFormatItem_ID = 200214) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Product Name',0,'N','Y','C',200008,'N',0,'F','N',35,208797,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Product Name',0,'N','63efa57a-684a-4c99-94e0-9a5b06f11b60',0,200215,'N',0,TO_DATE('2013-03-01 18:32:16','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:16','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200215 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208797) WHERE AD_PrintFormatItem_ID = 200215 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208797 AND trl.AD_PrintFormatItem_ID = 200215) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Project',0,'N','Y','C',200008,'N',0,'F','N',36,208778,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Project',0,'N','cc9f0de7-d2e5-4fe9-9dd5-7e059463d8e1',0,200216,'N',0,TO_DATE('2013-03-01 18:32:17','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:17','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200216 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208778) WHERE AD_PrintFormatItem_ID = 200216 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208778 AND trl.AD_PrintFormatItem_ID = 200216) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Quantity',0,'N','Y','C',200008,'N',0,'F','N',37,208777,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Qty',0,'N','525aabd5-c806-45bf-9721-10bc1d5d914f',0,200217,'N',0,TO_DATE('2013-03-01 18:32:18','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:18','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200217 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208777) WHERE AD_PrintFormatItem_ID = 200217 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208777 AND trl.AD_PrintFormatItem_ID = 200217) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Record ID',0,'N','Y','C',200008,'N',0,'F','N',38,208766,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Record ID',0,'N','245b7b58-f746-4d72-98be-7ce8c9cde23e',0,200218,'N',0,TO_DATE('2013-03-01 18:32:19','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:19','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200218 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208766) WHERE AD_PrintFormatItem_ID = 200218 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208766 AND trl.AD_PrintFormatItem_ID = 200218) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Sales Rep Name',0,'N','Y','C',200008,'N',0,'F','N',39,208795,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Sales Rep Name',0,'N','222b43bd-c673-42dc-91b7-cd5187e96205',0,200219,'N',0,TO_DATE('2013-03-01 18:32:19','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:19','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200219 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208795) WHERE AD_PrintFormatItem_ID = 200219 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208795 AND trl.AD_PrintFormatItem_ID = 200219) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Source Amount',0,'N','Y','C',200008,'N',0,'F','N',40,208771,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Source Amount',0,'N','fee6efae-657b-4480-85cc-70fb30c31ed2',0,200220,'N',0,TO_DATE('2013-03-01 18:32:20','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:20','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200220 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208771) WHERE AD_PrintFormatItem_ID = 200220 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208771 AND trl.AD_PrintFormatItem_ID = 200220) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Table Name',0,'N','Y','C',200008,'N',0,'F','N',41,208765,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Table Name',0,'N','27f1206f-c0e8-42cf-bfe9-45417849bbda',0,200221,'N',0,TO_DATE('2013-03-01 18:32:21','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:21','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200221 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208765) WHERE AD_PrintFormatItem_ID = 200221 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208765 AND trl.AD_PrintFormatItem_ID = 200221) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Tax Name',0,'N','Y','C',200008,'N',0,'F','N',42,208768,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Tax Name',0,'N','649f7563-e73e-4247-88b3-b3ecf1fbf0f7',0,200222,'N',0,TO_DATE('2013-03-01 18:32:22','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:22','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200222 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208768) WHERE AD_PrintFormatItem_ID = 200222 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208768 AND trl.AD_PrintFormatItem_ID = 200222) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('UOM Name',0,'N','Y','C',200008,'N',0,'F','N',43,208776,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','UOM Name',0,'N','fc392dd9-90c6-4226-a36f-a8f3f8c9e41e',0,200223,'N',0,TO_DATE('2013-03-01 18:32:22','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_DATE('2013-03-01 18:32:22','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200223 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208776) WHERE AD_PrintFormatItem_ID = 200223 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208776 AND trl.AD_PrintFormatItem_ID = 200223) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET Name='Complex Fact View',Updated=TO_DATE('2013-03-01 18:32:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200008 +; + +-- Mar 1, 2013 6:32:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintTableFormat_ID=NULL,Updated=TO_DATE('2013-03-01 18:32:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200007 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=10,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200198 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=20,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200184 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200191 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200193 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200202 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=60,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200201 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=70,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200221 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=80,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200218 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=90,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200196 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=100,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200222 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=110,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200211 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=120,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200199 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=130,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200220 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=140,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200186 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=150,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200209 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=160,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200195 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=170,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200210 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=180,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200223 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=190,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200217 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=200,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200216 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=210,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200200 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=220,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200205 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=230,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200181 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=240,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200183 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=250,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200185 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=260,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200194 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=270,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200208 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=280,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200182 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=290,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200192 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=300,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200207 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=310,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200206 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=320,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200203 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=330,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200187 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=340,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200190 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=350,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200188 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=360,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200189 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=370,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200219 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=380,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200214 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=390,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200215 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=400,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200212 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=410,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200213 +; + +-- Mar 1, 2013 6:39:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,AD_Menu_UU,IsCentrallyMaintained,Name,Action,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200045,'N','N','N',200037,'D','d381e737-0a2a-4df4-9cb5-4543ed789c3b','Y','Simple Fact View','R','Y',0,100,TO_DATE('2013-03-01 18:39:18','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-03-01 18:39:18','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Mar 1, 2013 6:39:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200045 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + +-- Mar 1, 2013 6:39:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', SysDate, 100, SysDate, 100,t.AD_Tree_ID, 200045, 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=200045) +; + +-- Mar 1, 2013 6:39:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,AD_Menu_UU,IsCentrallyMaintained,Name,Action,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200046,'N','N','N',200038,'D','d50dc78b-2db1-4320-86e8-e1304df8a7fe','Y','Complex Fact View','R','Y',0,100,TO_DATE('2013-03-01 18:39:34','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-03-01 18:39:34','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Mar 1, 2013 6:39:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200046 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + +-- Mar 1, 2013 6:39:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', SysDate, 100, SysDate, 100,t.AD_Tree_ID, 200046, 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=200046) +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=164 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=280 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=158 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=522 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200008 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=118 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53288 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53289 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53290 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=169 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=433 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=352 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=434 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200045 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200019 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=435 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=164 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=280 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=158 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=522 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200008 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=118 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53288 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53289 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53290 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=169 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=433 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=352 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=434 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200045 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200046 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200019 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=435 +; + +-- Mar 1, 2013 6:55:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Reference (AD_Reference_ID,Name,EntityType,AD_Reference_UU,IsOrderByValue,Description,ValidationType,AD_Client_ID,AD_Org_ID,Updated,CreatedBy,IsActive,Created,UpdatedBy) VALUES (200066,'Fact_Acct Account_ID','D','4548bb78-5571-41d3-97d7-2ed4dab17d39','N',NULL,'T',0,0,TO_DATE('2013-03-01 18:55:30','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2013-03-01 18:55:30','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Mar 1, 2013 6:55:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Reference_Trl_UU ) SELECT l.AD_Language,t.AD_Reference_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=200066 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) +; + +-- Mar 1, 2013 6:56:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Ref_Table (IsValueDisplayed,AD_Reference_ID,AD_Key,AD_Display,EntityType,AD_Table_ID,AD_Ref_Table_UU,CreatedBy,Updated,Created,AD_Client_ID,UpdatedBy,AD_Org_ID,IsActive) VALUES ('N',200066,3001,2519,'D',270,'e2901c8e-746a-417d-a31a-d58f92088528',100,TO_DATE('2013-03-01 18:56:02','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-01 18:56:02','YYYY-MM-DD HH24:MI:SS'),0,100,0,'Y') +; + +-- Mar 1, 2013 6:56:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET AD_Reference_Value_ID=200066,Updated=TO_DATE('2013-03-01 18:56:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200058 +; + +-- Mar 4, 2013 3:25:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET AD_Reference_Value_ID=200066, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-03-04 15:25:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208749 +; + +-- Mar 4, 2013 3:33:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET AD_Reference_Value_ID=132,Updated=TO_DATE('2013-03-04 15:33:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208749 +; + +-- Mar 4, 2013 3:34:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET AD_Reference_Value_ID=132,Updated=TO_DATE('2013-03-04 15:34:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200058 +; + +-- Mar 4, 2013 3:36:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Reference_Trl WHERE AD_Reference_ID=200066 +; + +-- Mar 4, 2013 3:36:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Reference WHERE AD_Reference_ID=200066 +; + +-- Mar 4, 2013 3:39:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET AD_Reference_Value_ID=117, AD_Reference_ID=17, IsToolbarButton='N',Updated=TO_DATE('2013-03-04 15:39:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208751 +; + +-- Mar 4, 2013 3:41:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='ClientName',Updated=TO_DATE('2013-03-04 15:41:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=200186 +; + +-- Mar 4, 2013 3:41:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='ClientName', Name='Client Name', Description=NULL, Help='Client in which current session user logged in' WHERE AD_Element_ID=200186 +; + +-- Mar 4, 2013 3:41:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ClientName', Name='Client Name', Description=NULL, Help='Client in which current session user logged in', AD_Element_ID=200186 WHERE UPPER(ColumnName)='CLIENTNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 4, 2013 3:41:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ClientName', Name='Client Name', Description=NULL, Help='Client in which current session user logged in' WHERE AD_Element_ID=200186 AND IsCentrallyMaintained='Y' +; + +-- Mar 4, 2013 3:41:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='ClientName', Name='Client Name', Description=NULL, Help='Client in which current session user logged in' WHERE AD_Element_ID=200186 AND IsCentrallyMaintained='Y' +; + +-- Mar 4, 2013 3:43:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET AD_Reference_ID=13, IsToolbarButton='N',Updated=TO_DATE('2013-03-04 15:43:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208766 +; + +-- Mar 4, 2013 3:45:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET AD_Reference_ID=10, IsToolbarButton='N',Updated=TO_DATE('2013-03-04 15:45:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208770 +; + +SELECT register_migration_script('201303041624_TICKET-1001763_FactView.sql') FROM dual +; \ No newline at end of file diff --git a/migration/i1.0a-release/postgresql/201303041619_TICKET-1001763_1099Extract.sql b/migration/i1.0a-release/postgresql/201303041619_TICKET-1001763_1099Extract.sql new file mode 100644 index 0000000000..22b18b8e16 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201303041619_TICKET-1001763_1099Extract.sql @@ -0,0 +1,6830 @@ +-- Feb 28, 2013 5:11:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','3',0,200067,'N','N','N','D','L','b7e5140c-ab39-458b-a41f-e4153099ea31','Y','Y','T_1099EXTRACT','1099 Extract',0,'Y',0,TO_TIMESTAMP('2013-02-28 17:11:23','YYYY-MM-DD HH24:MI:SS'),100,100,TO_TIMESTAMP('2013-02-28 17:11:23','YYYY-MM-DD HH24:MI:SS')) +; + +-- Feb 28, 2013 5:11:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200067 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Feb 28, 2013 5:11:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200062,'81ceacea-ec37-4fdc-bf07-3e23825847f0','Table T_1099EXTRACT','T_1099EXTRACT',1,0,0,TO_TIMESTAMP('2013-02-28 17:11:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-02-28 17:11:25','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +-- Feb 28, 2013 5:14:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208612,'D','Y','N','N','N',22,'N',19,129,'N',102,'N','Y','64e0933a-ee44-4792-b4f4-a81c48fcb62f','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',100,TO_TIMESTAMP('2013-02-28 17:14:14','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:14:14','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208612 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208613,'D','N','N','N','N',22,'N',19,104,'N',113,'N','Y','2371e4ab-9651-4548-8bc3-72785066de20','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',100,TO_TIMESTAMP('2013-02-28 17:14:15','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:14:15','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208613 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208614,'D','Y','N','N','N',22,'N',19,'N',114,'N','Y','8c02bdb7-52f4-4ef5-9e72-4f79d34efb39','N','AD_PInstance_ID','Instance of the process','Process Instance','Y',100,TO_TIMESTAMP('2013-02-28 17:14:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:14:16','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208614 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208615,'D','Y','N','N','N',7,'N',16,'N',245,'N','Y','ca699748-dda5-48ac-a1f5-0dc60248b961','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',100,TO_TIMESTAMP('2013-02-28 17:14:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:14:17','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208615 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208616,'D',110,'Y','N','N','N',22,'N',18,'N',246,'N','Y','222c0cc8-8da4-41ba-82bf-348e357d5c3e','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',100,TO_TIMESTAMP('2013-02-28 17:14:18','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:14:18','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208616 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208617,'D','Y','N','N','N',22,'N',13,'N',885,'N','Y','f6d03f2c-05f6-4dda-9303-bc7c61126236','N','Fact_Acct_ID','Accounting Fact','Y',100,TO_TIMESTAMP('2013-02-28 17:14:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:14:19','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208617 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'Y',200067,208618,'D','Y','N','N','N',1,'N',20,'N',348,'N','Y','8e584bb3-f5d6-432e-9043-3095cedca362','Y','IsActive','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.','Active','N',100,TO_TIMESTAMP('2013-02-28 17:14:29','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:14:29','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208618 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'Y',200067,208619,'D','N','N','N','N',60,'N',10,'N',54274,'N','Y','ae996471-7891-418e-b0bd-d0aee1efdb1f','Y','MatchCode','String identifying related accounting facts','Match Code','Y',100,TO_TIMESTAMP('2013-02-28 17:14:30','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:14:30','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208619 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('T_1099EXTRACT_UU',202222,'D','T_1099EXTRACT_UU','T_1099EXTRACT_UU','0847dcfe-2de6-42ad-bb09-a8cfa45b76c7',0,TO_TIMESTAMP('2013-02-28 17:14:31','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:14:31','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:14:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202222 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:14:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1.00,'N',200067,208620,'D','N','N','N','N',36,'N',10,'N',202222,'N','Y','f5587b87-26dd-4f59-a18e-303374c94bfb','Y','T_1099EXTRACT_UU','T_1099EXTRACT_UU','N',100,TO_TIMESTAMP('2013-02-28 17:14:31','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:14:31','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208620 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208621,'D','Y','N','N','N',7,'N',16,'N',607,'N','Y','0863b847-41d8-4bbd-a01c-b4aa515e31cb','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',100,TO_TIMESTAMP('2013-02-28 17:14:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:14:34','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208621 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:14:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'Y',200067,208622,'D',110,'Y','N','N','N',22,'N',18,'N',608,'N','Y','ec31ca00-7fef-49a4-bcbf-3bb16abf217e','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',100,TO_TIMESTAMP('2013-02-28 17:14:39','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:14:39','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 5:14:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208622 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:16:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208617 +; + +-- Feb 28, 2013 5:16:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208617 +; + +-- Feb 28, 2013 5:16:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208619 +; + +-- Feb 28, 2013 5:16:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208619 +; + +-- Feb 28, 2013 5:16:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Table SET TableName='T_1099Extract',Updated=TO_TIMESTAMP('2013-02-28 17:16:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200067 +; + +-- Feb 28, 2013 5:16:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Sequence SET Name='T_1099Extract',Updated=TO_TIMESTAMP('2013-02-28 17:16:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Sequence_ID=200062 +; + +-- Feb 28, 2013 5:17:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='T_1099Extract_UU', Name='T_1099Extract_UU', PrintName='T_1099Extract_UU',Updated=TO_TIMESTAMP('2013-02-28 17:17:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202222 +; + +-- Feb 28, 2013 5:17:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202222 +; + +-- Feb 28, 2013 5:17:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='T_1099Extract_UU', Name='T_1099Extract_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202222 +; + +-- Feb 28, 2013 5:17:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='T_1099Extract_UU', Name='T_1099Extract_UU', Description=NULL, Help=NULL, AD_Element_ID=202222 WHERE UPPER(ColumnName)='T_1099EXTRACT_UU' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:17:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='T_1099Extract_UU', Name='T_1099Extract_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202222 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:17:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='T_1099Extract_UU', Name='T_1099Extract_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202222 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:17:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='T_1099Extract_UU', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202222) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:17:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='T_1099Extract_UU', Name='T_1099Extract_UU' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202222) +; + +-- Feb 28, 2013 5:18:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket01',202223,'D','AmtBucket01','AmtBucket01','3f95cb06-95eb-4b8e-bd6f-635008443e5e',0,TO_TIMESTAMP('2013-02-28 17:18:03','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:18:03','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202223 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:18:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket02',202224,'D','AmtBucket02','AmtBucket02','93ec0f06-ce3b-4003-9833-0408a91e784f',0,TO_TIMESTAMP('2013-02-28 17:18:14','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:18:14','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202224 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:18:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket03',202225,'D','AmtBucket03','AmtBucket03','00cebd24-b734-4ee3-9452-07cfa0710ded',0,TO_TIMESTAMP('2013-02-28 17:18:24','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:18:24','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202225 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:18:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket04',202226,'D','AmtBucket04','AmtBucket04','159fdab2-ead3-437a-b9d1-3ab4dd5eba70',0,TO_TIMESTAMP('2013-02-28 17:18:31','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:18:31','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202226 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:18:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket05',202227,'D','AmtBucket05','AmtBucket05','722e6e4c-d436-4542-861c-f904cdf88916',0,TO_TIMESTAMP('2013-02-28 17:18:41','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:18:41','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202227 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:18:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket06',202228,'D','AmtBucket06','AmtBucket06','f72f6036-a203-40fc-8a58-1e90604a9162',0,TO_TIMESTAMP('2013-02-28 17:18:49','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:18:49','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202228 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:18:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket07',202229,'D','AmtBucket07','AmtBucket07','3e3a2321-16f9-4729-9202-9edcee5b9f81',0,TO_TIMESTAMP('2013-02-28 17:18:58','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:18:58','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:18:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202229 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:19:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket08',202230,'D','AmtBucket08','AmtBucket08','afcf8c62-26d8-48de-8ad3-f988caf4b2c9',0,TO_TIMESTAMP('2013-02-28 17:19:07','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:19:07','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:19:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202230 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket09',202231,'D','AmtBucket09','AmtBucket09','f894edc9-c217-4d98-959b-2aed20865d1d',0,TO_TIMESTAMP('2013-02-28 17:19:16','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:19:16','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202231 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:19:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket10',202232,'D','AmtBucket10','AmtBucket10','956341ed-1f65-4b46-a37f-224b34c248f8',0,TO_TIMESTAMP('2013-02-28 17:19:25','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:19:25','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:19:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202232 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:19:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket11',202233,'D','AmtBucket11','AmtBucket11','5d3c9b44-22b6-4a0c-86f8-4d0a04e56efa',0,TO_TIMESTAMP('2013-02-28 17:19:40','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:19:40','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:19:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202233 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:19:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket12',202234,'D','AmtBucket12','AmtBucket12','28546cdc-256c-4846-a91b-eb8b35b2beaf',0,TO_TIMESTAMP('2013-02-28 17:19:51','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:19:51','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:19:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202234 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:20:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket13',202235,'D','AmtBucket13','AmtBucket13','423eb35f-a296-49fd-b260-e7c17f845931',0,TO_TIMESTAMP('2013-02-28 17:20:00','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:20:00','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:20:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202235 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:20:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket14',202236,'D','AmtBucket14','AmtBucket14','b7f7ad31-4936-40c9-af07-e629ae61e841',0,TO_TIMESTAMP('2013-02-28 17:20:09','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:20:09','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:20:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202236 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:20:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket15',202237,'D','AmtBucket15','AmtBucket15','a9701e04-5e4f-499c-99de-0c6daaf52565',0,TO_TIMESTAMP('2013-02-28 17:20:20','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:20:20','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:20:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202237 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:20:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AmtBucket16',202238,'D','AmtBucket16','AmtBucket16','9a86d8fe-cdcd-4f82-82e6-05dcc2634602',0,TO_TIMESTAMP('2013-02-28 17:20:32','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:20:32','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:20:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202238 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:21:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208623,'D','N','N','N',0,'N',14,'N',12,'N',202223,'N','Y','a284a9d7-0405-4d1e-a8cf-4df4b965809e','Y','AmtBucket01','AmtBucket01','Y',100,TO_TIMESTAMP('2013-02-28 17:21:12','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:21:12','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:21:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208623 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:22:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208624,'D','N','N','N',0,'N',14,'N',12,'N',202224,'N','Y','4d1223ff-359e-432c-b245-1e94bdd1cc2d','Y','AmtBucket02','AmtBucket02','Y',100,TO_TIMESTAMP('2013-02-28 17:22:31','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:22:31','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:22:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208624 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:22:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208625,'D','N','N','N',0,'N',14,'N',12,'N',202225,'N','Y','dc942cf0-a661-48e3-a357-c694e0ec253b','Y','AmtBucket03','AmtBucket03','Y',100,TO_TIMESTAMP('2013-02-28 17:22:46','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:22:46','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:22:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208625 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:23:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208626,'D','N','N','N',0,'N',14,'N',12,'N',202226,'N','Y','5501ac5b-ce89-4656-bb18-7ced1d268eb2','Y','AmtBucket04','AmtBucket04','Y',100,TO_TIMESTAMP('2013-02-28 17:22:58','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:22:58','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:23:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208626 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:23:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208627,'D','N','N','N',0,'N',14,'N',12,'N',202227,'N','Y','095e5743-3c8f-4616-b02c-e6f056290b21','Y','AmtBucket05','AmtBucket05','Y',100,TO_TIMESTAMP('2013-02-28 17:23:14','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:23:14','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:23:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208627 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:23:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208628,'D','N','N','N',0,'N',14,'N',12,'N',202228,'N','Y','c7402624-d711-4dc6-8966-0b704c566282','Y','AmtBucket06','AmtBucket06','Y',100,TO_TIMESTAMP('2013-02-28 17:23:40','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:23:40','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:23:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208628 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:24:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208629,'D','N','N','N',0,'N',14,'N',12,'N',202229,'N','Y','c2d44ee6-bc86-44dc-aeba-053499c2ad0e','Y','AmtBucket07','AmtBucket07','Y',100,TO_TIMESTAMP('2013-02-28 17:24:11','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:24:11','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:24:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208629 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:24:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208630,'D','N','N','N',0,'N',14,'N',12,'N',202230,'N','Y','93d33eea-66ab-432b-a3fa-97a6c5fda6e8','Y','AmtBucket08','AmtBucket08','Y',100,TO_TIMESTAMP('2013-02-28 17:24:33','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:24:33','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:24:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208630 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:24:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208631,'D','N','N','N',0,'N',14,'N',12,'N',202231,'N','Y','76abd5dd-026b-4233-b095-9074d275a48c','Y','AmtBucket09','AmtBucket09','Y',100,TO_TIMESTAMP('2013-02-28 17:24:53','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:24:53','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:24:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208631 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:25:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208632,'D','N','N','N',0,'N',14,'N',12,'N',202232,'N','Y','0c1e00fd-17f2-4001-ad40-f4fb850d02f3','Y','AmtBucket10','AmtBucket10','Y',100,TO_TIMESTAMP('2013-02-28 17:25:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:25:06','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:25:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208632 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:25:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208633,'D','N','N','N',0,'N',14,'N',12,'N',202233,'N','Y','3699e293-3dc7-472a-b8d6-8c5733f01a6e','Y','AmtBucket11','AmtBucket11','Y',100,TO_TIMESTAMP('2013-02-28 17:25:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:25:27','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:25:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208633 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:25:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208634,'D','N','N','N',0,'N',14,'N',12,'N',202234,'N','Y','eecec4b3-10f8-4c18-b061-6332430e3698','Y','AmtBucket12','AmtBucket12','Y',100,TO_TIMESTAMP('2013-02-28 17:25:41','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:25:41','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:25:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208634 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:25:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208635,'D','N','N','N',0,'N',14,'N',12,'N',202235,'N','Y','edd6c6b4-bdd3-4dd6-8878-d24295e69e6a','Y','AmtBucket13','AmtBucket13','Y',100,TO_TIMESTAMP('2013-02-28 17:25:54','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:25:54','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:25:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208635 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:26:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208636,'D','N','N','N',0,'N',14,'N',12,'N',202236,'N','Y','4fa4fad6-a3ba-44de-aeb5-16e886710116','Y','AmtBucket14','AmtBucket14','Y',100,TO_TIMESTAMP('2013-02-28 17:26:12','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:26:12','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:26:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208636 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:26:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208637,'D','N','N','N',0,'N',14,'N',12,'N',202237,'N','Y','619558da-eab3-46f6-ab07-82713f90806a','Y','AmtBucket15','AmtBucket15','Y',100,TO_TIMESTAMP('2013-02-28 17:26:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:26:34','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:26:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208637 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:26:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208638,'D','N','N','N',0,'N',14,'N',12,'N',202238,'N','Y','bd68bcca-2664-4b26-b3d0-b037d26782b7','Y','AmtBucket16','AmtBucket16','Y',100,TO_TIMESTAMP('2013-02-28 17:26:49','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:26:49','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:26:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208638 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:28:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208639,'D','Y','N','N',0,'N',10,'N',19,'N',187,'N','Y','43c28a21-b9e2-4f61-868f-f524f19818e3','Y','C_BPartner_ID','Identifies a Business Partner','A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Business Partner ','Y',100,TO_TIMESTAMP('2013-02-28 17:28:35','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:28:35','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:28:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208639 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:30:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208640,'D','N','N','N',0,'N',10,'N',21,'N',202,'N','Y','73055055-97d1-49bd-beed-6af19fd70184','Y','C_Location_ID','Location or Address','The Location / Address field defines the location of an entity.','Address','Y',100,TO_TIMESTAMP('2013-02-28 17:30:07','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:30:07','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:30:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208640 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:31:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('Cut_Date',202239,'D','Cut Date','Cut Date','fa45128f-8f37-4207-bff5-743026da2431',0,TO_TIMESTAMP('2013-02-28 17:31:36','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:31:36','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:31:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202239 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:31:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('Cut_Year',202240,'D','Cut Year','Cut Year','2f38f415-f6f0-4b16-8cb2-a0c9ceff95ea',0,TO_TIMESTAMP('2013-02-28 17:31:52','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:31:52','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:31:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202240 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:32:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 1', PrintName='Amount Bucket 1',Updated=TO_TIMESTAMP('2013-02-28 17:32:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202223 +; + +-- Feb 28, 2013 5:32:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202223 +; + +-- Feb 28, 2013 5:32:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket01', Name='Amount Bucket 1', Description=NULL, Help=NULL WHERE AD_Element_ID=202223 +; + +-- Feb 28, 2013 5:32:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket01', Name='Amount Bucket 1', Description=NULL, Help=NULL, AD_Element_ID=202223 WHERE UPPER(ColumnName)='AMTBUCKET01' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:32:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket01', Name='Amount Bucket 1', Description=NULL, Help=NULL WHERE AD_Element_ID=202223 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket01', Name='Amount Bucket 1', Description=NULL, Help=NULL WHERE AD_Element_ID=202223 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 1', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202223) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 1', Name='Amount Bucket 1' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202223) +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 2', PrintName='Amount Bucket 2',Updated=TO_TIMESTAMP('2013-02-28 17:32:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202224 +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202224 +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket02', Name='Amount Bucket 2', Description=NULL, Help=NULL WHERE AD_Element_ID=202224 +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket02', Name='Amount Bucket 2', Description=NULL, Help=NULL, AD_Element_ID=202224 WHERE UPPER(ColumnName)='AMTBUCKET02' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket02', Name='Amount Bucket 2', Description=NULL, Help=NULL WHERE AD_Element_ID=202224 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket02', Name='Amount Bucket 2', Description=NULL, Help=NULL WHERE AD_Element_ID=202224 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 2', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202224) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 2', Name='Amount Bucket 2' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202224) +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 3', PrintName='Amount Bucket 3',Updated=TO_TIMESTAMP('2013-02-28 17:32:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202225 +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202225 +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket03', Name='Amount Bucket 3', Description=NULL, Help=NULL WHERE AD_Element_ID=202225 +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket03', Name='Amount Bucket 3', Description=NULL, Help=NULL, AD_Element_ID=202225 WHERE UPPER(ColumnName)='AMTBUCKET03' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket03', Name='Amount Bucket 3', Description=NULL, Help=NULL WHERE AD_Element_ID=202225 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket03', Name='Amount Bucket 3', Description=NULL, Help=NULL WHERE AD_Element_ID=202225 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 3', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202225) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 3', Name='Amount Bucket 3' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202225) +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 4', PrintName='Amount Bucket 4',Updated=TO_TIMESTAMP('2013-02-28 17:32:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202226 +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202226 +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket04', Name='Amount Bucket 4', Description=NULL, Help=NULL WHERE AD_Element_ID=202226 +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket04', Name='Amount Bucket 4', Description=NULL, Help=NULL, AD_Element_ID=202226 WHERE UPPER(ColumnName)='AMTBUCKET04' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket04', Name='Amount Bucket 4', Description=NULL, Help=NULL WHERE AD_Element_ID=202226 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket04', Name='Amount Bucket 4', Description=NULL, Help=NULL WHERE AD_Element_ID=202226 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 4', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202226) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 4', Name='Amount Bucket 4' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202226) +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 5', PrintName='Amount Bucket 5',Updated=TO_TIMESTAMP('2013-02-28 17:32:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202227 +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202227 +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket05', Name='Amount Bucket 5', Description=NULL, Help=NULL WHERE AD_Element_ID=202227 +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket05', Name='Amount Bucket 5', Description=NULL, Help=NULL, AD_Element_ID=202227 WHERE UPPER(ColumnName)='AMTBUCKET05' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket05', Name='Amount Bucket 5', Description=NULL, Help=NULL WHERE AD_Element_ID=202227 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket05', Name='Amount Bucket 5', Description=NULL, Help=NULL WHERE AD_Element_ID=202227 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 5', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202227) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 5', Name='Amount Bucket 5' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202227) +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 6', PrintName='Amount Bucket 6',Updated=TO_TIMESTAMP('2013-02-28 17:32:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202228 +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202228 +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket06', Name='Amount Bucket 6', Description=NULL, Help=NULL WHERE AD_Element_ID=202228 +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket06', Name='Amount Bucket 6', Description=NULL, Help=NULL, AD_Element_ID=202228 WHERE UPPER(ColumnName)='AMTBUCKET06' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket06', Name='Amount Bucket 6', Description=NULL, Help=NULL WHERE AD_Element_ID=202228 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket06', Name='Amount Bucket 6', Description=NULL, Help=NULL WHERE AD_Element_ID=202228 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 6', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202228) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:32:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 6', Name='Amount Bucket 6' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202228) +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 7', PrintName='Amount Bucket 7',Updated=TO_TIMESTAMP('2013-02-28 17:33:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202229 +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202229 +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket07', Name='Amount Bucket 7', Description=NULL, Help=NULL WHERE AD_Element_ID=202229 +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket07', Name='Amount Bucket 7', Description=NULL, Help=NULL, AD_Element_ID=202229 WHERE UPPER(ColumnName)='AMTBUCKET07' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket07', Name='Amount Bucket 7', Description=NULL, Help=NULL WHERE AD_Element_ID=202229 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket07', Name='Amount Bucket 7', Description=NULL, Help=NULL WHERE AD_Element_ID=202229 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 7', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202229) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 7', Name='Amount Bucket 7' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202229) +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 8', PrintName='Amount Bucket 8',Updated=TO_TIMESTAMP('2013-02-28 17:33:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202230 +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202230 +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket08', Name='Amount Bucket 8', Description=NULL, Help=NULL WHERE AD_Element_ID=202230 +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket08', Name='Amount Bucket 8', Description=NULL, Help=NULL, AD_Element_ID=202230 WHERE UPPER(ColumnName)='AMTBUCKET08' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket08', Name='Amount Bucket 8', Description=NULL, Help=NULL WHERE AD_Element_ID=202230 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket08', Name='Amount Bucket 8', Description=NULL, Help=NULL WHERE AD_Element_ID=202230 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 8', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202230) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 8', Name='Amount Bucket 8' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202230) +; + +-- Feb 28, 2013 5:33:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 9', PrintName='Amount Bucket 9',Updated=TO_TIMESTAMP('2013-02-28 17:33:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202231 +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202231 +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket09', Name='Amount Bucket 9', Description=NULL, Help=NULL WHERE AD_Element_ID=202231 +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket09', Name='Amount Bucket 9', Description=NULL, Help=NULL, AD_Element_ID=202231 WHERE UPPER(ColumnName)='AMTBUCKET09' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket09', Name='Amount Bucket 9', Description=NULL, Help=NULL WHERE AD_Element_ID=202231 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket09', Name='Amount Bucket 9', Description=NULL, Help=NULL WHERE AD_Element_ID=202231 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 9', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202231) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 9', Name='Amount Bucket 9' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202231) +; + +-- Feb 28, 2013 5:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 10', PrintName='Amount Bucket 10',Updated=TO_TIMESTAMP('2013-02-28 17:33:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202232 +; + +-- Feb 28, 2013 5:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202232 +; + +-- Feb 28, 2013 5:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket10', Name='Amount Bucket 10', Description=NULL, Help=NULL WHERE AD_Element_ID=202232 +; + +-- Feb 28, 2013 5:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket10', Name='Amount Bucket 10', Description=NULL, Help=NULL, AD_Element_ID=202232 WHERE UPPER(ColumnName)='AMTBUCKET10' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket10', Name='Amount Bucket 10', Description=NULL, Help=NULL WHERE AD_Element_ID=202232 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket10', Name='Amount Bucket 10', Description=NULL, Help=NULL WHERE AD_Element_ID=202232 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 10', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202232) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 10', Name='Amount Bucket 10' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202232) +; + +-- Feb 28, 2013 5:34:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 11', PrintName='Amount Bucket 11',Updated=TO_TIMESTAMP('2013-02-28 17:34:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202233 +; + +-- Feb 28, 2013 5:34:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202233 +; + +-- Feb 28, 2013 5:34:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket11', Name='Amount Bucket 11', Description=NULL, Help=NULL WHERE AD_Element_ID=202233 +; + +-- Feb 28, 2013 5:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket11', Name='Amount Bucket 11', Description=NULL, Help=NULL, AD_Element_ID=202233 WHERE UPPER(ColumnName)='AMTBUCKET11' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket11', Name='Amount Bucket 11', Description=NULL, Help=NULL WHERE AD_Element_ID=202233 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket11', Name='Amount Bucket 11', Description=NULL, Help=NULL WHERE AD_Element_ID=202233 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 11', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202233) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 11', Name='Amount Bucket 11' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202233) +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 12', PrintName='Amount Bucket 12',Updated=TO_TIMESTAMP('2013-02-28 17:34:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202234 +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202234 +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket12', Name='Amount Bucket 12', Description=NULL, Help=NULL WHERE AD_Element_ID=202234 +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket12', Name='Amount Bucket 12', Description=NULL, Help=NULL, AD_Element_ID=202234 WHERE UPPER(ColumnName)='AMTBUCKET12' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket12', Name='Amount Bucket 12', Description=NULL, Help=NULL WHERE AD_Element_ID=202234 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket12', Name='Amount Bucket 12', Description=NULL, Help=NULL WHERE AD_Element_ID=202234 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 12', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202234) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 12', Name='Amount Bucket 12' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202234) +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 13', PrintName='Amount Bucket 13',Updated=TO_TIMESTAMP('2013-02-28 17:34:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202235 +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202235 +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket13', Name='Amount Bucket 13', Description=NULL, Help=NULL WHERE AD_Element_ID=202235 +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket13', Name='Amount Bucket 13', Description=NULL, Help=NULL, AD_Element_ID=202235 WHERE UPPER(ColumnName)='AMTBUCKET13' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket13', Name='Amount Bucket 13', Description=NULL, Help=NULL WHERE AD_Element_ID=202235 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket13', Name='Amount Bucket 13', Description=NULL, Help=NULL WHERE AD_Element_ID=202235 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 13', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202235) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 13', Name='Amount Bucket 13' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202235) +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 14', PrintName='Amount Bucket 14',Updated=TO_TIMESTAMP('2013-02-28 17:34:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202236 +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202236 +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket14', Name='Amount Bucket 14', Description=NULL, Help=NULL WHERE AD_Element_ID=202236 +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket14', Name='Amount Bucket 14', Description=NULL, Help=NULL, AD_Element_ID=202236 WHERE UPPER(ColumnName)='AMTBUCKET14' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket14', Name='Amount Bucket 14', Description=NULL, Help=NULL WHERE AD_Element_ID=202236 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket14', Name='Amount Bucket 14', Description=NULL, Help=NULL WHERE AD_Element_ID=202236 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 14', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202236) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 14', Name='Amount Bucket 14' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202236) +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 15', PrintName='Amount Bucket 15',Updated=TO_TIMESTAMP('2013-02-28 17:34:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202237 +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202237 +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket15', Name='Amount Bucket 15', Description=NULL, Help=NULL WHERE AD_Element_ID=202237 +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket15', Name='Amount Bucket 15', Description=NULL, Help=NULL, AD_Element_ID=202237 WHERE UPPER(ColumnName)='AMTBUCKET15' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket15', Name='Amount Bucket 15', Description=NULL, Help=NULL WHERE AD_Element_ID=202237 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket15', Name='Amount Bucket 15', Description=NULL, Help=NULL WHERE AD_Element_ID=202237 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 15', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202237) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 15', Name='Amount Bucket 15' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202237) +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Amount Bucket 16', PrintName='Amount Bucket 16',Updated=TO_TIMESTAMP('2013-02-28 17:34:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202238 +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202238 +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtBucket16', Name='Amount Bucket 16', Description=NULL, Help=NULL WHERE AD_Element_ID=202238 +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket16', Name='Amount Bucket 16', Description=NULL, Help=NULL, AD_Element_ID=202238 WHERE UPPER(ColumnName)='AMTBUCKET16' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtBucket16', Name='Amount Bucket 16', Description=NULL, Help=NULL WHERE AD_Element_ID=202238 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtBucket16', Name='Amount Bucket 16', Description=NULL, Help=NULL WHERE AD_Element_ID=202238 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Amount Bucket 16', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202238) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 5:34:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Amount Bucket 16', Name='Amount Bucket 16' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202238) +; + +-- Feb 28, 2013 5:36:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208641,'D','N','N','N',0,'N',7,'N',15,'N',202239,'N','Y','5703898c-21ff-4a02-a6b3-9481bd4e76d3','Y','Cut_Date','Cut Date','Y',100,TO_TIMESTAMP('2013-02-28 17:36:26','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:36:26','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:36:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208641 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:45:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208642,'D','N','N','N',0,'N',14,'N',11,'N',202240,'N','Y','e5f6d496-ecba-4c49-a877-358a30bc700d','Y','Cut_Year','Cut Year','Y',100,TO_TIMESTAMP('2013-02-28 17:45:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:45:02','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:45:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208642 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:45:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208643,'D','Y','N','Y',0,'N',120,'N',10,'N',469,'N','Y','9843aded-5975-4bac-b207-deefd5a9494f','Y','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.','Name','Y',100,TO_TIMESTAMP('2013-02-28 17:45:52','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:45:52','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:45:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208643 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:46:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208644,'D','N','N','N',0,'N',20,'N',10,'N',590,'N','Y','3fbf47a2-2eea-4a8d-bb15-1f78c2d44d20','Y','TaxID','Tax Identification','The Tax ID field identifies the legal Identification number of this Entity.','Tax ID','Y',100,TO_TIMESTAMP('2013-02-28 17:46:31','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:46:31','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:46:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208644 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:47:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200067,208645,'D','Y','N','N',0,'N',40,'N',10,'N',620,'N','Y','cc4527d4-aef7-49b4-9aea-8aa21174841e','Y','Value','Search key for the record in the format required - must be unique','A search key allows you a fast method of finding a particular record. +If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Search Key','Y',100,TO_TIMESTAMP('2013-02-28 17:47:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:47:17','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 5:47:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208645 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:47:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +CREATE TABLE T_1099Extract (AD_Client_ID NUMERIC(10) NOT NULL, AD_Org_ID NUMERIC(10) DEFAULT NULL , AD_PInstance_ID NUMERIC(10) NOT NULL, AmtBucket01 NUMERIC DEFAULT NULL , AmtBucket02 NUMERIC DEFAULT NULL , AmtBucket03 NUMERIC DEFAULT NULL , AmtBucket04 NUMERIC DEFAULT NULL , AmtBucket05 NUMERIC DEFAULT NULL , AmtBucket06 NUMERIC DEFAULT NULL , AmtBucket07 NUMERIC DEFAULT NULL , AmtBucket08 NUMERIC DEFAULT NULL , AmtBucket09 NUMERIC DEFAULT NULL , AmtBucket10 NUMERIC DEFAULT NULL , AmtBucket11 NUMERIC DEFAULT NULL , AmtBucket12 NUMERIC DEFAULT NULL , AmtBucket13 NUMERIC DEFAULT NULL , AmtBucket14 NUMERIC DEFAULT NULL , AmtBucket15 NUMERIC DEFAULT NULL , AmtBucket16 NUMERIC DEFAULT NULL , C_BPartner_ID NUMERIC(10) NOT NULL, C_Location_ID NUMERIC(10) DEFAULT NULL , Created TIMESTAMP NOT NULL, CreatedBy NUMERIC(10) NOT NULL, Cut_Date TIMESTAMP DEFAULT NULL , Cut_Year NUMERIC(10) DEFAULT NULL , IsActive CHAR(1) CHECK (IsActive IN ('Y','N')) NOT NULL, Name VARCHAR(120) NOT NULL, T_1099Extract_UU VARCHAR(36) DEFAULT NULL , TaxID VARCHAR(20) DEFAULT NULL , Updated TIMESTAMP NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, Value VARCHAR(40) NOT NULL) +; + +-- Feb 28, 2013 5:49:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','3',0,200068,'N','Y','N','D','L','f64362a8-a693-4af3-946f-84b912d5b6eb','Y','N','RV_T_1099Extract','1099 Extract',0,'Y',0,TO_TIMESTAMP('2013-02-28 17:49:39','YYYY-MM-DD HH24:MI:SS'),100,100,TO_TIMESTAMP('2013-02-28 17:49:39','YYYY-MM-DD HH24:MI:SS')) +; + +-- Feb 28, 2013 5:49:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200068 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Feb 28, 2013 5:49:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200063,'1651c6a3-3e37-4d6d-b82b-d51bc385ec0f','Table RV_T_1099Extract','RV_T_1099Extract',1,0,0,TO_TIMESTAMP('2013-02-28 17:49:40','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-02-28 17:49:40','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +CREATE OR REPLACE VIEW RV_T_1099Extract AS + SELECT t.ad_pinstance_id, t.ad_client_id, t.ad_org_id, t.isactive, t.created, t.createdby, t.updated, t.updatedby, + t.c_bpartner_id, t.value, t.name, t.taxid, l.address1 || ' ' || l.address2 || ' ' || l.address3 || ' ' || l.address4 AS address, + l.address1, l.address2, l.address3, l.address4, l.city || ', ' || r.name || ' ' || l.postal AS citystatezip, + l.city, r.name AS region, l.postal AS zip, ctry.name AS country, t.cut_year, t.cut_date, + COALESCE(t.amtbucket01, 0) AS amtbucket01, COALESCE(t.amtbucket02, 0) AS amtbucket02, COALESCE(t.amtbucket03, 0) AS amtbucket03, + COALESCE(t.amtbucket04, 0) AS amtbucket04, COALESCE(t.amtbucket05, 0) AS amtbucket05, COALESCE(t.amtbucket06, 0) AS amtbucket06, + COALESCE(t.amtbucket07, 0) AS amtbucket07, COALESCE(t.amtbucket08, 0) AS amtbucket08, COALESCE(t.amtbucket09, 0) AS amtbucket09, + COALESCE(t.amtbucket10, 0) AS amtbucket10, COALESCE(t.amtbucket11, 0) AS amtbucket11, COALESCE(t.amtbucket12, 0) AS amtbucket12, + COALESCE(t.amtbucket13, 0) AS amtbucket13, COALESCE(t.amtbucket14, 0) AS amtbucket14, COALESCE(t.amtbucket15, 0) AS amtbucket15, + COALESCE(t.amtbucket16, 0) AS amtbucket16 + FROM t_1099extract t + LEFT JOIN c_location l ON t.c_location_id = l.c_location_id + LEFT JOIN c_region r ON r.c_region_id = l.c_region_id + LEFT JOIN c_country ctry ON ctry.c_country_id = l.c_country_id + WHERE t.ad_pinstance_id = (SELECT max(t_1099extract.ad_pinstance_id) AS max + FROM t_1099extract);-- Feb 28, 2013 5:57:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208646,'D','N','N','N','N',10,'N',19,'N',114,'23bfec04-9c67-4d6e-8483-dc3ae4a8f522','N','AD_PInstance_ID','Instance of the process','Process Instance',100,TO_TIMESTAMP('2013-02-28 17:57:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:19','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208646 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208647,'D','N','N','N','N',10,'N',19,'N',102,'353b0741-2e6f-4736-8bac-1d426d42c489','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client',100,TO_TIMESTAMP('2013-02-28 17:57:20','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:20','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208647 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208648,'D','N','N','N','N',10,'N',19,'N',113,'1d14c9f0-0aa9-4f49-af83-738df5f021fc','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization',100,TO_TIMESTAMP('2013-02-28 17:57:21','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:21','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208648 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208649,'D','N','N','N','N',1,'N',20,'N',348,'08068e02-c911-4e57-8a2a-026d6e70b911','N','IsActive','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.','Active',100,TO_TIMESTAMP('2013-02-28 17:57:22','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:22','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208649 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208650,'D','N','N','N','N',29,'N',16,'N',245,'21586218-b6b8-4322-bc41-c86b21dc0e15','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created',100,TO_TIMESTAMP('2013-02-28 17:57:23','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:23','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208650 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208651,'D',110,'N','N','N','N',10,'N',18,'N',246,'64dfc749-3d9c-49aa-8e25-c0422ef9aff6','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By',100,TO_TIMESTAMP('2013-02-28 17:57:24','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:24','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208651 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208652,'D','N','N','N','N',29,'N',16,'N',607,'eea4e473-7883-493b-a5a2-671265fc48a6','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated',100,TO_TIMESTAMP('2013-02-28 17:57:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:25','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208652 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208653,'D',110,'N','N','N','N',10,'N',18,'N',608,'67381835-8fac-428f-88a1-0c321f4578b5','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By',100,TO_TIMESTAMP('2013-02-28 17:57:26','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:26','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208653 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208654,'D','N','N','N','N',10,'N',19,'N',187,'1ddeb813-0867-4a87-842f-6105d49d3ebd','N','C_BPartner_ID','Identifies a Business Partner','A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Business Partner ',100,TO_TIMESTAMP('2013-02-28 17:57:30','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:30','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208654 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208655,'D','N','N','N','N',40,'Y',10,'N',620,'ba9c71fb-cab5-4641-94dd-bfbb9ac03b01','N','Value','Search key for the record in the format required - must be unique','A search key allows you a fast method of finding a particular record. +If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Search Key',100,TO_TIMESTAMP('2013-02-28 17:57:31','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:31','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208655 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208656,'D','N','N','Y',1,'N',120,'Y',10,'N',469,'ed28eef9-45fe-4f7c-8f64-87f547f0909f','N','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.','Name',100,TO_TIMESTAMP('2013-02-28 17:57:32','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:32','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208656 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208657,'D','N','N','N','N',20,'N',10,'N',590,'87b47a9e-8327-43d9-8c3f-cca5341c5963','N','TaxID','Tax Identification','The Tax ID field identifies the legal Identification number of this Entity.','Tax ID',100,TO_TIMESTAMP('2013-02-28 17:57:33','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:33','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208657 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('address',202241,'D','address','address','41ec56bc-68f2-461a-b723-d2889e0a982d',0,TO_TIMESTAMP('2013-02-28 17:57:36','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:57:36','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:57:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202241 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:57:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208658,'D','N','N','N','N',2147483647,'N',14,'N',202241,'83c52ff6-cb50-4bf5-8a9c-bc1e303b8e0c','N','address','address',100,TO_TIMESTAMP('2013-02-28 17:57:36','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:36','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208658 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208659,'D','N','N','N','N',60,'N',10,'N',156,'47a37178-489a-416f-aef3-c4659ab83a8f','N','Address1','Address line 1 for this location','The Address 1 identifies the address for an entity''s location','Address 1',100,TO_TIMESTAMP('2013-02-28 17:57:38','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:38','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208659 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208660,'D','N','N','N','N',60,'N',10,'N',157,'ad129f09-a981-4a90-919b-7e5ec5048557','N','Address2','Address line 2 for this location','The Address 2 provides additional address information for an entity. It can be used for building location, apartment number or similar information.','Address 2',100,TO_TIMESTAMP('2013-02-28 17:57:39','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:39','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208660 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208661,'D','N','N','N','N',60,'N',10,'N',2555,'50653395-95d9-4b43-bdef-f6b00ba0f29c','N','Address3','Address Line 3 for the location','The Address 2 provides additional address information for an entity. It can be used for building location, apartment number or similar information.','Address 3',100,TO_TIMESTAMP('2013-02-28 17:57:40','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:40','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208661 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208662,'D','N','N','N','N',60,'N',10,'N',2556,'eead86f4-d24d-4472-a00d-2074794694da','N','Address4','Address Line 4 for the location','The Address 4 provides additional address information for an entity. It can be used for building location, apartment number or similar information.','Address 4',100,TO_TIMESTAMP('2013-02-28 17:57:41','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:41','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208662 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('citystatezip',202242,'D','citystatezip','citystatezip','85a81b02-cd62-4b57-88af-55912d0139cb',0,TO_TIMESTAMP('2013-02-28 17:57:42','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:57:42','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:57:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202242 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:57:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208663,'D','N','N','N','N',2147483647,'N',14,'N',202242,'3610fc95-5a06-4bb6-ace9-a900bff0e6e8','N','citystatezip','citystatezip',100,TO_TIMESTAMP('2013-02-28 17:57:42','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:42','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208663 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208664,'D','N','N','N','N',60,'N',10,'N',225,'a41950b2-29ee-4050-9656-5ea65928afdb','N','City','Identifies a City','The City identifies a unique City for this Country or Region.','City',100,TO_TIMESTAMP('2013-02-28 17:57:44','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:44','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208664 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('region',202243,'D','region','region','9f645bd8-0d83-43c3-b593-b5d3f034980f',0,TO_TIMESTAMP('2013-02-28 17:57:45','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:57:45','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:57:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202243 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:57:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208665,'D','N','N','N','N',60,'N',10,'N',202243,'c16bb46b-6163-4d3c-b0ac-4c5dba692944','N','region','region',100,TO_TIMESTAMP('2013-02-28 17:57:45','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:45','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208665 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('zip',202244,'D','zip','zip','333e0193-a208-441a-b1d3-93caac880d77',0,TO_TIMESTAMP('2013-02-28 17:57:47','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:57:47','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:57:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202244 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:57:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208666,'D','N','N','N','N',10,'N',10,'N',202244,'876f6a8e-e3c2-4f31-9536-1b9205e530b5','N','zip','zip',100,TO_TIMESTAMP('2013-02-28 17:57:47','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:47','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208666 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('country',202245,'D','country','country','7b0ef0f0-3f19-472e-844a-b8ef91cc5781',0,TO_TIMESTAMP('2013-02-28 17:57:49','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 17:57:49','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 5:57:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202245 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 5:57:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208667,'D','N','N','N','N',60,'N',10,'N',202245,'59eddec8-7175-46cb-8ae3-07c7279a818b','N','country','country',100,TO_TIMESTAMP('2013-02-28 17:57:49','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:49','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208667 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208668,'D','N','N','N','N',10,'N',11,'N',202240,'9ab9bc7f-ee65-46f0-92a9-37b62aba57e4','N','Cut_Year','Cut Year',100,TO_TIMESTAMP('2013-02-28 17:57:51','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:51','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208668 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208669,'D','N','N','N','N',29,'N',16,'N',202239,'51f92fcf-be09-4a18-9ec8-aa052810f3ed','N','Cut_Date','Cut Date',100,TO_TIMESTAMP('2013-02-28 17:57:52','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:52','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208669 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208670,'D','N','N','N','N',131089,'N',12,'N',202223,'a12db323-a2f7-442f-9210-18b164fe04f1','N','AmtBucket01','Amount Bucket 1',100,TO_TIMESTAMP('2013-02-28 17:57:54','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:54','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208670 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:57:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208671,'D','N','N','N','N',131089,'N',12,'N',202224,'ea54f62d-0e68-4477-bffa-524985cc9c39','N','AmtBucket02','Amount Bucket 2',100,TO_TIMESTAMP('2013-02-28 17:57:55','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:55','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:57:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208671 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208672,'D','N','N','N','N',131089,'N',12,'N',202225,'1818a303-bd9a-4359-81d5-f40c41f47ca3','N','AmtBucket03','Amount Bucket 3',100,TO_TIMESTAMP('2013-02-28 17:57:56','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:57:56','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208672 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208673,'D','N','N','N','N',131089,'N',12,'N',202226,'cdaf4f00-5fef-4b12-8f9e-2e7770ef8d3d','N','AmtBucket04','Amount Bucket 4',100,TO_TIMESTAMP('2013-02-28 17:58:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:58:00','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208673 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208674,'D','N','N','N','N',131089,'N',12,'N',202227,'bb7872c2-f55e-4609-919e-07152dec0ce0','N','AmtBucket05','Amount Bucket 5',100,TO_TIMESTAMP('2013-02-28 17:58:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:58:01','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208674 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208675,'D','N','N','N','N',131089,'N',12,'N',202228,'ef958325-4095-4edc-bcae-d48053ebb44e','N','AmtBucket06','Amount Bucket 6',100,TO_TIMESTAMP('2013-02-28 17:58:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:58:02','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208675 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208676,'D','N','N','N','N',131089,'N',12,'N',202229,'3aefab9c-367f-4416-b4f3-dffca67a6da5','N','AmtBucket07','Amount Bucket 7',100,TO_TIMESTAMP('2013-02-28 17:58:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:58:03','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208676 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208677,'D','N','N','N','N',131089,'N',12,'N',202230,'bf07e553-e617-4c10-979e-8ed7848a7052','N','AmtBucket08','Amount Bucket 8',100,TO_TIMESTAMP('2013-02-28 17:58:04','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:58:04','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208677 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208678,'D','N','N','N','N',131089,'N',12,'N',202231,'042bad02-734c-47df-87a6-ee3a6c3d74d8','N','AmtBucket09','Amount Bucket 9',100,TO_TIMESTAMP('2013-02-28 17:58:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:58:05','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208678 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208679,'D','N','N','N','N',131089,'N',12,'N',202232,'1d799893-10f0-490c-a9fd-02ec267ed72b','N','AmtBucket10','Amount Bucket 10',100,TO_TIMESTAMP('2013-02-28 17:58:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:58:06','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208679 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208680,'D','N','N','N','N',131089,'N',12,'N',202233,'551adaff-a946-4059-b6ae-2bc6f810c4ab','N','AmtBucket11','Amount Bucket 11',100,TO_TIMESTAMP('2013-02-28 17:58:07','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:58:07','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208680 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208681,'D','N','N','N','N',131089,'N',12,'N',202234,'beeeff17-10e9-4ccb-8139-cc750880796b','N','AmtBucket12','Amount Bucket 12',100,TO_TIMESTAMP('2013-02-28 17:58:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:58:08','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208681 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208682,'D','N','N','N','N',131089,'N',12,'N',202235,'7fd66d8d-6dd8-477d-a9fd-d20cd508d317','N','AmtBucket13','Amount Bucket 13',100,TO_TIMESTAMP('2013-02-28 17:58:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:58:09','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208682 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208683,'D','N','N','N','N',131089,'N',12,'N',202236,'29010c8f-28a7-4471-9462-3a191acfe358','N','AmtBucket14','Amount Bucket 14',100,TO_TIMESTAMP('2013-02-28 17:58:10','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:58:10','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208683 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208684,'D','N','N','N','N',131089,'N',12,'N',202237,'7b7a669f-061c-4e2d-82ce-a97937409cf9','N','AmtBucket15','Amount Bucket 15',100,TO_TIMESTAMP('2013-02-28 17:58:11','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:58:11','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208684 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 5:58:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200068,208685,'D','N','N','N','N',131089,'N',12,'N',202238,'6263eab2-580b-47cd-ab07-1cf2c72b996b','N','AmtBucket16','Amount Bucket 16',100,TO_TIMESTAMP('2013-02-28 17:58:12','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 17:58:12','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Feb 28, 2013 5:58:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208685 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:00:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Address', Name='Address', PrintName='Address',Updated=TO_TIMESTAMP('2013-02-28 18:00:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202241 +; + +-- Feb 28, 2013 6:00:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202241 +; + +-- Feb 28, 2013 6:00:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Address', Name='Address', Description=NULL, Help=NULL WHERE AD_Element_ID=202241 +; + +-- Feb 28, 2013 6:00:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Address', Name='Address', Description=NULL, Help=NULL, AD_Element_ID=202241 WHERE UPPER(ColumnName)='ADDRESS' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 6:00:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Address', Name='Address', Description=NULL, Help=NULL WHERE AD_Element_ID=202241 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Address', Name='Address', Description=NULL, Help=NULL WHERE AD_Element_ID=202241 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Address', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202241) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Address', Name='Address' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202241) +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='CityStateZip', Name='City State Zip', PrintName='City State Zip',Updated=TO_TIMESTAMP('2013-02-28 18:00:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202242 +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202242 +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='CityStateZip', Name='City State Zip', Description=NULL, Help=NULL WHERE AD_Element_ID=202242 +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='CityStateZip', Name='City State Zip', Description=NULL, Help=NULL, AD_Element_ID=202242 WHERE UPPER(ColumnName)='CITYSTATEZIP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='CityStateZip', Name='City State Zip', Description=NULL, Help=NULL WHERE AD_Element_ID=202242 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='CityStateZip', Name='City State Zip', Description=NULL, Help=NULL WHERE AD_Element_ID=202242 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='City State Zip', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202242) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='City State Zip', Name='City State Zip' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202242) +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Country', Name='Country', PrintName='Country',Updated=TO_TIMESTAMP('2013-02-28 18:00:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202245 +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202245 +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Country', Name='Country', Description=NULL, Help=NULL WHERE AD_Element_ID=202245 +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Country', Name='Country', Description=NULL, Help=NULL, AD_Element_ID=202245 WHERE UPPER(ColumnName)='COUNTRY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Country', Name='Country', Description=NULL, Help=NULL WHERE AD_Element_ID=202245 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Country', Name='Country', Description=NULL, Help=NULL WHERE AD_Element_ID=202245 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Country', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202245) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Country', Name='Country' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202245) +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Zip', Name='Zip', PrintName='Zip',Updated=TO_TIMESTAMP('2013-02-28 18:00:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202244 +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202244 +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Zip', Name='Zip', Description=NULL, Help=NULL WHERE AD_Element_ID=202244 +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Zip', Name='Zip', Description=NULL, Help=NULL, AD_Element_ID=202244 WHERE UPPER(ColumnName)='ZIP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Zip', Name='Zip', Description=NULL, Help=NULL WHERE AD_Element_ID=202244 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Zip', Name='Zip', Description=NULL, Help=NULL WHERE AD_Element_ID=202244 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Zip', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202244) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 6:00:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Zip', Name='Zip' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202244) +; + +-- Feb 28, 2013 6:04:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_ReportView (AD_ReportView_UU,AD_Table_ID,AD_ReportView_ID,EntityType,Name,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Org_ID,IsActive) VALUES ('db24ebe0-c6bf-4ab7-b356-3a63209971f6',200068,200000,'D','RV_T_1099Extract',0,TO_TIMESTAMP('2013-02-28 18:04:42','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-02-28 18:04:42','YYYY-MM-DD HH24:MI:SS'),100,0,'Y') +; + +-- Feb 28, 2013 6:06:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process (CopyFromProcess,AD_Process_ID,IsDirectPrint,AD_ReportView_ID,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Classname,Name,Value,AD_Org_ID,AD_Client_ID,Created,Updated,UpdatedBy,IsActive,CreatedBy) VALUES ('N',200034,'N',200000,'Y','5577f73c-ca99-43b6-8ad6-272739305b60','3','N','N',0,0,'Y','D','org.adempiere.process.ASU_Fill1099Extract','1099 Extract','1099 Extract',0,0,TO_TIMESTAMP('2013-02-28 18:06:03','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 18:06:03','YYYY-MM-DD HH24:MI:SS'),100,'Y',100) +; + +-- Feb 28, 2013 6:06:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200034 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) +; + +-- Feb 28, 2013 6:06:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,FieldLength,IsCentrallyMaintained,SeqNo,DefaultValue,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',202239,200051,'a0516401-a005-4aa5-902d-31b9eac32768',200034,15,'N','D','Cut Date','Cut_Date',0,'Y',10,'@#Date@','Y',100,TO_TIMESTAMP('2013-02-28 18:06:40','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-02-28 18:06:40','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Feb 28, 2013 6:06:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200051 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Feb 28, 2013 6:09:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','3',0,200069,'N','N','N','D','L','c30ba29f-a4ad-4457-b4a9-4818d7502599','Y','Y','ASU_1099Box','1099 Box',0,'Y',0,TO_TIMESTAMP('2013-02-28 18:09:10','YYYY-MM-DD HH24:MI:SS'),100,100,TO_TIMESTAMP('2013-02-28 18:09:10','YYYY-MM-DD HH24:MI:SS')) +; + +-- Feb 28, 2013 6:09:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200069 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Feb 28, 2013 6:09:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200064,'e073a95b-670f-4ead-91a5-fb62670554ff','Table ASU_1099Box','ASU_1099Box',1,0,0,TO_TIMESTAMP('2013-02-28 18:09:11','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-02-28 18:09:11','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +-- Feb 28, 2013 6:13:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208686,'D','Y','N','N','N',22,'N',19,129,'N',102,'N','Y','c0b60533-1e8d-44d4-9e92-a7aa35c9fdfc','N','AD_Client_ID','Client/Tenant for this installation.','@#AD_Client_ID@','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',100,TO_TIMESTAMP('2013-02-28 18:13:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:13:17','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208686 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208687,'D','Y','N','N','N',22,'N',19,104,'N',113,'N','Y','5ff73687-c3b7-45ef-899d-fc8e9dba16b7','N','AD_Org_ID','Organizational entity within client','@#AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',100,TO_TIMESTAMP('2013-02-28 18:13:18','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:13:18','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208687 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ASU_1099Box_ID',202246,'D','1099 Box','1099 Box','86a1d685-db8d-408d-9425-9a3b8705c7a4',0,TO_TIMESTAMP('2013-02-28 18:13:19','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 18:13:19','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 6:13:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202246 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 6:13:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208688,'D','Y','N','N','N',22,'N',13,'Y',202246,'N','Y','aed0137b-141a-4fed-b7fa-bdce7c995cb9','N','ASU_1099Box_ID','1099 Box','N',100,TO_TIMESTAMP('2013-02-28 18:13:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:13:19','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208688 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ASU_1099Box_UU',202247,'D','ASU_1099Box_UU','ASU_1099Box_UU','f718f03b-e96c-488e-b344-2245bcce3c27',0,TO_TIMESTAMP('2013-02-28 18:13:21','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 18:13:21','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 6:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202247 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 6:13:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1.00,'N',200069,208689,'D','N','N','N','N',36,'N',10,'N',202247,'N','Y','b510ba17-72d1-4c0e-b5e4-dd00bd39908f','Y','ASU_1099Box_UU','ASU_1099Box_UU','N',100,TO_TIMESTAMP('2013-02-28 18:13:21','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:13:21','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208689 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208690,'D','Y','N','N','N',7,'N',16,'N',245,'N','Y','1d42f76a-9ed8-4e22-b95d-5fa550b0d532','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',100,TO_TIMESTAMP('2013-02-28 18:13:29','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:13:29','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208690 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208691,'D',110,'Y','N','N','N',22,'N',18,'N',246,'N','Y','ad78790b-2e5d-4345-b4c8-78c6e0a01e7c','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',100,TO_TIMESTAMP('2013-02-28 18:13:30','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:13:30','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208691 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208692,'D','N','N','N','N',255,'Y',10,'N',275,'N','Y','a35477e7-6966-47d9-b85b-03b78c4956a9','Y','Description','Optional short description of the record','A description is limited to 255 characters.','Description','Y',100,TO_TIMESTAMP('2013-02-28 18:13:31','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:13:31','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208692 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208693,'D','Y','N','N','N',1,'N',20,'N',348,'N','Y','8b3bc284-c463-473f-8887-3fc45c9c215c','Y','IsActive','The record is active in the system','Y','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.','Active','N',100,TO_TIMESTAMP('2013-02-28 18:13:32','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:13:32','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208693 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208694,'D','Y','N','Y',1,'N',60,'Y',10,'N',469,'N','Y','68542e32-e109-4344-a99a-b0e3f39b8d7b','Y','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.','Name','Y',100,TO_TIMESTAMP('2013-02-28 18:13:33','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:13:33','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208694 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208695,'D','Y','N','N','N',7,'N',16,'N',607,'N','Y','8fc1ecd1-0e0f-4fa8-8c72-0c1f9e54390d','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',100,TO_TIMESTAMP('2013-02-28 18:13:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:13:34','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208695 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:13:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200069,208696,'D',110,'Y','N','N','N',22,'N',18,'N',608,'N','Y','a43ce763-9a10-4808-9f46-5b7408bbb722','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',100,TO_TIMESTAMP('2013-02-28 18:13:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:13:34','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Feb 28, 2013 6:13:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208696 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:16:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('Bucket',202248,'D','Bucket','Bucket','8856f05a-49f8-4c59-959f-c3640be7e75b',0,TO_TIMESTAMP('2013-02-28 18:16:33','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 18:16:33','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 6:16:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202248 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 6:17:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,ValueMin,IsSyncDatabase,AD_Table_ID,AD_Column_ID,ValueMax,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'1','N',200069,208697,'16','D','Y','N','N',0,'N',14,'N',11,'N',202248,'N','Y','907d1f5b-518d-4c30-a33f-346dc6057ee5','Y','Bucket','Bucket','Y',100,TO_TIMESTAMP('2013-02-28 18:17:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:17:05','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:17:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208697 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:17:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200069,208698,'D','N','N','N',0,'N',2000,'N',14,'N',326,'N','Y','e1d6bec4-9866-42ab-9810-465cda40e860','Y','Help','Comment or Hint','The Help field contains a hint, comment or help about the use of this item.','Comment/Help','Y',100,TO_TIMESTAMP('2013-02-28 18:17:49','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:17:49','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:17:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208698 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:18:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200069,208699,'D','Y','N','N',0,'N',40,'N',10,'N',620,'N','Y','7bb33046-902f-4a86-bc5c-2b310833b4e5','Y','Value','Search key for the record in the format required - must be unique','A search key allows you a fast method of finding a particular record. +If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Search Key','Y',100,TO_TIMESTAMP('2013-02-28 18:18:29','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:18:29','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:18:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208699 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:18:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +CREATE TABLE ASU_1099Box (AD_Client_ID NUMERIC(10) NOT NULL, AD_Org_ID NUMERIC(10) NOT NULL, ASU_1099Box_ID NUMERIC(10) NOT NULL, ASU_1099Box_UU VARCHAR(36) DEFAULT NULL , Bucket NUMERIC(10) NOT NULL, Created TIMESTAMP NOT NULL, CreatedBy NUMERIC(10) NOT NULL, Description VARCHAR(255) DEFAULT NULL , Help VARCHAR(2000) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, Name VARCHAR(60) NOT NULL, Updated TIMESTAMP NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, Value VARCHAR(40) NOT NULL, CONSTRAINT ASU_1099Box_Key PRIMARY KEY (ASU_1099Box_ID)) +; + +-- Feb 28, 2013 6:21:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('Default1099Box_ID',202249,'D','Default 1099 Box','Default 1099 Box','6c022404-8216-4312-9629-44c2d80bbffe',0,TO_TIMESTAMP('2013-02-28 18:21:03','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 18:21:03','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 6:21:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202249 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 6:21:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Reference (AD_Reference_ID,Name,EntityType,AD_Reference_UU,IsOrderByValue,ValidationType,AD_Client_ID,AD_Org_ID,Updated,CreatedBy,IsActive,Created,UpdatedBy) VALUES (200065,'ASU_1099Box','D','d2516191-26bf-4536-9a32-0a63bd08e44a','N','T',0,0,TO_TIMESTAMP('2013-02-28 18:21:31','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2013-02-28 18:21:31','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Feb 28, 2013 6:21:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Reference_Trl_UU ) SELECT l.AD_Language,t.AD_Reference_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=200065 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) +; + +-- Feb 28, 2013 6:21:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Ref_Table (IsValueDisplayed,AD_Reference_ID,AD_Key,AD_Display,EntityType,AD_Table_ID,AD_Ref_Table_UU,CreatedBy,Updated,Created,AD_Client_ID,UpdatedBy,AD_Org_ID,IsActive) VALUES ('Y',200065,208688,208694,'D',200069,'418e13b3-113c-4d10-bed1-6e1c24c91549',100,TO_TIMESTAMP('2013-02-28 18:21:56','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 18:21:56','YYYY-MM-DD HH24:MI:SS'),0,100,0,'Y') +; + +-- Feb 28, 2013 6:22:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',291,208700,'D',200065,'N','N','N',0,'N',10,'N',18,'N',202249,'N','Y','c33fe104-a5ab-4607-a552-775d3a8154a2','Y','Default1099Box_ID','Default 1099 Box','Y',100,TO_TIMESTAMP('2013-02-28 18:22:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:22:16','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:22:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208700 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:22:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +ALTER TABLE C_BPartner ADD COLUMN Default1099Box_ID NUMERIC(10) DEFAULT NULL +; + +-- Feb 28, 2013 6:22:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('Is1099Vendor',202250,'D','1099 Vendor','1099 Vendor','d47c3e7e-d9d8-42cb-bcd4-0cc6975830bc',0,TO_TIMESTAMP('2013-02-28 18:22:46','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 18:22:46','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 6:22:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202250 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 6:23:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',291,208701,'D','Y','N','N',0,'N',1,'N',20,'N',202250,'N','Y','b62b3292-3268-46bf-9dea-81150a9b285a','Y','Is1099Vendor','N','1099 Vendor','Y',100,TO_TIMESTAMP('2013-02-28 18:23:12','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:23:12','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:23:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208701 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:23:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +ALTER TABLE C_BPartner ADD COLUMN Is1099Vendor CHAR(1) DEFAULT 'N' CHECK (Is1099Vendor IN ('Y','N')) NOT NULL +; + +-- Feb 28, 2013 6:25:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',598,208702,'D',200065,'N','N','N',0,'N',10,'N',18,'N',202246,'N','Y','1fac63b9-5298-4138-bc56-ee4e1507b18d','Y','ASU_1099Box_ID','1099 Box','Y',100,TO_TIMESTAMP('2013-02-28 18:25:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:25:17','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:25:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208702 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:25:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +ALTER TABLE I_Invoice ADD COLUMN ASU_1099Box_ID NUMERIC(10) DEFAULT NULL +; + +-- Feb 28, 2013 6:25:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ASU_1099Box_Value',202251,'D','1099 Box Value','1099 Box Value','1ceb23a4-335a-42a8-86da-de7ee14a4abf',0,TO_TIMESTAMP('2013-02-28 18:25:43','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 18:25:43','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Feb 28, 2013 6:25:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202251 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Feb 28, 2013 6:26:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',598,208703,'D','N','N','N',0,'N',40,'N',10,'N',202251,'N','Y','b6a4c506-50ca-4df4-b6b6-9457a3417de1','Y','ASU_1099Box_Value','1099 Box Value','Y',100,TO_TIMESTAMP('2013-02-28 18:26:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:26:03','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:26:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208703 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:26:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +ALTER TABLE I_Invoice ADD COLUMN ASU_1099Box_Value VARCHAR(40) DEFAULT NULL +; + +-- Feb 28, 2013 6:27:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',333,208704,'D',200065,'N','N','N',0,'N',10,'N',18,'N',202246,'N','Y','c17e9812-f26a-4044-84a3-dd237429a1f0','Y','ASU_1099Box_ID','@SQL=SELECT Default1099Box_ID FROM C_BPartner WHERE C_BPartner_ID=@C_BPartner_ID@ AND Is1099Vendor=''Y'' AND IsVendor=''Y'' AND ''@IsSOTrx@''=''N''','1099 Box','Y',100,TO_TIMESTAMP('2013-02-28 18:27:13','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-02-28 18:27:13','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Feb 28, 2013 6:27:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208704 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Feb 28, 2013 6:27:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +ALTER TABLE C_InvoiceLine ADD COLUMN ASU_1099Box_ID NUMERIC(10) DEFAULT NULL +; + +-- Feb 28, 2013 6:28:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Window (Processing,WindowType,IsSOTrx,IsDefault,WinWidth,IsBetaFunctionality,WinHeight,EntityType,Name,AD_Window_ID,AD_Window_UU,Created,Updated,AD_Client_ID,AD_Org_ID,IsActive,UpdatedBy,CreatedBy) VALUES ('N','M','N','N',0,'N',0,'D','1099 Box',200036,'6bddc8cc-8d7c-44d9-8438-d03bcd6da13f',TO_TIMESTAMP('2013-02-28 18:28:51','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-02-28 18:28:51','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',100,100) +; + +-- Feb 28, 2013 6:28:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Window_Trl (AD_Language,AD_Window_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Window_Trl_UU ) SELECT l.AD_Language,t.AD_Window_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Window t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Window_ID=200036 AND NOT EXISTS (SELECT * FROM AD_Window_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Window_ID=t.AD_Window_ID) +; + +-- Feb 28, 2013 6:29:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Tab (ImportFields,Processing,IsSingleRow,AD_Window_ID,SeqNo,IsTranslationTab,IsSortTab,AD_Table_ID,HasTree,IsReadOnly,IsInfoTab,AD_Tab_UU,IsInsertRecord,IsAdvancedTab,TabLevel,EntityType,Name,AD_Tab_ID,AD_Client_ID,Updated,AD_Org_ID,Created,CreatedBy,UpdatedBy,IsActive) VALUES ('N','N','Y',200036,10,'N','N',200069,'N','N','N','98596e65-a82f-4649-b4f2-abced2c16f62','Y','N',0,'D','1099 Box',200078,0,TO_TIMESTAMP('2013-02-28 18:29:17','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-02-28 18:29:17','YYYY-MM-DD HH24:MI:SS'),100,100,'Y') +; + +-- Feb 28, 2013 6:29:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, Help,CommitWarning,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Tab_Trl_UU ) SELECT l.AD_Language,t.AD_Tab_ID, t.Help,t.CommitWarning,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=200078 AND NOT EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Tab_ID=t.AD_Tab_ID) +; + +-- Feb 28, 2013 6:29:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive,IsDisplayedGrid) VALUES ('N',200078,22,'N','N',208688,'Y',201839,'N','D','1099 Box','N','N','7b8ef0b8-3562-4551-a5cb-57d8c2bc72ef',100,0,TO_TIMESTAMP('2013-02-28 18:29:19','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:29:19','YYYY-MM-DD HH24:MI:SS'),'Y','N') +; + +-- Feb 28, 2013 6:29:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201839 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,1,'N','N',208693,'Y',201840,'N','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.','D','The record is active in the system','Active','N','Y','52f5d1ac-72ea-444a-ba9d-f21aa67dd4b8',100,0,TO_TIMESTAMP('2013-02-28 18:29:20','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:29:20','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201840 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,36,'N','N',208689,'Y',201841,'N','D','ASU_1099Box_UU','N','Y','2d0e5301-75a6-4b28-a464-8a2aa3a05ca0',100,0,TO_TIMESTAMP('2013-02-28 18:29:21','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:29:21','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201841 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,14,'N','N',208697,'Y',201842,'N','D','Bucket','N','Y','5fd618a5-bd1a-4ff7-ace4-5a193f10ae57',100,0,TO_TIMESTAMP('2013-02-28 18:29:22','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:29:22','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201842 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,22,'N','N',208686,'Y',201843,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','D','Client/Tenant for this installation.','Client','N','Y','bec16345-399b-4392-9601-5874eb925a6b',100,0,TO_TIMESTAMP('2013-02-28 18:29:23','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:29:23','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201843 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,2000,'N','N',208698,'Y',201844,'N','The Help field contains a hint, comment or help about the use of this item.','D','Comment or Hint','Comment/Help','N','Y','62fa961b-8253-43f4-a450-0cd1e29857a0',100,0,TO_TIMESTAMP('2013-02-28 18:29:24','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:29:24','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201844 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,255,'N','N',208692,'Y',201845,'N','A description is limited to 255 characters.','D','Optional short description of the record','Description','N','Y','b1c325f5-ad75-409b-8e75-146319fae207',100,0,TO_TIMESTAMP('2013-02-28 18:29:25','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:29:25','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201845 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,60,'N','N',208694,'Y',201846,'N','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.','D','Alphanumeric identifier of the entity','Name','N','Y','3c9754ad-b2ef-49ed-990a-b10b9628f815',100,0,TO_TIMESTAMP('2013-02-28 18:29:26','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:29:26','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201846 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,22,'N','N',208687,'Y',201847,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','D','Organizational entity within client','Organization','N','Y','af71820f-d152-4b0f-a489-59014634fa96',100,0,TO_TIMESTAMP('2013-02-28 18:29:27','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:29:27','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201847 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200078,40,'N','N',208699,'Y',201848,'N','A search key allows you a fast method of finding a particular record. +If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','D','Search key for the record in the format required - must be unique','Search Key','N','Y','d8109565-22fe-4726-ac18-fec6c0c66f7f',100,0,TO_TIMESTAMP('2013-02-28 18:29:28','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:29:28','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:29:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201848 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:29:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201841 +; + +-- Feb 28, 2013 6:29:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=201843 +; + +-- Feb 28, 2013 6:29:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=201847 +; + +-- Feb 28, 2013 6:29:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=201848 +; + +-- Feb 28, 2013 6:29:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=201846 +; + +-- Feb 28, 2013 6:29:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=201842 +; + +-- Feb 28, 2013 6:29:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=201845 +; + +-- Feb 28, 2013 6:29:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=201844 +; + +-- Feb 28, 2013 6:29:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=201840 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201841 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=201843 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=201847 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=201848 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=201846 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=201842 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=201845 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=201844 +; + +-- Feb 28, 2013 6:30:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=201840 +; + +-- Feb 28, 2013 6:30:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2013-02-28 18:30:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201847 +; + +-- Feb 28, 2013 6:30:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=22,Updated=TO_TIMESTAMP('2013-02-28 18:30:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201848 +; + +-- Feb 28, 2013 6:30:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:30:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201843 +; + +-- Feb 28, 2013 6:30:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:30:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201847 +; + +-- Feb 28, 2013 6:30:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:30:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201848 +; + +-- Feb 28, 2013 6:30:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:30:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201846 +; + +-- Feb 28, 2013 6:30:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:30:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201842 +; + +-- Feb 28, 2013 6:31:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:31:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201845 +; + +-- Feb 28, 2013 6:31:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:31:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201844 +; + +-- Feb 28, 2013 6:31:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201840 +; + +-- Feb 28, 2013 6:31:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET NumLines=3, ColumnSpan=5,Updated=TO_TIMESTAMP('2013-02-28 18:31:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201844 +; + +-- Feb 28, 2013 6:31:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=5,Updated=TO_TIMESTAMP('2013-02-28 18:31:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201845 +; + +-- Feb 28, 2013 6:31:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=5,Updated=TO_TIMESTAMP('2013-02-28 18:31:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201846 +; + +-- Feb 28, 2013 6:34:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Tab SET IsActive='Y',Updated=TO_TIMESTAMP('2013-02-28 18:34:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=224 +; + +-- Feb 28, 2013 6:34:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,1,'N','N',208701,'Y',201849,'N','D','1099 Vendor','N','Y','59132d30-b786-41e2-9358-066670095d11',100,0,TO_TIMESTAMP('2013-02-28 18:34:28','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:34:28','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201849 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,36,'N','N',60605,'Y',201850,'N','D','C_BPartner_UU','N','Y','0e2d9729-cbf7-47a4-b097-20911fcb9899',100,0,TO_TIMESTAMP('2013-02-28 18:34:29','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:34:29','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201850 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,60,'N','N',200612,'Y',201851,'N','D','Customer Profile ID','N','Y','57f5bfe2-6a00-48a1-83e1-ea5c04a6b9d8',100,0,TO_TIMESTAMP('2013-02-28 18:34:30','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:34:30','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201851 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,10,'N','N',208700,'Y',201852,'N','D','Default 1099 Box','N','Y','c4d02088-159e-4c27-ac9b-3ea51503d6a2',100,0,TO_TIMESTAMP('2013-02-28 18:34:31','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:34:31','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201852 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,7,'N','N',53246,'Y',201853,'N','D','Dunning Grace Date','N','Y','4a926d89-9bb0-4fbb-812e-21a7b4c4b3d4',100,0,TO_TIMESTAMP('2013-02-28 18:34:31','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:34:31','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201853 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,10,'N','N',58113,'Y',201854,'N','D','Logo','N','Y','d377e74b-8c97-416c-944e-120184793a5e',100,0,TO_TIMESTAMP('2013-02-28 18:34:32','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:34:32','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201854 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,1,'N','N',58381,'Y',201855,'N','If a business partner is exempt from tax on purchases, the exempt tax rate is used. For this, you need to set up a tax rate with a 0% rate and indicate that this is your tax exempt rate. This is required for tax reporting, so that you can track tax exempt transactions.','D','Business partner is exempt from tax on purchases','PO Tax exempt','N','Y','be313995-5b93-42c6-bdea-0e2996d1cbe9',100,0,TO_TIMESTAMP('2013-02-28 18:34:33','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:34:33','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201855 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:34:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',224,10,'N','N',54463,'Y',201856,'N','EE04','Tax Group','N','Y','cb54920b-8d4b-4247-8413-a232585194d9',100,0,TO_TIMESTAMP('2013-02-28 18:34:34','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:34:34','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:34:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201856 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201850 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201851 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201853 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201854 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201855 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201856 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=201849 +; + +-- Feb 28, 2013 6:35:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=201852 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201850 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=2442 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201851 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201853 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201854 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201855 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201856 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=2444 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=2475 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=2464 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=7622 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=2567 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=8344 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=2480 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=4622 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=2466 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=5283 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=58570 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=201849 +; + +-- Feb 28, 2013 6:35:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=201852 +; + +-- Feb 28, 2013 6:36:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLogic='@Is1099Vendor@=''Y''', ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:36:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201852 +; + +-- Feb 28, 2013 6:36:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:36:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201849 +; + +-- Feb 28, 2013 6:36:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14, IsSameLine='Y', XPosition=4,Updated=TO_TIMESTAMP('2013-02-28 18:36:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201852 +; + +-- Feb 28, 2013 6:36:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsActive='N',Updated=TO_TIMESTAMP('2013-02-28 18:36:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201849 +; + +-- Feb 28, 2013 6:36:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsActive='N',Updated=TO_TIMESTAMP('2013-02-28 18:36:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201852 +; + +-- Feb 28, 2013 6:36:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Tab SET IsActive='N',Updated=TO_TIMESTAMP('2013-02-28 18:36:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=224 +; + +-- Feb 28, 2013 6:38:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',291,10,'N','N',208704,'Y',201857,'N','D','1099 Box','N','Y','09845e2b-d8fc-4677-ad6f-bd1034fb87f0',100,0,TO_TIMESTAMP('2013-02-28 18:38:39','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:38:39','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:38:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201857 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:38:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',291,36,'N','N',60665,'Y',201858,'N','D','C_InvoiceLine_UU','N','Y','21ebaa24-485e-460f-a711-f4cc4e043e3f',100,0,TO_TIMESTAMP('2013-02-28 18:38:41','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:38:41','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:38:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201858 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:38:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',291,1,'N','N',61470,'Y',201859,'N','D','IsFixedAssetInvoice','N','Y','d7126966-a50e-49f9-88be-24d9176320f6',100,0,TO_TIMESTAMP('2013-02-28 18:38:41','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:38:41','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:38:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201859 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:38:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',291,1,'N','N',56073,'Y',201860,'N','D','Processed','N','Y','4ad428d5-1607-4449-8b91-1ffa8d476a2d',100,0,TO_TIMESTAMP('2013-02-28 18:38:42','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:38:42','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:38:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201860 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:38:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',291,22,'N','N',52008,'Y',201861,'N','Detail information about the returned goods','D','Return Material Authorization Line','RMA Line','N','Y','609fe7a6-7f66-4dda-b27a-7bec36e3dcfe',100,0,TO_TIMESTAMP('2013-02-28 18:38:43','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:38:43','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:38:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201861 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201858 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201859 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201860 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201861 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=201857 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=3366 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=56252 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=56253 +; + +-- Feb 28, 2013 6:38:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=5825 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=56254 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=10823 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=3365 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=3374 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=10824 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=3372 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=3373 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=3364 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=6430 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=12747 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=13668 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=13669 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=13693 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=13674 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=13675 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=3370 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=8266 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=8244 +; + +-- Feb 28, 2013 6:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=8267 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201858 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=3358 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201859 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201860 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201861 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=3359 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=3362 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=3363 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=3369 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=3357 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=3371 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=3360 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=201857 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=56252 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=56253 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=5825 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=56254 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=10823 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=150,IsDisplayedGrid='Y' WHERE AD_Field_ID=3365 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=160,IsDisplayedGrid='Y' WHERE AD_Field_ID=3374 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=170,IsDisplayedGrid='Y' WHERE AD_Field_ID=10824 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=180,IsDisplayedGrid='Y' WHERE AD_Field_ID=3372 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=190,IsDisplayedGrid='Y' WHERE AD_Field_ID=3373 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=200,IsDisplayedGrid='Y' WHERE AD_Field_ID=3364 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=210,IsDisplayedGrid='Y' WHERE AD_Field_ID=6430 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=220,IsDisplayedGrid='Y' WHERE AD_Field_ID=12747 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=230,IsDisplayedGrid='Y' WHERE AD_Field_ID=13668 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=240,IsDisplayedGrid='Y' WHERE AD_Field_ID=13669 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=250,IsDisplayedGrid='Y' WHERE AD_Field_ID=13693 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=260,IsDisplayedGrid='Y' WHERE AD_Field_ID=13674 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=270,IsDisplayedGrid='Y' WHERE AD_Field_ID=13675 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=280,IsDisplayedGrid='Y' WHERE AD_Field_ID=3370 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=290,IsDisplayedGrid='Y' WHERE AD_Field_ID=8266 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=300,IsDisplayedGrid='Y' WHERE AD_Field_ID=8244 +; + +-- Feb 28, 2013 6:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=310,IsDisplayedGrid='Y' WHERE AD_Field_ID=8267 +; + +-- Feb 28, 2013 6:39:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14, ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:39:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201857 +; + +-- Feb 28, 2013 6:40:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',510,10,'N','N',208702,'Y',201862,'N','D','1099 Box','N','Y','73a28046-64ea-4526-8f1c-a09684b107a4',100,0,TO_TIMESTAMP('2013-02-28 18:40:34','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:40:34','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:40:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201862 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:40:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',510,40,'N','N',208703,'Y',201863,'N','D','1099 Box Value','N','Y','3017f291-8141-4d54-b9be-dd6cb83f3da0',100,0,TO_TIMESTAMP('2013-02-28 18:40:35','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:40:35','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:40:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201863 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:40:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',510,36,'N','N',60839,'Y',201864,'N','D','I_Invoice_UU','N','Y','008b715c-3385-45f0-a1db-e3d8b8a89305',100,0,TO_TIMESTAMP('2013-02-28 18:40:36','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 18:40:36','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 6:40:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201864 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=7210 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201864 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=7231 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=7213 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=7242 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=7245 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=7251 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=7226 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=7243 +; + +-- Feb 28, 2013 6:41:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=7246 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=7238 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=7216 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=7230 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=7248 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=7227 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=7223 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=7234 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=7236 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=7249 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=7221 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=7220 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=7218 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=7219 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=7637 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=7222 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=7229 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=7225 +; + +-- Feb 28, 2013 6:41:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=7235 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=7214 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=7635 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=7638 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=7634 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=7244 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=7639 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=7636 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=7212 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=8261 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=8260 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=7240 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=7208 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=53253 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=53254 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=7233 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=420,IsDisplayed='Y' WHERE AD_Field_ID=7232 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=430,IsDisplayed='Y' WHERE AD_Field_ID=7207 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=440,IsDisplayed='Y' WHERE AD_Field_ID=7228 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=450,IsDisplayed='Y' WHERE AD_Field_ID=7241 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=460,IsDisplayed='Y' WHERE AD_Field_ID=7215 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=470,IsDisplayed='Y' WHERE AD_Field_ID=7250 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=480,IsDisplayed='Y' WHERE AD_Field_ID=7209 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=490,IsDisplayed='Y' WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=500,IsDisplayed='Y' WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:41:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=510,IsDisplayed='Y' WHERE AD_Field_ID=7239 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=520,IsDisplayed='Y' WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=530,IsDisplayed='Y' WHERE AD_Field_ID=7237 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=540,IsDisplayed='Y' WHERE AD_Field_ID=7217 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=550,IsDisplayed='Y' WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=560,IsDisplayed='Y' WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=570,IsDisplayed='Y' WHERE AD_Field_ID=7247 +; + +-- Feb 28, 2013 6:41:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=580,IsDisplayed='Y' WHERE AD_Field_ID=7224 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=7210 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=7226 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201864 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=7231 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=7213 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=7242 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=7245 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=7251 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=7243 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=7246 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=7238 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=7216 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=7230 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=7248 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=7227 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=7223 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=7234 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=150,IsDisplayedGrid='Y' WHERE AD_Field_ID=7236 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=160,IsDisplayedGrid='Y' WHERE AD_Field_ID=7249 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=170,IsDisplayedGrid='Y' WHERE AD_Field_ID=7221 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=180,IsDisplayedGrid='Y' WHERE AD_Field_ID=7220 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=190,IsDisplayedGrid='Y' WHERE AD_Field_ID=7218 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=200,IsDisplayedGrid='Y' WHERE AD_Field_ID=7219 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=210,IsDisplayedGrid='Y' WHERE AD_Field_ID=7637 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=220,IsDisplayedGrid='Y' WHERE AD_Field_ID=7222 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=230,IsDisplayedGrid='Y' WHERE AD_Field_ID=7229 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=240,IsDisplayedGrid='Y' WHERE AD_Field_ID=7225 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=250,IsDisplayedGrid='Y' WHERE AD_Field_ID=7235 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=260,IsDisplayedGrid='Y' WHERE AD_Field_ID=7214 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=270,IsDisplayedGrid='Y' WHERE AD_Field_ID=7635 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=280,IsDisplayedGrid='Y' WHERE AD_Field_ID=7638 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=290,IsDisplayedGrid='Y' WHERE AD_Field_ID=7634 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=300,IsDisplayedGrid='Y' WHERE AD_Field_ID=7244 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=310,IsDisplayedGrid='Y' WHERE AD_Field_ID=7639 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=320,IsDisplayedGrid='Y' WHERE AD_Field_ID=7636 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=330,IsDisplayedGrid='Y' WHERE AD_Field_ID=7212 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=340,IsDisplayedGrid='Y' WHERE AD_Field_ID=8261 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=350,IsDisplayedGrid='Y' WHERE AD_Field_ID=8260 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=360,IsDisplayedGrid='Y' WHERE AD_Field_ID=7240 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=370,IsDisplayedGrid='Y' WHERE AD_Field_ID=7208 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=380,IsDisplayedGrid='Y' WHERE AD_Field_ID=53253 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=390,IsDisplayedGrid='Y' WHERE AD_Field_ID=53254 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=480,IsDisplayedGrid='Y' WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=490,IsDisplayedGrid='Y' WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=500,IsDisplayedGrid='Y' WHERE AD_Field_ID=7239 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=510,IsDisplayedGrid='Y' WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=520,IsDisplayedGrid='Y' WHERE AD_Field_ID=7237 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=530,IsDisplayedGrid='Y' WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:41:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=540,IsDisplayedGrid='Y' WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:41:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=550,IsDisplayedGrid='Y' WHERE AD_Field_ID=7217 +; + +-- Feb 28, 2013 6:41:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=560,IsDisplayedGrid='Y' WHERE AD_Field_ID=7247 +; + +-- Feb 28, 2013 6:41:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=570,IsDisplayedGrid='Y' WHERE AD_Field_ID=7224 +; + +-- Feb 28, 2013 6:41:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:41:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:42:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14, IsSameLine='Y', XPosition=4, ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:42:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:42:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14,Updated=TO_TIMESTAMP('2013-02-28 18:42:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:45:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu (AD_Window_ID,AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,EntityType,AD_Menu_UU,IsCentrallyMaintained,Name,"action",IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200036,200041,'N','N','N','D','4fe89318-c3ec-4b52-917a-35aaa2a1d402','Y','1099 Box','W','Y',0,100,TO_TIMESTAMP('2013-02-28 18:45:32','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-02-28 18:45:32','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Feb 28, 2013 6:45:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200041 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + +-- Feb 28, 2013 6:45:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +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', CURRENT_TIMESTAMP, 100, CURRENT_TIMESTAMP, 100,t.AD_Tree_ID, 200041, 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=200041) +; + +-- Feb 28, 2013 6:45:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,AD_Menu_UU,IsCentrallyMaintained,Name,"action",IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200042,'N','N','N',200034,'D','d6dc1c98-961b-4e15-918f-13a7ecc5ccdd','Y','1099 Extract','R','Y',0,100,TO_TIMESTAMP('2013-02-28 18:45:52','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-02-28 18:45:52','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Feb 28, 2013 6:45:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200042 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + +-- Feb 28, 2013 6:45:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +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', CURRENT_TIMESTAMP, 100, CURRENT_TIMESTAMP, 100,t.AD_Tree_ID, 200042, 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=200042) +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Feb 28, 2013 6:46:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Feb 28, 2013 6:46:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Feb 28, 2013 6:46:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Feb 28, 2013 6:46:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=218 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=153 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=263 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=166 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=203 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53242 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=236 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=183 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=160 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=278 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=345 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=519 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53296 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53083 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53014 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=16, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200022 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=17, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=518 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=18, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53108 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=19, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200024 +; + +-- Feb 28, 2013 6:46:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=20, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200038 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Feb 28, 2013 6:46:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=32, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=32, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Feb 28, 2013 6:46:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=32, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +-- Feb 28, 2013 6:49:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=2,Updated=TO_TIMESTAMP('2013-02-28 18:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201840 +; + +-- Feb 28, 2013 6:51:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=520,IsDisplayed='Y' WHERE AD_Field_ID=7237 +; + +-- Feb 28, 2013 6:51:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=530,IsDisplayed='Y' WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:51:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=550,IsDisplayed='Y' WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:51:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=560,IsDisplayed='Y' WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:51:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=510,IsDisplayedGrid='Y' WHERE AD_Field_ID=7237 +; + +-- Feb 28, 2013 6:51:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=520,IsDisplayedGrid='Y' WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:51:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=530,IsDisplayedGrid='Y' WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:51:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=540,IsDisplayedGrid='Y' WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:51:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=530,IsDisplayedGrid='Y' WHERE AD_Field_ID=7217 +; + +-- Feb 28, 2013 6:51:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=540,IsDisplayedGrid='Y' WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:51:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=550,IsDisplayedGrid='Y' WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:52:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:52:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:52:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=1,Updated=TO_TIMESTAMP('2013-02-28 18:52:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7217 +; + +-- Feb 28, 2013 6:52:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=1,Updated=TO_TIMESTAMP('2013-02-28 18:52:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:52:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='Y', XPosition=4,Updated=TO_TIMESTAMP('2013-02-28 18:52:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201863 +; + +-- Feb 28, 2013 6:52:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2013-02-28 18:52:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201862 +; + +-- Feb 28, 2013 6:52:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14,Updated=TO_TIMESTAMP('2013-02-28 18:52:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:52:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2013-02-28 18:52:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7217 +; + +-- Feb 28, 2013 6:53:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2013-02-28 18:53:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53251 +; + +-- Feb 28, 2013 6:53:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:53:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:54:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=4,Updated=TO_TIMESTAMP('2013-02-28 18:54:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:54:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=1,Updated=TO_TIMESTAMP('2013-02-28 18:54:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7239 +; + +-- Feb 28, 2013 6:54:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14,Updated=TO_TIMESTAMP('2013-02-28 18:54:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:54:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14,Updated=TO_TIMESTAMP('2013-02-28 18:54:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:54:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14,Updated=TO_TIMESTAMP('2013-02-28 18:54:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7209 +; + +-- Feb 28, 2013 6:54:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2013-02-28 18:54:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:54:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=490,IsDisplayed='Y' WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:54:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=500,IsDisplayed='Y' WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:54:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=480,IsDisplayedGrid='Y' WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:54:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=490,IsDisplayedGrid='Y' WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:54:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=1,Updated=TO_TIMESTAMP('2013-02-28 18:54:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7211 +; + +-- Feb 28, 2013 6:55:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=4,Updated=TO_TIMESTAMP('2013-02-28 18:55:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53252 +; + +-- Feb 28, 2013 6:55:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2013-02-28 18:55:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7239 +; + +-- Feb 28, 2013 6:56:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLength=14,Updated=TO_TIMESTAMP('2013-02-28 18:56:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7247 +; + +-- Feb 28, 2013 6:57:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2013-02-28 18:57:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7224 +; + +-- Feb 28, 2013 6:58:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 18:58:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53254 +; + +-- Feb 28, 2013 7:00:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',220,1,'N','N',208701,'Y',201865,'N','D','1099 Vendor','N','Y','0e7b06d4-d47a-4ce0-a5a6-8b359bd8590c',100,0,TO_TIMESTAMP('2013-02-28 19:00:50','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 19:00:50','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 7:00:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201865 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 7:00:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',220,10,'N','N',208700,'Y',201866,'N','D','Default 1099 Box','N','Y','ce66823b-82ef-4a8e-87be-2eeb02076d27',100,0,TO_TIMESTAMP('2013-02-28 19:00:51','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-02-28 19:00:51','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Feb 28, 2013 7:00:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201866 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=54555 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=9606 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=10592 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=2155 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=9620 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=2160 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=57981 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=2164 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=2133 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=2141 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=2136 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=9600 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=9602 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=9624 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=9601 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=9612 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=9607 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=9622 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=9611 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=10470 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=9628 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=54556 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=9619 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=9610 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=9603 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=420,IsDisplayed='Y' WHERE AD_Field_ID=200622 +; + +-- Feb 28, 2013 7:01:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=430,IsDisplayed='Y' WHERE AD_Field_ID=9621 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=440,IsDisplayed='Y' WHERE AD_Field_ID=9608 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=450,IsDisplayed='Y' WHERE AD_Field_ID=201865 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=460,IsDisplayed='Y' WHERE AD_Field_ID=201866 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=470,IsDisplayed='Y' WHERE AD_Field_ID=9609 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=480,IsDisplayed='Y' WHERE AD_Field_ID=2124 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=490,IsDisplayed='Y' WHERE AD_Field_ID=3261 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=500,IsDisplayed='Y' WHERE AD_Field_ID=9604 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=510,IsDisplayed='Y' WHERE AD_Field_ID=9618 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=520,IsDisplayed='Y' WHERE AD_Field_ID=9625 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=530,IsDisplayed='Y' WHERE AD_Field_ID=9613 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=540,IsDisplayed='Y' WHERE AD_Field_ID=2154 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=550,IsDisplayed='Y' WHERE AD_Field_ID=2132 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=560,IsDisplayed='Y' WHERE AD_Field_ID=2144 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=570,IsDisplayed='Y' WHERE AD_Field_ID=2127 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=580,IsDisplayed='Y' WHERE AD_Field_ID=2146 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=590,IsDisplayed='Y' WHERE AD_Field_ID=2153 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=600,IsDisplayed='Y' WHERE AD_Field_ID=2148 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=610,IsDisplayed='Y' WHERE AD_Field_ID=2128 +; + +-- Feb 28, 2013 7:01:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNo=620,IsDisplayed='Y' WHERE AD_Field_ID=2135 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201865 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=2123 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201866 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=9614 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=9626 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=9623 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=2125 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=2156 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=9627 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=3261 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=2145 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=3228 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=2133 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=2136 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=2141 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=8238 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=10592 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=150,IsDisplayedGrid='Y' WHERE AD_Field_ID=2155 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=160,IsDisplayedGrid='Y' WHERE AD_Field_ID=2160 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=170,IsDisplayedGrid='Y' WHERE AD_Field_ID=57981 +; + +-- Feb 28, 2013 7:01:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=180,IsDisplayedGrid='Y' WHERE AD_Field_ID=54555 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=190,IsDisplayedGrid='Y' WHERE AD_Field_ID=2132 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=200,IsDisplayedGrid='Y' WHERE AD_Field_ID=2149 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=210,IsDisplayedGrid='Y' WHERE AD_Field_ID=2144 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=220,IsDisplayedGrid='Y' WHERE AD_Field_ID=2162 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=230,IsDisplayedGrid='Y' WHERE AD_Field_ID=3955 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=240,IsDisplayedGrid='Y' WHERE AD_Field_ID=2124 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=250,IsDisplayedGrid='Y' WHERE AD_Field_ID=2164 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=260,IsDisplayedGrid='Y' WHERE AD_Field_ID=2139 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=270,IsDisplayedGrid='Y' WHERE AD_Field_ID=9620 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=280,IsDisplayedGrid='Y' WHERE AD_Field_ID=2148 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=290,IsDisplayedGrid='Y' WHERE AD_Field_ID=2128 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=300,IsDisplayedGrid='Y' WHERE AD_Field_ID=2127 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=310,IsDisplayedGrid='Y' WHERE AD_Field_ID=2146 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=320,IsDisplayedGrid='Y' WHERE AD_Field_ID=2154 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=330,IsDisplayedGrid='Y' WHERE AD_Field_ID=2153 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=340,IsDisplayedGrid='Y' WHERE AD_Field_ID=2135 +; + +-- Feb 28, 2013 7:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET SeqNoGrid=350,IsDisplayedGrid='Y' WHERE AD_Field_ID=57533 +; + +-- Feb 28, 2013 7:01:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET AD_FieldGroup_ID=200006,Updated=TO_TIMESTAMP('2013-02-28 19:01:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201865 +; + +-- Feb 28, 2013 7:01:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET AD_FieldGroup_ID=200006,Updated=TO_TIMESTAMP('2013-02-28 19:01:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201866 +; + +-- Feb 28, 2013 7:02:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y',Updated=TO_TIMESTAMP('2013-02-28 19:02:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201865 +; + +-- Feb 28, 2013 7:02:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y', ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 19:02:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201866 +; + +-- Feb 28, 2013 7:02:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-02-28 19:02:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201865 +; + +-- Feb 28, 2013 7:02:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET IsSameLine='Y', XPosition=4,Updated=TO_TIMESTAMP('2013-02-28 19:02:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201866 +; + +-- Feb 28, 2013 7:02:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET XPosition=2,Updated=TO_TIMESTAMP('2013-02-28 19:02:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201865 +; + +-- Feb 28, 2013 7:03:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y&@Is1099Vendor@=Y',Updated=TO_TIMESTAMP('2013-02-28 19:03:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201866 +; + +-- Feb 28, 2013 7:08:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormat (CreateCopy,IsForm,IsDefault,AD_PrintFormat_ID,IsStandardHeaderFooter,AD_ReportView_ID,AD_PrintPaper_ID,AD_PrintColor_ID,IsTableBased,AD_Table_ID,HeaderMargin,AD_PrintFont_ID,AD_PrintFormat_UU,FooterMargin,Name,Updated,CreatedBy,Created,UpdatedBy,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('N','N','N',200002,'Y',200000,100,100,'Y',200068,0,130,'b01c8fb7-5846-4543-a64c-9222ee91328f',0,'1099 Extract',TO_TIMESTAMP('2013-02-28 19:08:53','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-02-28 19:08:53','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',0) +; + +-- Feb 28, 2013 7:09:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintPaper_ID=100, AD_PrintColor_ID=100, AD_Table_ID=200068, AD_PrintFont_ID=130, Name='RV_T_1099Extract_2',Updated=TO_TIMESTAMP('2013-02-28 19:09:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200002 +; + +-- Feb 28, 2013 7:09:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Name',0,'Y','Y','C',200002,'N',0,'F','N',1,208656,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Name',1,'N','462eaeb4-0e0c-401a-9bd0-460298079211',0,200086,'N',0,TO_TIMESTAMP('2013-02-28 19:09:13','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:13','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200086 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208656) WHERE AD_PrintFormatItem_ID = 200086 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208656 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200086) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Active',0,'N','N','C',200002,'N',0,'F','N',0,208649,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Active',0,'N','02ff5b1f-5eea-4a19-8f8a-00b128e67af0',0,200087,'N',0,TO_TIMESTAMP('2013-02-28 19:09:14','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:14','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200087 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208649) WHERE AD_PrintFormatItem_ID = 200087 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208649 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200087) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Address',0,'N','Y','C',200002,'N',0,'F','N',3,208658,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Address',0,'N','4dc00cfc-1534-4602-9c79-bab9580e1292',0,200088,'N',0,TO_TIMESTAMP('2013-02-28 19:09:15','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:15','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200088 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208658) WHERE AD_PrintFormatItem_ID = 200088 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208658 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200088) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Address 1',0,'N','Y','C',200002,'N',0,'F','N',4,208659,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Address 1',0,'N','cf5653d5-872b-4841-89c1-9072f1de9049',0,200089,'N',0,TO_TIMESTAMP('2013-02-28 19:09:16','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:16','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200089 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208659) WHERE AD_PrintFormatItem_ID = 200089 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208659 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200089) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Address 2',0,'N','Y','C',200002,'N',0,'F','N',5,208660,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Address 2',0,'N','f008554a-71a5-4d27-bbb0-6e5b53a56539',0,200090,'N',0,TO_TIMESTAMP('2013-02-28 19:09:18','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:18','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200090 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208660) WHERE AD_PrintFormatItem_ID = 200090 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208660 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200090) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Address 3',0,'N','Y','C',200002,'N',0,'F','N',6,208661,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Address 3',0,'N','15f2b60f-ddb5-4f46-b2f5-4a0a2e38a91b',0,200091,'N',0,TO_TIMESTAMP('2013-02-28 19:09:19','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:19','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200091 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208661) WHERE AD_PrintFormatItem_ID = 200091 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208661 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200091) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Address 4',0,'N','Y','C',200002,'N',0,'F','N',7,208662,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Address 4',0,'N','08fc0220-e41f-4cda-9d84-f9660eefa7f4',0,200092,'N',0,TO_TIMESTAMP('2013-02-28 19:09:20','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:20','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200092 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208662) WHERE AD_PrintFormatItem_ID = 200092 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208662 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200092) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 1',0,'N','Y','C',200002,'N',0,'F','N',8,208670,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 1',0,'N','e5d5a283-e331-432b-acc2-5bf8af510c85',0,200093,'N',0,TO_TIMESTAMP('2013-02-28 19:09:21','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:21','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200093 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208670) WHERE AD_PrintFormatItem_ID = 200093 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208670 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200093) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 10',0,'N','Y','C',200002,'N',0,'F','N',9,208679,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 10',0,'N','2991916b-7b3e-4c6c-9e80-08657a32a87d',0,200094,'N',0,TO_TIMESTAMP('2013-02-28 19:09:25','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:25','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200094 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208679) WHERE AD_PrintFormatItem_ID = 200094 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208679 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200094) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 11',0,'N','Y','C',200002,'N',0,'F','N',10,208680,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 11',0,'N','3347926a-1833-4d0d-b9e4-8a5026c4f402',0,200095,'N',0,TO_TIMESTAMP('2013-02-28 19:09:26','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:26','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200095 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208680) WHERE AD_PrintFormatItem_ID = 200095 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208680 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200095) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 12',0,'N','Y','C',200002,'N',0,'F','N',11,208681,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 12',0,'N','7ddd1ed4-8b6f-418c-bbda-607fb46c452f',0,200096,'N',0,TO_TIMESTAMP('2013-02-28 19:09:27','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:27','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200096 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208681) WHERE AD_PrintFormatItem_ID = 200096 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208681 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200096) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 13',0,'N','Y','C',200002,'N',0,'F','N',12,208682,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 13',0,'N','ace86336-6342-4585-97e3-c537a4b43214',0,200097,'N',0,TO_TIMESTAMP('2013-02-28 19:09:28','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:28','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200097 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208682) WHERE AD_PrintFormatItem_ID = 200097 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208682 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200097) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 14',0,'N','Y','C',200002,'N',0,'F','N',13,208683,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 14',0,'N','5f6f8594-d760-4ed6-b964-3f80646e13c8',0,200098,'N',0,TO_TIMESTAMP('2013-02-28 19:09:29','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:29','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200098 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208683) WHERE AD_PrintFormatItem_ID = 200098 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208683 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200098) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 15',0,'N','Y','C',200002,'N',0,'F','N',14,208684,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 15',0,'N','74628a15-a658-41dd-ac75-ac2b3cc900f2',0,200099,'N',0,TO_TIMESTAMP('2013-02-28 19:09:30','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:30','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200099 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208684) WHERE AD_PrintFormatItem_ID = 200099 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208684 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200099) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 16',0,'N','Y','C',200002,'N',0,'F','N',15,208685,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 16',0,'N','d1d6071b-f98d-46e8-9bf0-a5020c7dd4f5',0,200100,'N',0,TO_TIMESTAMP('2013-02-28 19:09:31','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:31','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200100 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208685) WHERE AD_PrintFormatItem_ID = 200100 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208685 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200100) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 2',0,'N','Y','C',200002,'N',0,'F','N',16,208671,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 2',0,'N','81d4788a-e624-41c8-a712-0b2371ab056f',0,200101,'N',0,TO_TIMESTAMP('2013-02-28 19:09:32','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:32','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200101 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208671) WHERE AD_PrintFormatItem_ID = 200101 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208671 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200101) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 3',0,'N','Y','C',200002,'N',0,'F','N',17,208672,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 3',0,'N','eaa00a53-5cbc-4f7d-bbfd-bf31946e16a0',0,200102,'N',0,TO_TIMESTAMP('2013-02-28 19:09:33','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:33','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200102 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208672) WHERE AD_PrintFormatItem_ID = 200102 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208672 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200102) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 4',0,'N','Y','C',200002,'N',0,'F','N',18,208673,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 4',0,'N','b6dfb300-1956-4285-8c2e-b5abdb7e943c',0,200103,'N',0,TO_TIMESTAMP('2013-02-28 19:09:34','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:34','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200103 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208673) WHERE AD_PrintFormatItem_ID = 200103 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208673 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200103) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 5',0,'N','Y','C',200002,'N',0,'F','N',19,208674,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 5',0,'N','f01e3057-d8fa-4987-8722-ae69ad9ac96d',0,200104,'N',0,TO_TIMESTAMP('2013-02-28 19:09:35','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:35','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200104 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208674) WHERE AD_PrintFormatItem_ID = 200104 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208674 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200104) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 6',0,'N','Y','C',200002,'N',0,'F','N',20,208675,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 6',0,'N','9596366d-0951-47f0-b673-624b509253d9',0,200105,'N',0,TO_TIMESTAMP('2013-02-28 19:09:36','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:36','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200105 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208675) WHERE AD_PrintFormatItem_ID = 200105 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208675 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200105) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 7',0,'N','Y','C',200002,'N',0,'F','N',21,208676,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 7',0,'N','559a08ac-2794-4879-b8cb-17b51537c1fe',0,200106,'N',0,TO_TIMESTAMP('2013-02-28 19:09:37','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:37','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200106 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208676) WHERE AD_PrintFormatItem_ID = 200106 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208676 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200106) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 8',0,'N','Y','C',200002,'N',0,'F','N',22,208677,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 8',0,'N','968c4a3f-9364-49f2-8f64-b2c2231b146e',0,200107,'N',0,TO_TIMESTAMP('2013-02-28 19:09:38','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:38','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200107 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208677) WHERE AD_PrintFormatItem_ID = 200107 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208677 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200107) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Amount Bucket 9',0,'N','Y','C',200002,'N',0,'F','N',23,208678,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Amount Bucket 9',0,'N','a3478eab-3923-4475-974a-9527e20686fe',0,200108,'N',0,TO_TIMESTAMP('2013-02-28 19:09:39','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:39','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200108 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208678) WHERE AD_PrintFormatItem_ID = 200108 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208678 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200108) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Business Partner ',0,'N','Y','C',200002,'N',0,'F','N',24,208654,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Business Partner ',0,'N','d9ea53b9-c359-4e66-b804-6b04a6def4a8',0,200109,'N',0,TO_TIMESTAMP('2013-02-28 19:09:40','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:40','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200109 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208654) WHERE AD_PrintFormatItem_ID = 200109 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208654 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200109) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('City',0,'N','Y','C',200002,'N',0,'F','N',25,208664,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','City',0,'N','17a34303-29d9-4aa6-8bbe-15cca5bd1d96',0,200110,'N',0,TO_TIMESTAMP('2013-02-28 19:09:41','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:41','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200110 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208664) WHERE AD_PrintFormatItem_ID = 200110 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208664 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200110) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('City State Zip',0,'N','Y','C',200002,'N',0,'F','N',26,208663,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','City State Zip',0,'N','3fbef02b-4409-4721-8969-e74a4895458f',0,200111,'N',0,TO_TIMESTAMP('2013-02-28 19:09:42','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:42','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200111 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208663) WHERE AD_PrintFormatItem_ID = 200111 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208663 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200111) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Client',0,'N','N','C',200002,'N',0,'F','N',0,208647,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Client',0,'N','a806b83b-62ac-4170-b673-61c164747c29',0,200112,'N',0,TO_TIMESTAMP('2013-02-28 19:09:43','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:43','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200112 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208647) WHERE AD_PrintFormatItem_ID = 200112 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208647 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200112) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Country',0,'N','Y','C',200002,'N',0,'F','N',28,208667,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Country',0,'N','749bf9d9-54e2-4371-9fea-aa0ca506fd14',0,200113,'N',0,TO_TIMESTAMP('2013-02-28 19:09:44','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:44','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200113 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208667) WHERE AD_PrintFormatItem_ID = 200113 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208667 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200113) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Created',0,'N','N','C',200002,'N',0,'F','N',0,208650,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Created',0,'N','bef4d265-9e6a-471d-a925-2ea54f39a248',0,200114,'N',0,TO_TIMESTAMP('2013-02-28 19:09:45','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:45','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200114 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208650) WHERE AD_PrintFormatItem_ID = 200114 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208650 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200114) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Created By',0,'N','N','C',200002,'N',0,'F','N',0,208651,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Created By',0,'N','624fa07f-e24e-467f-bf4e-cae90435b9c9',0,200115,'N',0,TO_TIMESTAMP('2013-02-28 19:09:49','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:49','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200115 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208651) WHERE AD_PrintFormatItem_ID = 200115 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208651 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200115) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Cut Date',0,'N','Y','C',200002,'N',0,'F','N',31,208669,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Cut Date',0,'N','175f1a41-cb24-4089-943f-b808a54d6e7d',0,200116,'N',0,TO_TIMESTAMP('2013-02-28 19:09:50','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:50','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200116 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208669) WHERE AD_PrintFormatItem_ID = 200116 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208669 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200116) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Cut Year',0,'N','Y','C',200002,'N',0,'F','N',32,208668,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Cut Year',0,'N','b44919b5-8a2c-4854-94c1-c98c8927e2d1',0,200117,'N',0,TO_TIMESTAMP('2013-02-28 19:09:51','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:51','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200117 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208668) WHERE AD_PrintFormatItem_ID = 200117 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208668 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200117) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Organization',0,'N','N','C',200002,'N',0,'F','N',0,208648,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Organization',0,'N','1d91444f-d1c7-49a0-a9b3-c02a06b51e0f',0,200118,'N',0,TO_TIMESTAMP('2013-02-28 19:09:52','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:52','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200118 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208648) WHERE AD_PrintFormatItem_ID = 200118 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208648 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200118) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Process Instance',0,'N','Y','C',200002,'N',0,'F','N',34,208646,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Process Instance',0,'N','4e7dfbea-16b2-46db-9459-16bb44e843ca',0,200119,'N',0,TO_TIMESTAMP('2013-02-28 19:09:53','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:53','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200119 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208646) WHERE AD_PrintFormatItem_ID = 200119 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208646 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200119) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('region',0,'N','Y','C',200002,'N',0,'F','N',35,208665,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','region',0,'N','c4911e30-c3b3-49eb-9e3d-1d6ac6eff5c3',0,200120,'N',0,TO_TIMESTAMP('2013-02-28 19:09:54','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:54','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200120 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208665) WHERE AD_PrintFormatItem_ID = 200120 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208665 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200120) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:09:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Search Key',0,'N','Y','C',200002,'N',0,'F','N',36,208655,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Search Key',0,'N','d544205b-8f42-4b07-8e7f-d7309da97197',0,200121,'N',0,TO_TIMESTAMP('2013-02-28 19:09:58','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:58','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:09:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200121 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:09:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208655) WHERE AD_PrintFormatItem_ID = 200121 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208655 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200121) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:10:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Tax ID',0,'N','Y','C',200002,'N',0,'F','N',37,208657,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Tax ID',0,'N','a5dbd31d-4740-4ceb-b8f3-bc98549252b8',0,200122,'N',0,TO_TIMESTAMP('2013-02-28 19:09:59','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:09:59','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:10:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200122 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:10:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208657) WHERE AD_PrintFormatItem_ID = 200122 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208657 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200122) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:10:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Updated',0,'N','N','C',200002,'N',0,'F','N',0,208652,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Updated',0,'N','6aebbb2e-9756-4584-bcf5-272c3eb21844',0,200123,'N',0,TO_TIMESTAMP('2013-02-28 19:10:00','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:10:00','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:10:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200123 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:10:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208652) WHERE AD_PrintFormatItem_ID = 200123 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208652 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200123) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:10:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Updated By',0,'N','N','C',200002,'N',0,'F','N',0,208653,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Updated By',0,'N','09ab74ff-5e56-484e-8947-e0a94bdbd2bc',0,200124,'N',0,TO_TIMESTAMP('2013-02-28 19:10:01','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:10:01','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:10:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200124 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:10:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208653) WHERE AD_PrintFormatItem_ID = 200124 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208653 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200124) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:10:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Zip',0,'N','Y','C',200002,'N',0,'F','N',40,208666,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Zip',0,'N','e697164c-2e56-4205-9e81-0f7f3fa0b56c',0,200125,'N',0,TO_TIMESTAMP('2013-02-28 19:10:02','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-02-28 19:10:02','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Feb 28, 2013 7:10:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200125 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Feb 28, 2013 7:10:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208666) WHERE AD_PrintFormatItem_ID = 200125 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208666 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200125) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Feb 28, 2013 7:10:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintFont_ID=160,Updated=TO_TIMESTAMP('2013-02-28 19:10:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200002 +; + +-- Feb 28, 2013 7:10:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET Name='1099 Extract',Updated=TO_TIMESTAMP('2013-02-28 19:10:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200002 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200088 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200109 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200110 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200116 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200119 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200121 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200125 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200120 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=10,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200086 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=20,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200089 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200090 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200091 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200092 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=60,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200111 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=70,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200113 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=80,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200122 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=90,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200117 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=100,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200093 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=110,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200101 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=120,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200102 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=130,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200103 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=140,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200104 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=150,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200105 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=160,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200106 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=170,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200107 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=180,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200108 +; + +-- Feb 28, 2013 7:11:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=190,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200094 +; + +-- Feb 28, 2013 7:11:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=200,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200095 +; + +-- Feb 28, 2013 7:11:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=210,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200096 +; + +-- Feb 28, 2013 7:11:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=220,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200097 +; + +-- Feb 28, 2013 7:11:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=230,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200098 +; + +-- Feb 28, 2013 7:11:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=240,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200099 +; + +-- Feb 28, 2013 7:11:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=250,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200100 +; + +-- Feb 28, 2013 7:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Region', Name='Region', PrintName='Region',Updated=TO_TIMESTAMP('2013-02-28 19:13:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202243 +; + +-- Feb 28, 2013 7:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202243 +; + +-- Feb 28, 2013 7:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Region', Name='Region', Description=NULL, Help=NULL WHERE AD_Element_ID=202243 +; + +-- Feb 28, 2013 7:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Region', Name='Region', Description=NULL, Help=NULL, AD_Element_ID=202243 WHERE UPPER(ColumnName)='REGION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Feb 28, 2013 7:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Region', Name='Region', Description=NULL, Help=NULL WHERE AD_Element_ID=202243 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 7:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Region', Name='Region', Description=NULL, Help=NULL WHERE AD_Element_ID=202243 AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 7:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Region', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202243) AND IsCentrallyMaintained='Y' +; + +-- Feb 28, 2013 7:13:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Region', Name='Region' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202243) +; + +-- Feb 28, 2013 7:14:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Year', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:14:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200117 +; + +-- Feb 28, 2013 7:14:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200117 +; + +-- Feb 28, 2013 7:14:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 1/10', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:14:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200093 +; + +-- Feb 28, 2013 7:14:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200093 +; + +-- Feb 28, 2013 7:14:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 2/13', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:14:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200101 +; + +-- Feb 28, 2013 7:14:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200101 +; + +-- Feb 28, 2013 7:15:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 3/14', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:15:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200102 +; + +-- Feb 28, 2013 7:15:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200102 +; + +-- Feb 28, 2013 7:15:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 4/15a', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:15:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200103 +; + +-- Feb 28, 2013 7:15:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200103 +; + +-- Feb 28, 2013 7:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 5/15b', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:15:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200104 +; + +-- Feb 28, 2013 7:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200104 +; + +-- Feb 28, 2013 7:15:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 6/16', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:15:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200105 +; + +-- Feb 28, 2013 7:15:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200105 +; + +-- Feb 28, 2013 7:15:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 7/17', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:15:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200106 +; + +-- Feb 28, 2013 7:15:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200106 +; + +-- Feb 28, 2013 7:15:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 8/18', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:15:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200107 +; + +-- Feb 28, 2013 7:15:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200107 +; + +-- Feb 28, 2013 7:15:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 10', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:15:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200108 +; + +-- Feb 28, 2013 7:15:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200108 +; + +-- Feb 28, 2013 7:15:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 13', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:15:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200094 +; + +-- Feb 28, 2013 7:15:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200094 +; + +-- Feb 28, 2013 7:15:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 14', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:15:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200095 +; + +-- Feb 28, 2013 7:15:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200095 +; + +-- Feb 28, 2013 7:15:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 15a', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:15:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200096 +; + +-- Feb 28, 2013 7:15:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200096 +; + +-- Feb 28, 2013 7:15:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 15b', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:15:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200097 +; + +-- Feb 28, 2013 7:15:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200097 +; + +-- Feb 28, 2013 7:15:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 16', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:15:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200098 +; + +-- Feb 28, 2013 7:15:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200098 +; + +-- Feb 28, 2013 7:16:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 17', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200099 +; + +-- Feb 28, 2013 7:16:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200099 +; + +-- Feb 28, 2013 7:16:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, PrintName='Box 18', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200100 +; + +-- Feb 28, 2013 7:16:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200100 +; + +-- Feb 28, 2013 7:16:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200089 +; + +-- Feb 28, 2013 7:16:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200090 +; + +-- Feb 28, 2013 7:16:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200091 +; + +-- Feb 28, 2013 7:16:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200092 +; + +-- Feb 28, 2013 7:16:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200111 +; + +-- Feb 28, 2013 7:16:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200113 +; + +-- Feb 28, 2013 7:16:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200108 +; + +-- Feb 28, 2013 7:16:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200094 +; + +-- Feb 28, 2013 7:16:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200095 +; + +-- Feb 28, 2013 7:16:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200096 +; + +-- Feb 28, 2013 7:16:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200097 +; + +-- Feb 28, 2013 7:16:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200098 +; + +-- Feb 28, 2013 7:16:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:16:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200099 +; + +-- Feb 28, 2013 7:17:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSuppressNull='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200100 +; + +-- Feb 28, 2013 7:17:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200089 +; + +-- Feb 28, 2013 7:17:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200090 +; + +-- Feb 28, 2013 7:17:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200091 +; + +-- Feb 28, 2013 7:17:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200092 +; + +-- Feb 28, 2013 7:17:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200111 +; + +-- Feb 28, 2013 7:17:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200113 +; + +-- Feb 28, 2013 7:17:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=1, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200089 +; + +-- Feb 28, 2013 7:17:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=1, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200090 +; + +-- Feb 28, 2013 7:17:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=1, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200091 +; + +-- Feb 28, 2013 7:17:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=1, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200092 +; + +-- Feb 28, 2013 7:17:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=1, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200111 +; + +-- Feb 28, 2013 7:17:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=1, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200113 +; + +-- Feb 28, 2013 7:17:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200100 +; + +-- Feb 28, 2013 7:17:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200099 +; + +-- Feb 28, 2013 7:17:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200098 +; + +-- Feb 28, 2013 7:17:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200097 +; + +-- Feb 28, 2013 7:17:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200096 +; + +-- Feb 28, 2013 7:17:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200095 +; + +-- Feb 28, 2013 7:17:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:17:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200094 +; + +-- Feb 28, 2013 7:18:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsNextLine='Y', BelowColumn=10, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:18:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200108 +; + +-- Feb 28, 2013 7:18:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=11, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:18:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200094 +; + +-- Feb 28, 2013 7:18:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=12, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:18:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200095 +; + +-- Feb 28, 2013 7:18:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=13, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:18:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200096 +; + +-- Feb 28, 2013 7:18:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=14, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:18:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200097 +; + +-- Feb 28, 2013 7:18:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=15, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:18:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200098 +; + +-- Feb 28, 2013 7:18:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=16, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:18:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200099 +; + +-- Feb 28, 2013 7:18:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, BelowColumn=17, SortNo=0,Updated=TO_TIMESTAMP('2013-02-28 19:18:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200100 +; + +-- Feb 28, 2013 7:18:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, YPosition=0, MaxWidth=180,Updated=TO_TIMESTAMP('2013-02-28 19:18:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200086 +; + +-- Feb 28, 2013 7:18:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, MaxWidth=64,Updated=TO_TIMESTAMP('2013-02-28 19:18:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200122 +; + +-- Feb 28, 2013 7:19:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsFixedWidth='Y', SortNo=0, MaxWidth=24,Updated=TO_TIMESTAMP('2013-02-28 19:19:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200117 +; + +-- Feb 28, 2013 7:19:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_TIMESTAMP('2013-02-28 19:19:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200089 +; + +-- Feb 28, 2013 7:19:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_TIMESTAMP('2013-02-28 19:19:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200090 +; + +-- Feb 28, 2013 7:19:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_TIMESTAMP('2013-02-28 19:19:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200091 +; + +-- Feb 28, 2013 7:19:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_TIMESTAMP('2013-02-28 19:19:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200092 +; + +-- Feb 28, 2013 7:19:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_TIMESTAMP('2013-02-28 19:19:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200111 +; + +-- Feb 28, 2013 7:19:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_TIMESTAMP('2013-02-28 19:19:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200113 +; + +-- Feb 28, 2013 7:19:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_TIMESTAMP('2013-02-28 19:19:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200122 +; + +-- Feb 28, 2013 7:19:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_TIMESTAMP('2013-02-28 19:19:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200117 +; + +CREATE OR REPLACE FUNCTION asu_get1099bucket ( + p_cbpartner_id IN numeric, + p_cut_date IN timestamp with time zone, + p_bucket IN numeric +) + RETURNS numeric +AS +$BODY$ +DECLARE + tmpvar numeric; +/****************************************************************************** + NAME: asu_get1099bucket + PURPOSE: + + REVISIONS: + Ver Date Author Description + --------- ---------- --------------- ------------------------------------ + 1.0 04/01/2008 Carlos Ruiz 1. Created this function. + +******************************************************************************/ +BEGIN + SELECT SUM ( (NVL (linenetamt, 0) + NVL (taxamt, 0)) + * DECODE + (docbasetype, + 'API', 1, + 'APC', -1, + 0 + ) -- +API->AP Invoice / -APC->AP Credit Memo + ) + INTO tmpvar + FROM C_INVOICE i, C_INVOICELINE il, ASU_1099BOX b, C_DOCTYPE dt + WHERE i.c_invoice_id = il.c_invoice_id + AND i.issotrx = 'N' + AND il.asu_1099box_id = b.asu_1099box_id + AND i.dateacct BETWEEN TRUNC (p_cut_date, 'YEAR') AND p_cut_date + AND c_bpartner_id = p_cbpartner_id + AND b.bucket = p_bucket + AND i.c_doctype_id = dt.c_doctype_id + AND i.docstatus IN ('CO', 'CL'); + + RETURN tmpvar; +END; +$BODY$ + LANGUAGE plpgsql VOLATILE + COST 100; + +SELECT register_migration_script('201303041619_TICKET-1001763_1099Extract.sql') FROM dual +; \ No newline at end of file diff --git a/migration/i1.0a-release/postgresql/201303041621_TICKET-1001763_BankRegister.sql b/migration/i1.0a-release/postgresql/201303041621_TICKET-1001763_BankRegister.sql new file mode 100644 index 0000000000..3768d17f68 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201303041621_TICKET-1001763_BankRegister.sql @@ -0,0 +1,1202 @@ +-- Mar 1, 2013 12:13:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','4',0,200070,'N','N','N','D','L','056ac053-9bfe-418e-b853-c5bc786bb13d','Y','Y','T_BankRegister','Bank Register',0,'Y',0,TO_TIMESTAMP('2013-03-01 12:13:23','YYYY-MM-DD HH24:MI:SS'),100,100,TO_TIMESTAMP('2013-03-01 12:13:23','YYYY-MM-DD HH24:MI:SS')) +; + +-- Mar 1, 2013 12:13:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200070 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Mar 1, 2013 12:13:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200065,'0fa01ed9-afaa-495b-bfad-0b07a31c5ef1','Table T_BankRegister','T_BankRegister',1,0,0,TO_TIMESTAMP('2013-03-01 12:13:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 12:13:27','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +-- Mar 1, 2013 12:14:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208705,'D','Y','N','N','N',22,'N',19,129,'N',102,'N','Y','d8581197-a7d9-4b73-87b8-eb9d9e13412d','N','AD_Client_ID','Client/Tenant for this installation.','@#AD_Client_ID@','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',100,TO_TIMESTAMP('2013-03-01 12:13:59','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:13:59','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208705 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208706,'D','Y','N','N','N',22,'N',19,104,'N',113,'N','Y','fcc8b867-b51d-443d-8547-5c23c16d49b3','N','AD_Org_ID','Organizational entity within client','@#AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',100,TO_TIMESTAMP('2013-03-01 12:14:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:14:01','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208706 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('T_BankRegister_ID',202252,'D','Bank Register','Bank Register','73b6821f-cacd-4b95-8989-fdd4db810c18',0,TO_TIMESTAMP('2013-03-01 12:14:02','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 12:14:02','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 12:14:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202252 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 12:14:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208707,'D','Y','N','N','N',22,'N',13,'Y',202252,'N','Y','380a9f61-f43d-47d9-ba43-c363c3bd7190','N','T_BankRegister_ID','Bank Register','N',100,TO_TIMESTAMP('2013-03-01 12:14:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:14:02','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208707 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('T_BankRegister_UU',202253,'D','T_BankRegister_UU','T_BankRegister_UU','dd68c280-981a-47fa-9d3f-e1bda934a2f7',0,TO_TIMESTAMP('2013-03-01 12:14:04','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 12:14:04','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 12:14:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202253 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 12:14:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1.00,'N',200070,208708,'D','N','N','N','N',36,'N',10,'N',202253,'N','Y','3f3a42a2-2ad2-4756-afcd-2993c96e7987','Y','T_BankRegister_UU','T_BankRegister_UU','N',100,TO_TIMESTAMP('2013-03-01 12:14:04','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:14:04','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208708 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208709,'D','Y','N','N','N',7,'N',16,'N',245,'N','Y','a1b905d6-7cd8-4ed0-8a59-3ec5d3d35b58','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',100,TO_TIMESTAMP('2013-03-01 12:14:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:14:05','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208709 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208710,'D',110,'Y','N','N','N',22,'N',18,'N',246,'N','Y','d1335a32-f622-4024-a68e-6e641b241f62','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',100,TO_TIMESTAMP('2013-03-01 12:14:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:14:06','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208710 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208711,'D','N','N','N','N',255,'Y',10,'N',275,'N','Y','d1490e91-db2d-49c9-8cd8-1297bed95ac5','Y','Description','Optional short description of the record','A description is limited to 255 characters.','Description','Y',100,TO_TIMESTAMP('2013-03-01 12:14:07','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:14:07','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208711 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208712,'D','Y','N','N','N',1,'N',20,'N',348,'N','Y','94491fa5-7db6-4dec-b314-a9688bee7448','Y','IsActive','The record is active in the system','Y','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.','Active','N',100,TO_TIMESTAMP('2013-03-01 12:14:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:14:08','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208712 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208713,'D','Y','N','Y',1,'N',60,'Y',10,'N',469,'N','Y','b564aaea-00f3-4e95-8b54-92fc429773fa','Y','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.','Name','Y',100,TO_TIMESTAMP('2013-03-01 12:14:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:14:09','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208713 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208714,'D','Y','N','N','N',7,'N',16,'N',607,'N','Y','f48e0d0d-f6b6-4480-9c9f-d0c23b0c444f','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',100,TO_TIMESTAMP('2013-03-01 12:14:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:14:09','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208714 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:14:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (1,'N',200070,208715,'D',110,'Y','N','N','N',22,'N',18,'N',608,'N','Y','0d92d81c-275b-4a41-850e-9cc0de1fcb6e','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',100,TO_TIMESTAMP('2013-03-01 12:14:10','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:14:10','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 1, 2013 12:14:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208715 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:15:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208709 +; + +-- Mar 1, 2013 12:15:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208709 +; + +-- Mar 1, 2013 12:15:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208710 +; + +-- Mar 1, 2013 12:15:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208710 +; + +-- Mar 1, 2013 12:15:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208711 +; + +-- Mar 1, 2013 12:15:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208711 +; + +-- Mar 1, 2013 12:15:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208712 +; + +-- Mar 1, 2013 12:15:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208712 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208713 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208713 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208707 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208707 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208708 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208708 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208714 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208714 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=208715 +; + +-- Mar 1, 2013 12:15:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Column WHERE AD_Column_ID=208715 +; + +-- Mar 1, 2013 12:16:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208716,'D','N','N','N',0,'N',255,'N',10,'N',53376,'N','Y','e49931b5-c130-4b1f-a8be-e565ea53bd02','Y','Account','Account','Y',100,TO_TIMESTAMP('2013-03-01 12:16:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:16:06','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:16:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208716 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:16:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208717,'D','Y','N','N',0,'N',10,'N',19,'N',114,'N','Y','b9c60eff-b0e6-4a78-80f8-df80af14022b','Y','AD_PInstance_ID','Instance of the process','Process Instance','Y',100,TO_TIMESTAMP('2013-03-01 12:16:56','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:16:56','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:16:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208717 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:17:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208718,'D','N','N','N',0,'N',14,'N',12,'N',161,'N','Y','a228827f-3770-488c-80e3-1ab73c5734e5','Y','AmtAcctCr','Accounted Credit Amount','The Account Credit Amount indicates the transaction amount converted to this organization''s accounting currency','Accounted Credit','Y',100,TO_TIMESTAMP('2013-03-01 12:17:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:17:28','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:17:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208718 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:17:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208719,'D','N','N','N',0,'N',14,'N',12,'N',162,'N','Y','bc3f8bdc-d233-4544-a3fc-c8bf0d046e6e','Y','AmtAcctDr','Accounted Debit Amount','The Account Debit Amount indicates the transaction amount converted to this organization''s accounting currency','Accounted Debit','Y',100,TO_TIMESTAMP('2013-03-01 12:17:55','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:17:55','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:17:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208719 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:18:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208720,'D','N','N','N',0,'N',14,'N',22,'N',1986,'N','Y','8ef7f56e-284e-4fc7-91e1-301f759eb235','Y','Balance','Balance','Y',100,TO_TIMESTAMP('2013-03-01 12:18:36','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:18:36','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:18:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208720 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:19:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208721,'D','N','N','N',0,'N',255,'N',10,'N',52002,'N','Y','ed795859-4509-41fa-92c0-fae0c18c3030','Y','BankName','Bank Name','Y',100,TO_TIMESTAMP('2013-03-01 12:19:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:19:08','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:19:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208721 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:19:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('BPartner',202254,'D','Business Partner','Business Partner','c8d7e6c2-0b7c-466d-a99d-9f4597270888',0,TO_TIMESTAMP('2013-03-01 12:19:44','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 12:19:44','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 12:19:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202254 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 12:20:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208722,'D','N','N','N',0,'N',255,'N',10,'N',202254,'N','Y','5e301a06-906c-40f0-8eac-e17b3cdda13a','Y','BPartner','Business Partner','Y',100,TO_TIMESTAMP('2013-03-01 12:20:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:20:05','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:20:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208722 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:20:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208723,'D','N','N','N',0,'N',10,'N',19,'N',835,'N','Y','fe2c8b78-da6b-4092-8339-d52696c932e4','Y','C_Bank_ID','Bank','The Bank is a unique identifier of a Bank for this Organization or for a Business Partner with whom this Organization transacts.','Bank','Y',100,TO_TIMESTAMP('2013-03-01 12:20:38','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:20:38','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:20:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208723 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:21:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208724,'D','N','N','N',0,'N',10,'N',19,'N',187,'N','Y','599f8306-bea2-41ff-984e-d3a438e44122','Y','C_BPartner_ID','Identifies a Business Partner','A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Business Partner ','Y',100,TO_TIMESTAMP('2013-03-01 12:21:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:21:08','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:21:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208724 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:21:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208725,'D','N','N','N',0,'N',7,'N',15,'N',263,'N','Y','f8998d88-9970-48df-9cb1-3d1292a9b4c5','Y','DateAcct','Accounting Date','The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.','Account Date','Y',100,TO_TIMESTAMP('2013-03-01 12:21:32','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:21:32','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:21:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208725 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:22:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',200070,208726,'D','N','N','N',0,'N',255,'N',10,'N',290,'N','Y','69152f34-2da2-4cc0-862f-7c4189e77d8f','Y','DocumentNo','Document sequence number of the document','The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". + +If the document type of your document has no automatic document sequence defined, the field is empty if you create a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Document No','Y',100,TO_TIMESTAMP('2013-03-01 12:22:11','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 12:22:11','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 12:22:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208726 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 12:26:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +CREATE TABLE T_BankRegister (Account VARCHAR(255) DEFAULT NULL , AD_Client_ID NUMERIC(10) NOT NULL, AD_Org_ID NUMERIC(10) NOT NULL, AD_PInstance_ID NUMERIC(10) NOT NULL, AmtAcctCr NUMERIC DEFAULT NULL , AmtAcctDr NUMERIC DEFAULT NULL , Balance NUMERIC DEFAULT NULL , BankName VARCHAR(255) DEFAULT NULL , BPartner VARCHAR(255) DEFAULT NULL , C_Bank_ID NUMERIC(10) DEFAULT NULL , C_BPartner_ID NUMERIC(10) DEFAULT NULL , DateAcct TIMESTAMP DEFAULT NULL , DocumentNo VARCHAR(255) DEFAULT NULL ) +; + +-- Mar 1, 2013 12:27:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormat (CreateCopy,IsForm,IsDefault,AD_PrintFormat_ID,IsStandardHeaderFooter,AD_PrintPaper_ID,AD_PrintColor_ID,AD_PrintTableFormat_ID,IsTableBased,AD_Table_ID,HeaderMargin,AD_PrintFont_ID,AD_PrintFormat_UU,FooterMargin,Name,Updated,CreatedBy,Created,UpdatedBy,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('N','N','N',200003,'Y',100,100,100,'Y',200070,0,130,'ae17352f-3b58-4771-837a-40f87d88c0ca',0,'Bank Register Report',TO_TIMESTAMP('2013-03-01 12:27:10','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 12:27:10','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',0) +; + +-- Mar 1, 2013 12:27:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintPaper_ID=100, AD_PrintColor_ID=100, AD_Table_ID=200070, AD_PrintFont_ID=130, Name='Bank Register_2',Updated=TO_TIMESTAMP('2013-03-01 12:27:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200003 +; + +-- Mar 1, 2013 12:27:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account',0,'N','Y','C',200003,'N',0,'F','N',1,208716,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Account',0,'N','113ed988-6424-4f34-a72c-30d1e340c40e',0,200126,'N',0,TO_TIMESTAMP('2013-03-01 12:27:23','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:27:23','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200126 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208716) WHERE AD_PrintFormatItem_ID = 200126 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208716 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200126) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account Date',0,'N','Y','C',200003,'N',0,'F','N',2,208725,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Acct Date',0,'N','18b91a0a-1335-460b-9cdf-4530451e41ca',0,200127,'N',0,TO_TIMESTAMP('2013-03-01 12:27:25','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:27:25','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200127 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208725) WHERE AD_PrintFormatItem_ID = 200127 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208725 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200127) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Accounted Credit',0,'N','Y','C',200003,'N',0,'F','N',3,208718,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Acct Credit',0,'N','d3b49d5b-c669-4337-adc5-79a8ebc2301d',0,200128,'N',0,TO_TIMESTAMP('2013-03-01 12:27:27','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:27:27','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200128 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208718) WHERE AD_PrintFormatItem_ID = 200128 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208718 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200128) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Accounted Debit',0,'N','Y','C',200003,'N',0,'F','N',4,208719,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Acct Debit',0,'N','208fb750-11ec-4190-b718-e93d1c8061e5',0,200129,'N',0,TO_TIMESTAMP('2013-03-01 12:27:28','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:27:28','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200129 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208719) WHERE AD_PrintFormatItem_ID = 200129 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208719 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200129) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Balance',0,'N','Y','C',200003,'N',0,'F','N',5,208720,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Balance',0,'N','2e94bab6-2aeb-40f0-92d7-a884411cdb9f',0,200130,'N',0,TO_TIMESTAMP('2013-03-01 12:27:29','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:27:29','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200130 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208720) WHERE AD_PrintFormatItem_ID = 200130 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208720 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200130) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Bank',0,'N','Y','C',200003,'N',0,'F','N',6,208723,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Bank',0,'N','141eccb4-5315-4762-bd58-b4a5fdb48e74',0,200131,'N',0,TO_TIMESTAMP('2013-03-01 12:27:30','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:27:30','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200131 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208723) WHERE AD_PrintFormatItem_ID = 200131 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208723 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200131) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Bank Name',0,'N','Y','C',200003,'N',0,'F','N',7,208721,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Bank Name',0,'N','fc869b0c-2dab-4ac6-aed7-121ca9b62cad',0,200132,'N',0,TO_TIMESTAMP('2013-03-01 12:27:30','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:27:30','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200132 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208721) WHERE AD_PrintFormatItem_ID = 200132 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208721 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200132) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Business Partner',0,'N','Y','C',200003,'N',0,'F','N',8,208722,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Business Partner',0,'N','2ad953c8-379a-4d99-9bae-b50c09b3499e',0,200133,'N',0,TO_TIMESTAMP('2013-03-01 12:27:31','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:27:31','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200133 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208722) WHERE AD_PrintFormatItem_ID = 200133 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208722 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200133) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Business Partner ',0,'N','Y','C',200003,'N',0,'F','N',9,208724,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Business Partner ',0,'N','860444b7-8b81-432e-b6d8-cfdaa6ce70bf',0,200134,'N',0,TO_TIMESTAMP('2013-03-01 12:27:32','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:27:32','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200134 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208724) WHERE AD_PrintFormatItem_ID = 200134 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208724 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200134) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Document No',0,'N','Y','C',200003,'N',0,'F','N',10,208726,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Document No',0,'N','ad917736-2b40-4ae6-90a8-4f782c9d1930',0,200135,'N',0,TO_TIMESTAMP('2013-03-01 12:27:33','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:27:33','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200135 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208726) WHERE AD_PrintFormatItem_ID = 200135 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208726 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200135) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Process Instance',0,'N','Y','C',200003,'N',0,'F','N',11,208717,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Process Instance',0,'N','78a7220b-696f-4551-9418-642636ff89c2',0,200136,'N',0,TO_TIMESTAMP('2013-03-01 12:27:34','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:27:34','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200136 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208717) WHERE AD_PrintFormatItem_ID = 200136 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208717 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200136) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Client',0,'N','N','C',200003,'N',0,'F','N',0,208705,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Client',0,'N','f8bdb97d-daa7-4e33-9876-436d55127902',0,200137,'N',0,TO_TIMESTAMP('2013-03-01 12:27:34','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:27:34','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200137 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208705) WHERE AD_PrintFormatItem_ID = 200137 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208705 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200137) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Organization',0,'N','N','C',200003,'N',0,'F','N',0,208706,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Organization',0,'N','3fed5bed-5483-4587-8317-8611da138896',0,200138,'N',0,TO_TIMESTAMP('2013-03-01 12:27:35','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:27:35','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 12:27:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200138 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:27:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208706) WHERE AD_PrintFormatItem_ID = 200138 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208706 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200138) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:27:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET Name='Bank Register Report',Updated=TO_TIMESTAMP('2013-03-01 12:27:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200003 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200126 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200131 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200136 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=10,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200132 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=20,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200133 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200134 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200135 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200127 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=60,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200128 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=70,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200129 +; + +-- Mar 1, 2013 12:28:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=80,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200130 +; + +-- Mar 1, 2013 12:28:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200134 +; + +-- Mar 1, 2013 12:28:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200135 +; + +-- Mar 1, 2013 12:28:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200127 +; + +-- Mar 1, 2013 12:28:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200128 +; + +-- Mar 1, 2013 12:28:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=60,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200129 +; + +-- Mar 1, 2013 12:28:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=70,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200130 +; + +-- Mar 1, 2013 12:29:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SortNo=10,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=200127 +; + +-- Mar 1, 2013 12:29:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SortNo=20,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=200135 +; + +-- Mar 1, 2013 12:29:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, MaxWidth=144,Updated=TO_TIMESTAMP('2013-03-01 12:29:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200133 +; + +-- Mar 1, 2013 12:29:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, YPosition=0, MaxWidth=108,Updated=TO_TIMESTAMP('2013-03-01 12:29:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200135 +; + +-- Mar 1, 2013 12:29:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSummarized='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-03-01 12:29:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200130 +; + +-- Mar 1, 2013 12:29:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSummarized='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-03-01 12:29:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200129 +; + +-- Mar 1, 2013 12:30:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSummarized='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-03-01 12:30:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200128 +; + +-- Mar 1, 2013 12:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_ReportView (AD_ReportView_UU,AD_Table_ID,AD_ReportView_ID,EntityType,Name,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Org_ID,IsActive) VALUES ('863599ca-4cb8-4e07-b76e-db54f4ed5a8d',200070,200001,'D','T_BankRegister',0,TO_TIMESTAMP('2013-03-01 12:31:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 12:31:57','YYYY-MM-DD HH24:MI:SS'),100,0,'Y') +; + +-- Mar 1, 2013 12:33:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormat (CreateCopy,IsForm,IsDefault,AD_PrintFormat_ID,IsStandardHeaderFooter,AD_ReportView_ID,AD_PrintPaper_ID,AD_PrintColor_ID,AD_PrintTableFormat_ID,IsTableBased,AD_Table_ID,HeaderMargin,AD_PrintFont_ID,AD_PrintFormat_UU,FooterMargin,Name,Updated,CreatedBy,Created,UpdatedBy,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('N','N','N',200005,'Y',200001,100,100,100,'Y',200070,0,130,'b94fc032-5fd2-44e8-a425-d1a141bf685c',0,'Bank Register Report 2',TO_TIMESTAMP('2013-03-01 12:33:44','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 12:33:44','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',0) +; + +-- Mar 1, 2013 12:33:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET CreateCopy='N', IsForm='N', IsDefault='N', IsStandardHeaderFooter='Y', AD_PrintPaper_ID=100, AD_PrintColor_ID=100, AD_PrintTableFormat_ID=100, IsTableBased='Y', AD_Table_ID=200070, HeaderMargin=0, AD_PrintFont_ID=130, FooterMargin=0, Name='Bank Register Report &Copy Record 42',Updated=TO_TIMESTAMP('2013-03-01 12:33:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200005 +; + +-- Mar 1, 2013 12:33:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Organization',0,'N','N','C',200005,'N',0,'F','N',0,208706,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Organization',0,'N','ef9c141e-8d3d-43a7-8b53-2c067733137c',0,200139,'N',0,TO_TIMESTAMP('2013-03-01 12:33:54','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:33:54','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:33:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200139 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:33:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208706) WHERE AD_PrintFormatItem_ID = 200139 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208706 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200139) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:33:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Client',0,'N','N','C',200005,'N',0,'F','N',0,208705,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Client',0,'N','d3964417-c89f-480f-94b8-ff16526175f3',0,200140,'N',0,TO_TIMESTAMP('2013-03-01 12:33:55','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:33:55','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:33:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200140 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:33:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208705) WHERE AD_PrintFormatItem_ID = 200140 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208705 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200140) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Process Instance',0,'N','N','C',200005,'N',0,'F','N',0,208717,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Process Instance',0,'N','28f3334d-99bd-49b8-9686-1c6520b5c6ee',0,200141,'N',0,TO_TIMESTAMP('2013-03-01 12:33:56','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:33:56','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200141 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208717) WHERE AD_PrintFormatItem_ID = 200141 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208717 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200141) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Business Partner ',0,'N','N','C',200005,'N',0,'F','N',0,208724,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Business Partner ',0,'N','b7ba8149-8503-45d0-8d9f-0bc0bf462551',0,200142,'N',0,TO_TIMESTAMP('2013-03-01 12:33:57','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:33:57','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200142 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:33:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208724) WHERE AD_PrintFormatItem_ID = 200142 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208724 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200142) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Bank',0,'N','N','C',200005,'N',0,'F','N',0,208723,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Bank',0,'N','ea6c446a-99ff-436c-a78c-aecc28721c33',0,200143,'N',0,TO_TIMESTAMP('2013-03-01 12:33:57','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:33:57','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200143 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:33:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208723) WHERE AD_PrintFormatItem_ID = 200143 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208723 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200143) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:33:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Account',0,'N','N','C',200005,'N',0,'F','N',0,208716,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Account',0,'N','d77d51c3-ae0a-47a3-b2e8-39b6aec5c74c',0,200144,'N',0,TO_TIMESTAMP('2013-03-01 12:33:58','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:33:58','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200144 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208716) WHERE AD_PrintFormatItem_ID = 200144 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208716 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200144) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Bank Name',0,'N','Y','C',200005,'N',0,'F','N',10,208721,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Bank Name',0,'N','84424a2f-f767-4a62-b508-c604f5ec8d66',0,200145,'N',0,TO_TIMESTAMP('2013-03-01 12:34:01','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:34:01','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200145 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208721) WHERE AD_PrintFormatItem_ID = 200145 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208721 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200145) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Business Partner',0,'N','Y','C',200005,'N',0,'F','N',20,208722,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Business Partner',0,'N','01e59d1e-abf6-4f49-8166-c5930874d34f',0,200146,'N',144,TO_TIMESTAMP('2013-03-01 12:34:01','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:34:01','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200146 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208722) WHERE AD_PrintFormatItem_ID = 200146 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208722 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200146) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Document No',0,'Y','Y','C',200005,'N',0,'F','N',30,208726,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Document No',20,'N','46ead6ea-1925-43ac-8b06-dc8862e32dc4',0,200147,'N',108,TO_TIMESTAMP('2013-03-01 12:34:02','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:34:02','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200147 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208726) WHERE AD_PrintFormatItem_ID = 200147 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208726 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200147) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Account Date',0,'Y','Y','C',200005,'N',0,'F','N',40,208725,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','N','Acct Date',10,'N','1d6d09e4-47fa-4cf8-8e18-37daae4d7639',0,200148,'N',0,TO_TIMESTAMP('2013-03-01 12:34:03','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:34:03','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200148 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208725) WHERE AD_PrintFormatItem_ID = 200148 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208725 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200148) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Accounted Credit',0,'N','Y','C',200005,'N',0,'F','N',50,208718,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','Y','N','N','N','N','Acct Credit',0,'N','ff6dd747-7092-4e40-8744-22fc45c46576',0,200149,'N',0,TO_TIMESTAMP('2013-03-01 12:34:04','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:34:04','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200149 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208718) WHERE AD_PrintFormatItem_ID = 200149 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208718 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200149) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Accounted Debit',0,'N','Y','C',200005,'N',0,'F','N',60,208719,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','Y','N','N','N','N','Acct Debit',0,'N','195446d9-ff37-4bb4-add8-0922748608da',0,200150,'N',0,TO_TIMESTAMP('2013-03-01 12:34:04','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:34:04','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200150 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208719) WHERE AD_PrintFormatItem_ID = 200150 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208719 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200150) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsSuppressRepeats,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive,IsDesc) VALUES ('Balance',0,'N','Y','C',200005,'N',0,'F','N',70,208720,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','Y','N','N','N','N','Balance',0,'N','810c3421-ed5f-4d64-8583-f9b2e7024112',0,200151,'N',0,TO_TIMESTAMP('2013-03-01 12:34:05','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 12:34:05','YYYY-MM-DD HH24:MI:SS'),0,'Y','N') +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200151 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208720) WHERE AD_PrintFormatItem_ID = 200151 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208720 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200151) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName="old".PrintName,PrintNameSuffix="old".PrintNameSuffix,IsTranslated="old".IsTranslated FROM AD_PrintFormatItem_Trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND "old".AD_PrintFormatItem_ID =200138 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID=200139 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND AD_PrintFormatItem_ID =200138) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName="old".PrintName,PrintNameSuffix="old".PrintNameSuffix,IsTranslated="old".IsTranslated FROM AD_PrintFormatItem_Trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND "old".AD_PrintFormatItem_ID =200137 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID=200140 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND AD_PrintFormatItem_ID =200137) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName="old".PrintName,PrintNameSuffix="old".PrintNameSuffix,IsTranslated="old".IsTranslated FROM AD_PrintFormatItem_Trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND "old".AD_PrintFormatItem_ID =200136 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID=200141 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND AD_PrintFormatItem_ID =200136) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName="old".PrintName,PrintNameSuffix="old".PrintNameSuffix,IsTranslated="old".IsTranslated FROM AD_PrintFormatItem_Trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND "old".AD_PrintFormatItem_ID =200134 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID=200142 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND AD_PrintFormatItem_ID =200134) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName="old".PrintName,PrintNameSuffix="old".PrintNameSuffix,IsTranslated="old".IsTranslated FROM AD_PrintFormatItem_Trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND "old".AD_PrintFormatItem_ID =200131 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID=200143 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND AD_PrintFormatItem_ID =200131) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName="old".PrintName,PrintNameSuffix="old".PrintNameSuffix,IsTranslated="old".IsTranslated FROM AD_PrintFormatItem_Trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND "old".AD_PrintFormatItem_ID =200126 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID=200144 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND AD_PrintFormatItem_ID =200126) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName="old".PrintName,PrintNameSuffix="old".PrintNameSuffix,IsTranslated="old".IsTranslated FROM AD_PrintFormatItem_Trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND "old".AD_PrintFormatItem_ID =200132 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID=200145 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND AD_PrintFormatItem_ID =200132) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName="old".PrintName,PrintNameSuffix="old".PrintNameSuffix,IsTranslated="old".IsTranslated FROM AD_PrintFormatItem_Trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND "old".AD_PrintFormatItem_ID =200133 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID=200146 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND AD_PrintFormatItem_ID =200133) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName="old".PrintName,PrintNameSuffix="old".PrintNameSuffix,IsTranslated="old".IsTranslated FROM AD_PrintFormatItem_Trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND "old".AD_PrintFormatItem_ID =200135 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID=200147 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND AD_PrintFormatItem_ID =200135) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName="old".PrintName,PrintNameSuffix="old".PrintNameSuffix,IsTranslated="old".IsTranslated FROM AD_PrintFormatItem_Trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND "old".AD_PrintFormatItem_ID =200127 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID=200148 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND AD_PrintFormatItem_ID =200127) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName="old".PrintName,PrintNameSuffix="old".PrintNameSuffix,IsTranslated="old".IsTranslated FROM AD_PrintFormatItem_Trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND "old".AD_PrintFormatItem_ID =200128 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID=200149 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND AD_PrintFormatItem_ID =200128) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName="old".PrintName,PrintNameSuffix="old".PrintNameSuffix,IsTranslated="old".IsTranslated FROM AD_PrintFormatItem_Trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND "old".AD_PrintFormatItem_ID =200129 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID=200150 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND AD_PrintFormatItem_ID =200129) +; + +-- Mar 1, 2013 12:34:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName="old".PrintName,PrintNameSuffix="old".PrintNameSuffix,IsTranslated="old".IsTranslated FROM AD_PrintFormatItem_Trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND "old".AD_PrintFormatItem_ID =200130 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID=200151 AND EXISTS (SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem_trl "old" WHERE "old".AD_Language=AD_PrintFormatItem_Trl.AD_Language AND AD_PrintFormatItem_ID =200130) +; + +-- Mar 1, 2013 12:34:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_PrintFormat WHERE AD_PrintFormat_ID=200003 +; + +-- Mar 1, 2013 12:34:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET Name='Bank Register Report',Updated=TO_TIMESTAMP('2013-03-01 12:34:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200005 +; + +-- Mar 1, 2013 12:35:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process (CopyFromProcess,AD_Process_ID,IsDirectPrint,AD_ReportView_ID,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Classname,Name,Value,AD_Org_ID,AD_Client_ID,Created,Updated,UpdatedBy,IsActive,CreatedBy) VALUES ('N',200035,'N',200001,'Y','860657cd-af9b-4c98-9f96-3909deba4f54','1','N','N',0,0,'Y','D','org.compiere.report.BankRegister','Bank Register Report','BankRegister',0,0,TO_TIMESTAMP('2013-03-01 12:35:38','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 12:35:38','YYYY-MM-DD HH24:MI:SS'),100,'Y',100) +; + +-- Mar 1, 2013 12:35:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200035 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) +; + +-- Mar 1, 2013 12:36:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',835,200052,'c3d74841-8b65-42e4-9fbf-19f56c5ca316','The Bank is a unique identifier of a Bank for this Organization or for a Business Partner with whom this Organization transacts.',200035,19,'Y','D','Bank','C_Bank_ID','Bank',0,'Y',10,'Y',100,TO_TIMESTAMP('2013-03-01 12:36:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 12:36:09','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 12:36:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200052 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 12:37:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,DefaultValue,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',263,200053,'87de0151-1900-47dc-b22a-5be1ceba19d4','The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.',200035,15,'N','D','Account Date','DateAcct','Accounting Date',0,'Y',20,'SELECT StartDate FROM C_Period WHERE C_Year_ID IN (SELECT p.C_Year_ID FROM AD_ClientInfo c INNER JOIN C_Year y ON (c.C_Calendar_ID=y.C_Calendar_ID) INNER JOIN C_Period p ON (y.C_Year_ID=p.C_Year_ID) WHERE c.AD_Client_ID=@#AD_Client_ID@ AND getdate() BETWEEN StartDate AND EndDate) AND IsActive=''Y'' AND PeriodType=''S'' AND periodNo = 1','Y',100,TO_TIMESTAMP('2013-03-01 12:37:11','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 12:37:11','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 12:37:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200053 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 12:37:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',187,200054,'989c092f-6384-488b-bfd3-b040cb114a10','A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson',200035,30,'N','D','Business Partner ','C_BPartner_ID','Identifies a Business Partner',0,'Y',30,'Y',100,TO_TIMESTAMP('2013-03-01 12:37:37','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 12:37:37','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 12:37:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200054 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 12:38:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,AD_Menu_UU,IsCentrallyMaintained,Name,"action",IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200043,'N','N','N',200035,'D','37e1bf78-0c58-4cc3-80ba-8c2d8dcf5e17','Y','Bank Register Report','R','Y',0,100,TO_TIMESTAMP('2013-03-01 12:38:31','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-03-01 12:38:31','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Mar 1, 2013 12:38:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200043 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + +-- Mar 1, 2013 12:38:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +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', CURRENT_TIMESTAMP, 100, CURRENT_TIMESTAMP, 100,t.AD_Tree_ID, 200043, 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=200043) +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=241 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=288 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=432 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=243 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=413 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=538 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=462 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=505 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200023 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=235 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=511 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=245 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=251 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=246 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=509 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=510 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=496 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=497 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=304 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=255 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=286 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=287 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=438 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=234 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200035 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=244 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53313 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53314 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53190 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200043 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=30, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200041 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200042 +; + +-- Mar 1, 2013 12:38:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=32, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53187 +; + +SELECT register_migration_script('201303041621_TICKET-1001763_BankRegister.sql') FROM dual +; \ No newline at end of file diff --git a/migration/i1.0a-release/postgresql/201303041623_TICKET-1001763_ProductWhereUsed.sql b/migration/i1.0a-release/postgresql/201303041623_TICKET-1001763_ProductWhereUsed.sql new file mode 100644 index 0000000000..7e11fd6632 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201303041623_TICKET-1001763_ProductWhereUsed.sql @@ -0,0 +1,732 @@ +CREATE OR REPLACE VIEW RV_M_Product_WhereUsed_V AS + SELECT bom.ad_client_id, bom.ad_org_id, p2.m_product_id, p2.name AS selectedproductname, + p2.value AS selectedproductvalue, p2.description AS selectedproductdescription, b.pp_product_bom_id, + p.value, p.name, p.description, b.qtybom, b.line + FROM m_product p2 + LEFT JOIN pp_product_bomline b ON p2.m_product_id = b.m_product_id + LEFT JOIN pp_product_bom bom ON b.pp_product_bom_id = bom.pp_product_bom_id + LEFT JOIN m_product p ON bom.m_product_id = p.m_product_id + WHERE p.isactive = 'Y' AND b.isactive = 'Y' AND p2.isactive = 'Y'; + +-- Mar 1, 2013 2:25:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','3',0,200071,'N','Y','N','D','L','d50870a2-be0f-4af1-9e21-f2274ff2013a','Y','N','RV_M_Product_WhereUsed_V','Product/Component Where Used',0,'Y',0,TO_TIMESTAMP('2013-03-01 14:25:28','YYYY-MM-DD HH24:MI:SS'),100,100,TO_TIMESTAMP('2013-03-01 14:25:28','YYYY-MM-DD HH24:MI:SS')) +; + +-- Mar 1, 2013 2:25:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200071 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Mar 1, 2013 2:25:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200066,'da1fcf3f-75a0-49a9-8e8e-33bcb0333fa0','Table RV_M_Product_WhereUsed_V','RV_M_Product_WhereUsed_V',1,0,0,TO_TIMESTAMP('2013-03-01 14:25:30','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 14:25:30','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +-- Mar 1, 2013 2:26:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208727,'D','N','N','N','N',10,'N',19,'N',102,'beed4f42-399b-4528-a199-db97d9585a59','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client',100,TO_TIMESTAMP('2013-03-01 14:26:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 14:26:27','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208727 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208728,'D','N','N','N','N',10,'N',19,'N',113,'0e956082-39e0-45b4-b9eb-219d35cadde5','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization',100,TO_TIMESTAMP('2013-03-01 14:26:29','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 14:26:29','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208728 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208729,'D','N','N','N','N',10,'N',19,'N',454,'42d1334e-6e36-4285-9b9f-a22ccd9905f3','N','M_Product_ID','Product, Service, Item','Identifies an item which is either purchased or sold in this organization.','Product',100,TO_TIMESTAMP('2013-03-01 14:26:30','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 14:26:30','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208729 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('selectedproductname',202255,'D','selectedproductname','selectedproductname','6c2e9946-7985-4765-98f1-017e946b3de4',0,TO_TIMESTAMP('2013-03-01 14:26:31','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 14:26:31','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 2:26:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202255 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 2:26:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208730,'D','N','N','N','N',255,'Y',10,'N',202255,'f52dcaac-a25c-45fc-a6e9-9d0fa5d2e475','N','selectedproductname','selectedproductname',100,TO_TIMESTAMP('2013-03-01 14:26:31','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 14:26:31','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208730 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('selectedproductvalue',202256,'D','selectedproductvalue','selectedproductvalue','64c695a5-8338-4451-b5a8-b303916fc72a',0,TO_TIMESTAMP('2013-03-01 14:26:32','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 14:26:32','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 2:26:33 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202256 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 2:26:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208731,'D','N','N','N','N',40,'N',10,'N',202256,'37809389-db8b-41e0-905d-91401de71557','N','selectedproductvalue','selectedproductvalue',100,TO_TIMESTAMP('2013-03-01 14:26:32','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 14:26:32','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:34 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208731 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('selectedproductdescription',202257,'D','selectedproductdescription','selectedproductdescription','884d0a2c-e721-4535-bf53-78219a143a4d',0,TO_TIMESTAMP('2013-03-01 14:26:34','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 14:26:34','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 2:26:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202257 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 2:26:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208732,'D','N','N','N','N',255,'N',10,'N',202257,'11024fa9-4688-4ca1-81e2-4961ca4c3b22','N','selectedproductdescription','selectedproductdescription',100,TO_TIMESTAMP('2013-03-01 14:26:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 14:26:34','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208732 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208733,'D','N','N','N','N',10,'N',19,'N',53245,'9daccb82-ac45-4894-b04d-77513168ea19','N','PP_Product_BOM_ID','BOM & Formula','BOM & Formula',100,TO_TIMESTAMP('2013-03-01 14:26:36','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 14:26:36','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208733 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208734,'D','N','N','N','N',40,'Y',10,'N',620,'a739c739-0e76-4b61-839c-3655e62b448a','N','Value','Search key for the record in the format required - must be unique','A search key allows you a fast method of finding a particular record. +If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Search Key',100,TO_TIMESTAMP('2013-03-01 14:26:37','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 14:26:37','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208734 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208735,'D','N','N','Y',1,'N',255,'Y',10,'N',469,'780d73f6-fc81-45e6-82d5-9c0aeeeb657d','N','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.','Name',100,TO_TIMESTAMP('2013-03-01 14:26:38','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 14:26:38','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208735 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208736,'D','N','N','N','N',255,'Y',10,'N',275,'e677d5fe-e1e8-4719-b08d-4425e4164312','N','Description','Optional short description of the record','A description is limited to 255 characters.','Description',100,TO_TIMESTAMP('2013-03-01 14:26:39','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 14:26:39','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208736 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208737,'D','N','N','N','N',131089,'N',29,'N',53255,'13304a67-8a49-410e-ba53-c85e8640a379','N','QtyBOM','Indicate the Quantity use in this BOM','Exist two way the add a compenent to a BOM or Formula: + +1.- Adding a Component based in quantity to use in this BOM +2.- Adding a Component based in % to use the Order Quantity of Manufacturing Order in this Formula. +','Quantity',100,TO_TIMESTAMP('2013-03-01 14:26:40','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 14:26:40','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208737 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:26:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200071,208738,'D','N','N','N','N',10,'N',11,'N',439,'6e074fb9-0ead-4932-a046-5ede903e9781','N','Line','Unique line for this document','Indicates the unique line for a document. It will also control the display order of the lines within a document.','Line No',100,TO_TIMESTAMP('2013-03-01 14:26:40','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 14:26:40','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 2:26:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208738 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 2:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='SelectedProductDescription', Name='Selected Product Description', PrintName='Selected Product Description',Updated=TO_TIMESTAMP('2013-03-01 14:27:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202257 +; + +-- Mar 1, 2013 2:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202257 +; + +-- Mar 1, 2013 2:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='SelectedProductDescription', Name='Selected Product Description', Description=NULL, Help=NULL WHERE AD_Element_ID=202257 +; + +-- Mar 1, 2013 2:27:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='SelectedProductDescription', Name='Selected Product Description', Description=NULL, Help=NULL, AD_Element_ID=202257 WHERE UPPER(ColumnName)='SELECTEDPRODUCTDESCRIPTION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 2:27:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='SelectedProductDescription', Name='Selected Product Description', Description=NULL, Help=NULL WHERE AD_Element_ID=202257 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:27:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='SelectedProductDescription', Name='Selected Product Description', Description=NULL, Help=NULL WHERE AD_Element_ID=202257 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:27:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Selected Product Description', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202257) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:27:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Selected Product Description', Name='Selected Product Description' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202257) +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='SelectedProductName', Name='Selected Product Name', PrintName='Selected Product Name',Updated=TO_TIMESTAMP('2013-03-01 14:27:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202255 +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202255 +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='SelectedProductName', Name='Selected Product Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202255 +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='SelectedProductName', Name='Selected Product Name', Description=NULL, Help=NULL, AD_Element_ID=202255 WHERE UPPER(ColumnName)='SELECTEDPRODUCTNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='SelectedProductName', Name='Selected Product Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202255 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='SelectedProductName', Name='Selected Product Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202255 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Selected Product Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202255) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:27:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Selected Product Name', Name='Selected Product Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202255) +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='SelectedProductValue', Name='Selected Product Value', PrintName='Selected Product Value',Updated=TO_TIMESTAMP('2013-03-01 14:28:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202256 +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202256 +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='SelectedProductValue', Name='Selected Product Value', Description=NULL, Help=NULL WHERE AD_Element_ID=202256 +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='SelectedProductValue', Name='Selected Product Value', Description=NULL, Help=NULL, AD_Element_ID=202256 WHERE UPPER(ColumnName)='SELECTEDPRODUCTVALUE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='SelectedProductValue', Name='Selected Product Value', Description=NULL, Help=NULL WHERE AD_Element_ID=202256 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='SelectedProductValue', Name='Selected Product Value', Description=NULL, Help=NULL WHERE AD_Element_ID=202256 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Selected Product Value', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202256) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 2:28:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Selected Product Value', Name='Selected Product Value' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202256) +; + +-- Mar 1, 2013 2:29:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_ReportView (AD_ReportView_UU,AD_Table_ID,AD_ReportView_ID,EntityType,Name,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Org_ID,IsActive) VALUES ('d9136825-2589-4001-b4bd-e6df2df8ff78',200071,200002,'D','RV_M_Product_WhereUsed_V',0,TO_TIMESTAMP('2013-03-01 14:29:24','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 14:29:24','YYYY-MM-DD HH24:MI:SS'),100,0,'Y') +; + +-- Mar 1, 2013 2:30:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process (CopyFromProcess,Help,AD_Process_ID,IsDirectPrint,AD_ReportView_ID,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Description,Name,Value,AD_Org_ID,AD_Client_ID,Created,Updated,UpdatedBy,IsActive,CreatedBy) VALUES ('N','Enter a product/component below, and the system will check for BOM(s) that contain that product/component. This report is non-recursive. In other words, it will only show one parent level above the product/component.',200036,'N',200002,'Y','7f338cc6-05cc-42ba-8bf7-56051b4e7971','3','N','N',0,0,'Y','D','Product/Component Where Used','Product/Component Where Used','RV_M_Product_WhereUsed_V',0,0,TO_TIMESTAMP('2013-03-01 14:30:39','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 14:30:39','YYYY-MM-DD HH24:MI:SS'),100,'Y',100) +; + +-- Mar 1, 2013 2:30:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200036 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) +; + +-- Mar 1, 2013 2:31:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',454,200055,'89347a17-13c7-4705-88ad-502c19658f45','Identifies an item which is either purchased or sold in this organization.',200036,30,'Y','D','Product','M_Product_ID','Product, Service, Item',0,'Y',10,'Y',100,TO_TIMESTAMP('2013-03-01 14:31:19','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 14:31:19','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 2:31:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200055 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 2:31:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET Help=NULL, Description='Please enter the product (component) you wish to search for', IsCentrallyMaintained='N',Updated=TO_TIMESTAMP('2013-03-01 14:31:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200055 +; + +-- Mar 1, 2013 2:31:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=200055 +; + +-- Mar 1, 2013 2:34:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,AD_Menu_UU,IsCentrallyMaintained,Name,Description,"action",IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200044,'N','N','N',200036,'D','61d17885-f1e3-4600-bf7c-f66decb23e8d','Y','Product/Component Where Used',NULL,'R','Y',0,100,TO_TIMESTAMP('2013-03-01 14:34:20','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-03-01 14:34:20','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Mar 1, 2013 2:34:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200044 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + +-- Mar 1, 2013 2:34:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +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', CURRENT_TIMESTAMP, 100, CURRENT_TIMESTAMP, 100,t.AD_Tree_ID, 200044, 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=200044) +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=268 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=125 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=422 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=107 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=130 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=188 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=227 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=381 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=126 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=421 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=534 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200044 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=267 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=490 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=132 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=310 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=16, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200032 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=17, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200033 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=18, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200029 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=19, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=128 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=20, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=585 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=21, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=187 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=22, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53210 +; + +-- Mar 1, 2013 2:34:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=167, SeqNo=23, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53211 +; + +-- Mar 1, 2013 2:39:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormat (CreateCopy,IsForm,IsDefault,AD_PrintFormat_ID,IsStandardHeaderFooter,AD_ReportView_ID,AD_PrintPaper_ID,AD_PrintColor_ID,AD_PrintTableFormat_ID,IsTableBased,AD_Table_ID,HeaderMargin,AD_PrintFont_ID,AD_PrintFormat_UU,FooterMargin,Name,Updated,CreatedBy,Created,UpdatedBy,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('N','N','N',200006,'Y',200002,100,100,100,'Y',200071,0,130,'eb357ba2-5e77-4da2-919d-db942619249c',0,'Product/Component Where Used',TO_TIMESTAMP('2013-03-01 14:38:59','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 14:38:59','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',0) +; + +-- Mar 1, 2013 2:39:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintPaper_ID=100, AD_PrintColor_ID=100, AD_Table_ID=200071, AD_PrintFont_ID=130, Name='RV_M_Product_WhereUsed_V_2',Updated=TO_TIMESTAMP('2013-03-01 14:39:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200006 +; + +-- Mar 1, 2013 2:39:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Name',0,'Y','Y','C',200006,'N',0,'F','N',1,208735,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Name',1,'N','8f730ef8-fcf9-43b4-8635-5ade4f48fb60',0,200152,'N',0,TO_TIMESTAMP('2013-03-01 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 14:39:12','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200152 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208735) WHERE AD_PrintFormatItem_ID = 200152 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208735 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200152) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BOM & Formula',0,'N','Y','C',200006,'N',0,'F','N',2,208733,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BOM & Formula',0,'N','a5ba879b-3be9-4a68-8b77-8a1cc83031e6',0,200153,'N',0,TO_TIMESTAMP('2013-03-01 14:39:15','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 14:39:15','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200153 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208733) WHERE AD_PrintFormatItem_ID = 200153 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208733 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200153) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Client',0,'N','N','C',200006,'N',0,'F','N',0,208727,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Client',0,'N','e92f4a2c-aa33-43c4-8986-f0bb8a6b7fe8',0,200154,'N',0,TO_TIMESTAMP('2013-03-01 14:39:16','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 14:39:16','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200154 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208727) WHERE AD_PrintFormatItem_ID = 200154 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208727 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200154) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Description',0,'N','Y','C',200006,'N',0,'F','N',4,208736,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Description',0,'N','ee989c86-9bd1-46a4-9230-5498215b5879',0,200155,'N',0,TO_TIMESTAMP('2013-03-01 14:39:17','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 14:39:17','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200155 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208736) WHERE AD_PrintFormatItem_ID = 200155 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208736 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200155) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Line No',0,'N','Y','C',200006,'N',0,'F','N',5,208738,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Line No',0,'N','dc49bf58-92fd-4c98-a84c-a2e374641148',0,200156,'N',0,TO_TIMESTAMP('2013-03-01 14:39:18','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 14:39:18','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200156 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208738) WHERE AD_PrintFormatItem_ID = 200156 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208738 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200156) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Organization',0,'N','N','C',200006,'N',0,'F','N',0,208728,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Organization',0,'N','0e671bf6-703a-4210-9586-201a390232e4',0,200157,'N',0,TO_TIMESTAMP('2013-03-01 14:39:19','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 14:39:19','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200157 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208728) WHERE AD_PrintFormatItem_ID = 200157 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208728 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200157) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Product',0,'N','Y','C',200006,'N',0,'F','N',7,208729,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Product',0,'N','b906826a-0f2b-440f-94ba-3161fbc6ad2d',0,200158,'N',0,TO_TIMESTAMP('2013-03-01 14:39:20','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 14:39:20','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200158 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208729) WHERE AD_PrintFormatItem_ID = 200158 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208729 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200158) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Quantity',0,'N','Y','C',200006,'N',0,'F','N',8,208737,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Quantity',0,'N','ddf1e9e8-af92-4b78-a631-c3ac9b7862d9',0,200159,'N',0,TO_TIMESTAMP('2013-03-01 14:39:21','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 14:39:21','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200159 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208737) WHERE AD_PrintFormatItem_ID = 200159 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208737 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200159) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Search Key',0,'N','Y','C',200006,'N',0,'F','N',9,208734,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Search Key',0,'N','b7d011c9-46ad-4f70-a6e3-3806516c950c',0,200160,'N',0,TO_TIMESTAMP('2013-03-01 14:39:22','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 14:39:22','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200160 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208734) WHERE AD_PrintFormatItem_ID = 200160 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208734 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200160) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Selected Product Description',0,'N','Y','C',200006,'N',0,'F','N',10,208732,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Selected Product Description',0,'N','db5849db-c725-4d6e-9a89-7b12f26a2dfb',0,200161,'N',0,TO_TIMESTAMP('2013-03-01 14:39:23','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 14:39:23','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200161 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208732) WHERE AD_PrintFormatItem_ID = 200161 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208732 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200161) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Selected Product Name',0,'N','Y','C',200006,'N',0,'F','N',11,208730,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Selected Product Name',0,'N','01726c2f-2aaa-45aa-ba40-78a4853752b0',0,200162,'N',0,TO_TIMESTAMP('2013-03-01 14:39:23','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 14:39:23','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200162 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208730) WHERE AD_PrintFormatItem_ID = 200162 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208730 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200162) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:39:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Selected Product Value',0,'N','Y','C',200006,'N',0,'F','N',12,208731,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Selected Product Value',0,'N','b6f59bad-6aff-4137-8d5d-d9323042ee2c',0,200163,'N',0,TO_TIMESTAMP('2013-03-01 14:39:24','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 14:39:24','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 2:39:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200163 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 2:39:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208731) WHERE AD_PrintFormatItem_ID = 200163 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208731 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200163) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200155 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200160 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200161 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200162 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200163 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=10,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200158 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=20,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200153 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200152 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200159 +; + +-- Mar 1, 2013 2:40:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200156 +; + +-- Mar 1, 2013 2:40:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET Name='Master BOM', XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsCentrallyMaintained='N', PrintName='Master BOM', SortNo=0,Updated=TO_TIMESTAMP('2013-03-01 14:40:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200153 +; + +-- Mar 1, 2013 2:40:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET IsTranslated='N' WHERE AD_PrintFormatItem_ID=200153 +; + +-- Mar 1, 2013 2:41:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, SortNo=0, IsHeightOneLine='Y',Updated=TO_TIMESTAMP('2013-03-01 14:41:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200153 +; + +-- Mar 1, 2013 2:41:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET Name='Product/Component Where Used',Updated=TO_TIMESTAMP('2013-03-01 14:41:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200006 +; + +SELECT register_migration_script('201303041623_TICKET-1001763_ProductWhereUsed.sql') FROM dual +; \ No newline at end of file diff --git a/migration/i1.0a-release/postgresql/201303041624_TICKET-1001763_FactView.sql b/migration/i1.0a-release/postgresql/201303041624_TICKET-1001763_FactView.sql new file mode 100644 index 0000000000..61bc1f9990 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201303041624_TICKET-1001763_FactView.sql @@ -0,0 +1,4172 @@ +-- Mar 1, 2013 4:52:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('FY_StartDate',202258,'D','Financial Year Start Date','Financial Year Start Date','612dd5a3-8a96-41a6-95e6-5425d13fa9dd',0,TO_TIMESTAMP('2013-03-01 16:52:22','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 16:52:22','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 4:52:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202258 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 4:52:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,IsSyncDatabase,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',227,208739,'D','N','N','N',0,'N',7,'N',15,'N',202258,'N','Y','9ed9f064-33ce-4c0e-a45e-ca905291ca42','Y','FY_StartDate','Financial Year Start Date','Y',100,TO_TIMESTAMP('2013-03-01 16:52:50','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 16:52:50','YYYY-MM-DD HH24:MI:SS'),100,0,0,'N','N','N') +; + +-- Mar 1, 2013 4:52:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208739 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 4:52:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +ALTER TABLE AD_ClientInfo ADD COLUMN FY_StartDate TIMESTAMP DEFAULT NULL +; + +CREATE OR REPLACE VIEW rv_fact_simple AS + SELECT rv_fact_acct.ad_client_id, rv_fact_acct.ad_org_id, rv_fact_acct.isactive, rv_fact_acct.created, rv_fact_acct.createdby, + rv_fact_acct.updated, rv_fact_acct.updatedby, rv_fact_acct.c_project_id, rv_fact_acct.c_acctschema_id, rv_fact_acct.account_id, + rv_fact_acct.accountvalue, rv_fact_acct.accounttype, rv_fact_acct.dateacct, to_char(rv_fact_acct.dateacct, 'YYYY-MM') AS finyear_mth, + sum(rv_fact_acct.amtacctdr - rv_fact_acct.amtacctcr) AS amtacct, to_char(rv_fact_acct.dateacct, '"FY"YYYY') AS finyear, + CASE rv_fact_acct.accounttype + WHEN 'A' THEN 'B' + WHEN 'E' THEN 'P' + WHEN 'L' THEN 'B' + WHEN 'M' THEN 'B' + WHEN 'O' THEN 'B' + WHEN 'R' THEN 'P' + ELSE '9. Unknown' + END AS "case" + FROM rv_fact_acct + WHERE rv_fact_acct.postingtype = 'A' + GROUP BY rv_fact_acct.ad_client_id, rv_fact_acct.ad_org_id, rv_fact_acct.isactive, rv_fact_acct.created, + rv_fact_acct.createdby, rv_fact_acct.updated, rv_fact_acct.updatedby, rv_fact_acct.c_project_id, + rv_fact_acct.c_acctschema_id, rv_fact_acct.account_id, rv_fact_acct.accountvalue, rv_fact_acct.accounttype, + rv_fact_acct.dateacct, rv_fact_acct.amtacct; + +CREATE OR REPLACE VIEW rv_fact_adaxa AS + SELECT f.ad_client_id, f.ad_org_id, ( SELECT cli.name + FROM ad_client cli + WHERE cli.ad_client_id = f.ad_client_id) AS clientname, f.dateacct, + CASE + WHEN f.dateacct < (( SELECT clinfo.fy_startdate + FROM ad_clientinfo clinfo + WHERE clinfo.ad_client_id = f.ad_client_id)) THEN (( SELECT clinfo.fy_startdate - 1 + FROM ad_clientinfo clinfo + WHERE clinfo.ad_client_id = f.ad_client_id)) + ELSE f.dateacct + END AS bsdate, + CASE + WHEN f.dateacct < (( SELECT clinfo.fy_startdate + FROM ad_clientinfo clinfo + WHERE clinfo.ad_client_id = f.ad_client_id)) THEN ( SELECT to_char((clinfo.fy_startdate - 1), 'YYYY-MM') AS to_char + FROM ad_clientinfo clinfo + WHERE clinfo.ad_client_id = f.ad_client_id) + ELSE to_char(f.dateacct, 'YYYY-MM') + END AS bsmth, to_char((f.dateacct + 184), '"FY"YYYY') AS fyear, to_char(f.dateacct, 'YYYY-MM') AS fymth, ( SELECT t.name + FROM ad_table t + WHERE t.ad_table_id = f.ad_table_id) AS table_name, f.record_id, ( SELECT gl.name + FROM gl_budget gl + WHERE gl.gl_budget_id = f.gl_budget_id) AS budname, ( SELECT tax.name + FROM c_tax tax + WHERE tax.c_tax_id = f.c_tax_id) AS taxname, + CASE f.postingtype + WHEN 'A' THEN 'Actual' + WHEN 'B' THEN 'Budget' + WHEN 'E' THEN 'Encumbrance' + WHEN 'S' THEN 'Statistic' + ELSE 'Other' + END AS act_bud, ( SELECT c.iso_code + FROM c_currency c + WHERE c.c_currency_id = f.c_currency_id) AS currency, f.amtsourcedr - f.amtsourcecr AS amtsce, f.amtacctdr - f.amtacctcr AS amtacct, + CASE + WHEN f.postingtype = 'B' THEN 0 + ELSE f.amtacctcr - f.amtacctdr + END AS "pl$act", + CASE + WHEN f.postingtype = 'B' THEN 0 + WHEN ev.accounttype = 'A' THEN f.amtacctdr - f.amtacctcr + WHEN ev.accounttype = 'L' THEN f.amtacctdr - f.amtacctcr + WHEN ev.accounttype = 'O' THEN f.amtacctcr - f.amtacctdr + WHEN ev.accounttype = 'E' THEN f.amtacctcr - f.amtacctdr + WHEN ev.accounttype = 'R' THEN f.amtacctcr - f.amtacctdr + ELSE 0 + END AS "bs$act", + CASE + WHEN f.postingtype = 'A' THEN 0 + WHEN ev.accounttype = 'E' THEN f.amtacctcr - f.amtacctdr + WHEN ev.accounttype = 'R' THEN f.amtacctcr - f.amtacctdr + ELSE 0 + END AS "pl$bud", ( SELECT um.uomsymbol + FROM c_uom um + WHERE um.c_uom_id = f.c_uom_id) AS uomname, f.qty, ( SELECT prj.name + FROM c_project prj + WHERE prj.c_project_id = f.c_project_id) AS projectname, f.description, o.name AS orgname, ev.value AS ac_code, ev.name AS ac_name, (ev.value || '-' || ev.name) AS account_name, + CASE ev.accounttype + WHEN 'A' THEN '1 Asset' + WHEN 'E' THEN '3 Equity' + WHEN 'L' THEN '2 Liability' + WHEN 'M' THEN '9 Memo' + WHEN 'O' THEN '3 Equity' + WHEN 'R' THEN '3 Equity' + ELSE '9. Unknown' + END AS bstypename, + CASE ev.accounttype + WHEN 'A' THEN '9 BSheet' + WHEN 'E' THEN '6 Expense' + WHEN 'L' THEN '9 BSheet' + WHEN 'M' THEN '9 Memo' + WHEN 'O' THEN '9 BSheet' + WHEN 'R' THEN '4 Revenue' + ELSE '9. Unknown' + END AS pltypename, ( SELECT (ss.value || '-') || ss.name + FROM c_elementvalue ss + WHERE ss.value = substr(ev.value, 1, 1) AND ss.issummary = 'Y' AND ss.ad_client_id = f.ad_client_id) AS ac_group, + CASE ev.accounttype + WHEN 'A' THEN (( SELECT (ss.value || '-') || ss.name + FROM c_elementvalue ss + WHERE ss.value = substr(ev.value, 1, 3) AND ss.issummary = 'Y' AND ss.ad_client_id = f.ad_client_id)) + WHEN 'E' THEN '330-Current P and L Accounts Balance' + WHEN 'L' THEN (( SELECT (ss.value || '-') || ss.name + FROM c_elementvalue ss + WHERE ss.value = substr(ev.value, 1, 3) AND ss.issummary = 'Y' AND ss.ad_client_id = f.ad_client_id)) + WHEN 'O' THEN (( SELECT (ss.value || '-') || ss.name + FROM c_elementvalue ss + WHERE ss.value = substr(ev.value, 1, 3) AND ss.issummary = 'Y' AND ss.ad_client_id = f.ad_client_id)) + WHEN 'R' THEN '330-Current P and L Accounts Balance' + ELSE 'Unknown Account Type' + END AS bsgroup, + CASE ev.accounttype + WHEN 'A' THEN '999-Balance Sheet Item' + WHEN 'E' THEN (( SELECT (ss.value || '-') || ss.name + FROM c_elementvalue ss + WHERE ss.value = substr(ev.value, 1, 3) AND ss.issummary = 'Y' AND ss.ad_client_id = f.ad_client_id)) + WHEN 'L' THEN '999-Balance Sheet Item' + WHEN 'O' THEN '999-Balance Sheet Item' + WHEN 'R' THEN (( SELECT (ss.value || '-') || ss.name + FROM c_elementvalue ss + WHERE ss.value = substr(ev.value, 1, 3) AND ss.issummary = 'Y' AND ss.ad_client_id = f.ad_client_id)) + ELSE 'Unknown Account Type' + END AS plgroup, + CASE ev.accounttype + WHEN 'A' THEN 'BS' + WHEN 'E' THEN 'PL' + WHEN 'L' THEN 'BS' + WHEN 'M' THEN 'Unknown Account Type' + WHEN 'O' THEN 'BS' + WHEN 'R' THEN 'PL' + ELSE 'Unknown Account Type' + END AS plbs, + CASE ev.accounttype + WHEN 'A' THEN '1 NetAssets' + WHEN 'E' THEN '2 Equity' + WHEN 'L' THEN '1 NetAssets' + WHEN 'M' THEN '9 Memo' + WHEN 'O' THEN '2 Equity' + WHEN 'R' THEN '2 Equity' + ELSE 'Unknown Account Type' + END AS na_eq, bp.value AS bpcode, bp.name AS bpname, + CASE + WHEN bp.name IS NULL THEN NULL + ELSE (bp.value || '-') || bp.name + END AS bpartnercodeandname, ( SELECT bpg.name + FROM c_bp_group bpg + WHERE bpg.c_bp_group_id = bp.c_bp_group_id) AS bpgroupname, ( SELECT ad_user.name + FROM ad_user + WHERE ad_user.ad_user_id = bp.salesrep_id) AS repname, p.value AS prodcode, p.name AS prodname, + CASE + WHEN p.name IS NULL THEN NULL + ELSE (p.value || '-') || p.name + END AS product, ( SELECT pc.name + FROM m_product_category pc + WHERE pc.m_product_category_id = p.m_product_category_id) AS prodcategory + FROM fact_acct f + JOIN ad_org o ON f.ad_org_id = o.ad_org_id + JOIN c_elementvalue ev ON f.account_id = ev.c_elementvalue_id + LEFT JOIN c_bpartner bp ON f.c_bpartner_id = bp.c_bpartner_id + LEFT JOIN m_product p ON f.m_product_id = p.m_product_id; +-- Mar 1, 2013 5:49:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','3',0,200072,'N','Y','N','D','L','014cfa42-6fad-47d9-bc06-d29272245190','Y','N','RV_Fact_Simple','Simple Fact View',0,'Y',0,TO_TIMESTAMP('2013-03-01 17:49:50','YYYY-MM-DD HH24:MI:SS'),100,100,TO_TIMESTAMP('2013-03-01 17:49:50','YYYY-MM-DD HH24:MI:SS')) +; + +-- Mar 1, 2013 5:49:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200072 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Mar 1, 2013 5:49:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200067,'abffb14b-035f-417e-b52f-cb88cb1cc618','Table RV_Fact_Simple','RV_Fact_Simple',1,0,0,TO_TIMESTAMP('2013-03-01 17:49:52','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 17:49:52','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +-- Mar 1, 2013 5:50:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208740,'D','N','N','N','N',10,'N',19,'N',102,'f4c1919e-a53d-4331-9b3c-ab8dc2fbbce2','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client',100,TO_TIMESTAMP('2013-03-01 17:50:15','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:15','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208740 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208741,'D','N','N','N','N',10,'N',19,'N',113,'a7f82948-9a2f-4fe2-b1de-0ca369be3a0c','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization',100,TO_TIMESTAMP('2013-03-01 17:50:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:16','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208741 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208742,'D','N','N','N','N',1,'N',20,'N',348,'bbe13fe3-5da8-40d9-884b-f4c8350f5d97','N','IsActive','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.','Active',100,TO_TIMESTAMP('2013-03-01 17:50:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:17','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208742 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208743,'D','N','N','N','N',29,'N',16,'N',245,'31221c75-a25c-4adc-97f0-8c8c1bb05085','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created',100,TO_TIMESTAMP('2013-03-01 17:50:18','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:18','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208743 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208744,'D',110,'N','N','N','N',10,'N',18,'N',246,'a34c09cd-d0d0-4236-afc4-0624c9279044','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By',100,TO_TIMESTAMP('2013-03-01 17:50:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:19','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208744 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208745,'D','N','N','N','N',29,'N',16,'N',607,'8bfc9fb6-a62f-49dd-829f-e70208801b63','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated',100,TO_TIMESTAMP('2013-03-01 17:50:20','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:20','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208745 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208746,'D',110,'N','N','N','N',10,'N',18,'N',608,'543ec7b2-91df-4a2b-b098-5b136aed4b7d','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By',100,TO_TIMESTAMP('2013-03-01 17:50:20','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:20','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208746 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208747,'D','N','N','N','N',10,'N',19,'N',208,'8a6bd0f3-649b-4fa7-9ad8-55eca9f51901','N','C_Project_ID','Financial Project','A Project allows you to track and control internal or external activities.','Project',100,TO_TIMESTAMP('2013-03-01 17:50:21','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:21','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208747 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208748,'D','N','N','N','N',10,'N',19,'N',181,'68ed5b73-5293-49fe-880e-e1c08098be02','N','C_AcctSchema_ID','Rules for accounting','An Accounting Schema defines the rules used in accounting such as costing method, currency and calendar','Accounting Schema',100,TO_TIMESTAMP('2013-03-01 17:50:22','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:22','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208748 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208749,'D','N','N','N','N',10,'N',19,'N',148,'2b668ab1-d97a-4916-ac35-086fdd5bbc27','N','Account_ID','Account used','The (natural) account used','Account',100,TO_TIMESTAMP('2013-03-01 17:50:23','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:23','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208749 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208750,'D','N','N','N','N',40,'N',10,'N',2083,'037feec7-316f-4850-a395-93311cdee2e5','N','AccountValue','Key of Account Element','Account Key',100,TO_TIMESTAMP('2013-03-01 17:50:23','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:23','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208750 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208751,'D','N','N','N','N',1,'N',20,'N',147,'37dfde49-731e-4819-ab18-10cc674b4a81','N','AccountType','Indicates the type of account','Valid account types are A - Asset, E - Expense, L - Liability, O- Owner''s Equity, R -Revenue and M- Memo. The account type is used to determine what taxes, if any are applicable, validating payables and receivables for business partners. Note: Memo account amounts are ignored when checking for balancing','Account Type',100,TO_TIMESTAMP('2013-03-01 17:50:24','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:24','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208751 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208752,'D','N','N','N','N',29,'N',16,'N',263,'a4a5e8a5-3844-4f19-8125-1947e07e9167','N','DateAcct','Accounting Date','The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.','Account Date',100,TO_TIMESTAMP('2013-03-01 17:50:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:25','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208752 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('finyear_mth',202259,'D','finyear_mth','finyear_mth','99474de4-31c0-4e16-afe9-cec9c35048b8',0,TO_TIMESTAMP('2013-03-01 17:50:26','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:50:26','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:50:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202259 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:50:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208753,'D','N','N','N','N',2147483647,'N',14,'N',202259,'a42a8cba-2511-4feb-97cf-1cbc378ecedf','N','finyear_mth','finyear_mth',100,TO_TIMESTAMP('2013-03-01 17:50:26','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:26','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208753 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208754,'D','N','N','N','N',131089,'N',12,'N',2342,'115482bc-4605-4f61-9988-39aff47f9858','N','AmtAcct','Amount Balance in Currency of Accounting Schema','Accounted Amount',100,TO_TIMESTAMP('2013-03-01 17:50:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:28','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208754 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('finyear',202260,'D','finyear','finyear','9a93b6bf-ed03-4ad9-be6f-67f28b4745a3',0,TO_TIMESTAMP('2013-03-01 17:50:28','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:50:28','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:50:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202260 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:50:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208755,'D','N','N','N','N',2147483647,'N',14,'N',202260,'256480ea-8832-4c39-b078-2e6ae8e66642','N','finyear','finyear',100,TO_TIMESTAMP('2013-03-01 17:50:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:28','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208755 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:50:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('case',202261,'D','case','case','78f255f0-926d-46e9-b2f8-6d2b70e4ab29',0,TO_TIMESTAMP('2013-03-01 17:50:30','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:50:30','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:50:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202261 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:50:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200072,208756,'D','N','N','N','N',2147483647,'N',14,'N',202261,'7831762a-7166-40c4-9bd0-e037839cb3a3','N','case','case',100,TO_TIMESTAMP('2013-03-01 17:50:30','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:50:30','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:50:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208756 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:51:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Case', Name='Case', PrintName='Case',Updated=TO_TIMESTAMP('2013-03-01 17:51:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202261 +; + +-- Mar 1, 2013 5:51:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202261 +; + +-- Mar 1, 2013 5:51:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Case', Name='Case', Description=NULL, Help=NULL WHERE AD_Element_ID=202261 +; + +-- Mar 1, 2013 5:51:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Case', Name='Case', Description=NULL, Help=NULL, AD_Element_ID=202261 WHERE UPPER(ColumnName)='CASE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 5:51:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Case', Name='Case', Description=NULL, Help=NULL WHERE AD_Element_ID=202261 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Case', Name='Case', Description=NULL, Help=NULL WHERE AD_Element_ID=202261 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Case', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202261) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Case', Name='Case' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202261) +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='FinYear', Name='Financial Year', PrintName='Financial Year',Updated=TO_TIMESTAMP('2013-03-01 17:51:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202260 +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202260 +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='FinYear', Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Element_ID=202260 +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FinYear', Name='Financial Year', Description=NULL, Help=NULL, AD_Element_ID=202260 WHERE UPPER(ColumnName)='FINYEAR' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FinYear', Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Element_ID=202260 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='FinYear', Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Element_ID=202260 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202260) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Financial Year', Name='Financial Year' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202260) +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='FinYear_Mth', Name='Financial Year (Month)', PrintName='Financial Year (Month)',Updated=TO_TIMESTAMP('2013-03-01 17:51:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202259 +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202259 +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='FinYear_Mth', Name='Financial Year (Month)', Description=NULL, Help=NULL WHERE AD_Element_ID=202259 +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FinYear_Mth', Name='Financial Year (Month)', Description=NULL, Help=NULL, AD_Element_ID=202259 WHERE UPPER(ColumnName)='FINYEAR_MTH' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FinYear_Mth', Name='Financial Year (Month)', Description=NULL, Help=NULL WHERE AD_Element_ID=202259 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='FinYear_Mth', Name='Financial Year (Month)', Description=NULL, Help=NULL WHERE AD_Element_ID=202259 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Financial Year (Month)', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202259) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:51:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Financial Year (Month)', Name='Financial Year (Month)' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202259) +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='Financial Month', PrintName='Financial Month',Updated=TO_TIMESTAMP('2013-03-01 17:54:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202259 +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202259 +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='FinYear_Mth', Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202259 +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FinYear_Mth', Name='Financial Month', Description=NULL, Help=NULL, AD_Element_ID=202259 WHERE UPPER(ColumnName)='FINYEAR_MTH' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FinYear_Mth', Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202259 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='FinYear_Mth', Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202259 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202259) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:54:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Financial Month', Name='Financial Month' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202259) +; + +-- Mar 1, 2013 5:56:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','N','N','3',0,200073,'N','Y','N','D','L','f9e90dd6-dae3-48c9-ad30-b96090e75ab9','Y','N','RV_Fact_Adaxa','Complex Fact View',0,'Y',0,TO_TIMESTAMP('2013-03-01 17:56:25','YYYY-MM-DD HH24:MI:SS'),100,100,TO_TIMESTAMP('2013-03-01 17:56:25','YYYY-MM-DD HH24:MI:SS')) +; + +-- Mar 1, 2013 5:56:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200073 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Mar 1, 2013 5:56:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Sequence (UpdatedBy,StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,IsActive,StartNo) VALUES (100,'N',200000,'Y',1000000,'N','Y',200068,'cb8381dc-04dc-449d-8802-6cad5f6d671a','Table RV_Fact_Adaxa','RV_Fact_Adaxa',1,0,0,TO_TIMESTAMP('2013-03-01 17:56:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 17:56:26','YYYY-MM-DD HH24:MI:SS'),'Y',1000000) +; + +-- Mar 1, 2013 5:56:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208757,'D','N','N','N','N',10,'N',19,'N',102,'be1e7a04-e81e-4c0c-b036-4d7ea990d0e4','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client',100,TO_TIMESTAMP('2013-03-01 17:56:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:34','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208757 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208758,'D','N','N','N','N',10,'N',19,'N',113,'39abf002-ea46-4f9c-9f50-af456b1d1d2c','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization',100,TO_TIMESTAMP('2013-03-01 17:56:35','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:35','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208758 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208759,'D','N','N','N','N',60,'Y',10,'N',200186,'11254560-8d64-4e4b-8435-47db4596ced3','N','clientName','Client in which current session user logged in','Client Name',100,TO_TIMESTAMP('2013-03-01 17:56:36','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:36','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208759 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208760,'D','N','N','N','N',29,'N',16,'N',263,'48f7cad5-9816-4632-bba8-a3310b0e353d','N','DateAcct','Accounting Date','The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.','Account Date',100,TO_TIMESTAMP('2013-03-01 17:56:37','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:37','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:37 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208760 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bsdate',202262,'D','bsdate','bsdate','8141cd46-6711-48b2-a95e-5c21ebba3c29',0,TO_TIMESTAMP('2013-03-01 17:56:37','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:37','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202262 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208761,'D','N','N','N','N',29,'N',16,'N',202262,'89d805e2-b5da-48ea-968d-fcbf8e664ee1','N','bsdate','bsdate',100,TO_TIMESTAMP('2013-03-01 17:56:37','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:37','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208761 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bsmth',202263,'D','bsmth','bsmth','3f632b5e-38bc-4664-8810-b7d667a7ebd1',0,TO_TIMESTAMP('2013-03-01 17:56:39','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:39','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202263 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208762,'D','N','N','N','N',2147483647,'N',14,'N',202263,'6c7286fc-6605-433f-bdba-e07e0070d369','N','bsmth','bsmth',100,TO_TIMESTAMP('2013-03-01 17:56:39','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:39','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208762 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('fyear',202264,'D','fyear','fyear','73767ab0-a2c8-4d3e-8cad-9607b6fc84b3',0,TO_TIMESTAMP('2013-03-01 17:56:40','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:40','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202264 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208763,'D','N','N','N','N',2147483647,'N',14,'N',202264,'dcca0850-c900-40fb-901d-8b840ddd23f8','N','fyear','fyear',100,TO_TIMESTAMP('2013-03-01 17:56:40','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:40','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208763 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('fymth',202265,'D','fymth','fymth','d02f291c-8ad1-413e-b1cf-eb62c982dd48',0,TO_TIMESTAMP('2013-03-01 17:56:42','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:42','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202265 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208764,'D','N','N','N','N',2147483647,'N',14,'N',202265,'653178be-d8cd-4d0b-98a4-c7245e0fbbd4','N','fymth','fymth',100,TO_TIMESTAMP('2013-03-01 17:56:42','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:42','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208764 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('table_name',202266,'D','table_name','table_name','5a9ec751-1e67-4742-b287-6304e92b7373',0,TO_TIMESTAMP('2013-03-01 17:56:43','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:43','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:44 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202266 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208765,'D','N','N','N','N',60,'Y',10,'N',202266,'53ae73ea-6e40-45a2-86c5-6ec779d130a7','N','table_name','table_name',100,TO_TIMESTAMP('2013-03-01 17:56:43','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:43','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208765 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208766,'D','N','N','N','N',10,'N',19,'N',538,'ac181a2d-3ffe-4c48-93ac-9dcd3cb0c38a','N','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.','Record ID',100,TO_TIMESTAMP('2013-03-01 17:56:45','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:45','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:46 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208766 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('budname',202267,'D','budname','budname','aa5546b2-b60e-4a94-bf10-0ebca296d54a',0,TO_TIMESTAMP('2013-03-01 17:56:46','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:46','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202267 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208767,'D','N','N','N','N',60,'Y',10,'N',202267,'85aaf955-733b-419a-a14b-9d96fa10d42e','N','budname','budname',100,TO_TIMESTAMP('2013-03-01 17:56:46','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:46','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:47 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208767 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('taxname',202268,'D','taxname','taxname','5c65c6b8-efd2-4677-9f00-6d78371a0fc5',0,TO_TIMESTAMP('2013-03-01 17:56:47','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:47','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202268 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208768,'D','N','N','N','N',60,'Y',10,'N',202268,'fd238236-d8a3-49ae-b859-e200de3af9f7','N','taxname','taxname',100,TO_TIMESTAMP('2013-03-01 17:56:47','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:47','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208768 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('act_bud',202269,'D','act_bud','act_bud','e9282f1f-acf0-42d9-97a4-8bcf74bcd5f3',0,TO_TIMESTAMP('2013-03-01 17:56:49','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:49','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202269 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208769,'D','N','N','N','N',2147483647,'N',14,'N',202269,'65c6caa2-a705-4df3-84e5-43912964f37c','N','act_bud','act_bud',100,TO_TIMESTAMP('2013-03-01 17:56:49','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:49','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208769 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('currency',202270,'D','currency','currency','261b6c98-a764-46d2-9c4f-bc1030fde7cd',0,TO_TIMESTAMP('2013-03-01 17:56:50','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:50','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202270 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208770,'D','N','N','N','N',3,'N',17,'N',202270,'ca594716-ceeb-42a3-8d71-b25ca4827ed2','N','currency','currency',100,TO_TIMESTAMP('2013-03-01 17:56:50','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:50','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208770 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('amtsce',202271,'D','amtsce','amtsce','c444dd04-3cc8-44e0-9f4f-ede1153fa4c5',0,TO_TIMESTAMP('2013-03-01 17:56:52','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:52','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202271 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208771,'D','N','N','N','N',131089,'N',12,'N',202271,'1f979ed4-f8b5-4785-9a85-1f740f1aa72c','N','amtsce','amtsce',100,TO_TIMESTAMP('2013-03-01 17:56:52','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:52','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208771 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208772,'D','N','N','N','N',131089,'N',12,'N',2342,'d6933daa-e338-43fe-8772-eee08b23dc73','N','AmtAcct','Amount Balance in Currency of Accounting Schema','Accounted Amount',100,TO_TIMESTAMP('2013-03-01 17:56:54','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:54','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208772 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('pl$act',202272,'D','pl$act','pl$act','1ff41f3b-2236-46d6-8361-429767fc27e6',0,TO_TIMESTAMP('2013-03-01 17:56:54','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:54','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202272 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208773,'D','N','N','N','N',131089,'N',22,'N',202272,'53b0890b-7616-4015-b2db-12e48a2f965f','N','pl$act','pl$act',100,TO_TIMESTAMP('2013-03-01 17:56:54','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:54','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208773 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bs$act',202273,'D','bs$act','bs$act','913ca6f4-6259-49e2-9ceb-3ab9a8b45b10',0,TO_TIMESTAMP('2013-03-01 17:56:56','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:56','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202273 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208774,'D','N','N','N','N',131089,'N',22,'N',202273,'7ddd6a28-e2e9-4541-9f34-72980ce06140','N','bs$act','bs$act',100,TO_TIMESTAMP('2013-03-01 17:56:56','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:56','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208774 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('pl$bud',202274,'D','pl$bud','pl$bud','353c6a5e-ced7-4858-9267-e6453cc84783',0,TO_TIMESTAMP('2013-03-01 17:56:57','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:57','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:56:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202274 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:56:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208775,'D','N','N','N','N',131089,'N',22,'N',202274,'aa9ba732-fbf0-4568-a26f-9bba5080bfb2','N','pl$bud','pl$bud',100,TO_TIMESTAMP('2013-03-01 17:56:57','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:57','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:56:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208775 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:56:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('uomname',202275,'D','uomname','uomname','c5e7b626-3aef-4825-a61a-f1e6077e827c',0,TO_TIMESTAMP('2013-03-01 17:56:59','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:56:59','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202275 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208776,'D','N','N','N','N',10,'Y',10,'N',202275,'e9bf0ff9-6e5c-454a-9efb-9d927f7e7ccb','N','uomname','uomname',100,TO_TIMESTAMP('2013-03-01 17:56:59','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:56:59','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208776 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208777,'D','N','N','N','N',131089,'N',29,'N',526,'a2b95e8e-192b-4a65-8554-14e834b6cce5','N','Qty','Quantity','The Quantity indicates the number of a specific product or item for this document.','Quantity',100,TO_TIMESTAMP('2013-03-01 17:57:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:00','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208777 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208778,'D','N','N','N','N',60,'Y',10,'N',2161,'3c52345a-29dd-4a7a-beed-c773ad0a53d8','N','ProjectName','Name of the Project','Project',100,TO_TIMESTAMP('2013-03-01 17:57:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:01','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208778 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208779,'D','N','N','N','N',255,'Y',10,'N',275,'e3290167-ff83-4b62-bfe0-adcac990cb6f','N','Description','Optional short description of the record','A description is limited to 255 characters.','Description',100,TO_TIMESTAMP('2013-03-01 17:57:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:02','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208779 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208780,'D','N','N','N','N',60,'Y',10,'N',2660,'d4c4aec3-5c74-4bfc-a7af-71dd25afc4a9','N','OrgName','Name of the Organization','Organization Name',100,TO_TIMESTAMP('2013-03-01 17:57:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:03','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208780 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ac_code',202276,'D','ac_code','ac_code','800ddcbb-2597-455e-af34-168d05b4a2cc',0,TO_TIMESTAMP('2013-03-01 17:57:03','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:03','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202276 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208781,'D','N','N','N','N',40,'N',10,'N',202276,'131841a7-dc05-4a08-a65a-354769ba9cb9','N','ac_code','ac_code',100,TO_TIMESTAMP('2013-03-01 17:57:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:03','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208781 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ac_name',202277,'D','ac_name','ac_name','d2faa895-2d90-4153-8ae3-1e6357fda78c',0,TO_TIMESTAMP('2013-03-01 17:57:05','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:05','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202277 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208782,'D','N','N','N','N',60,'Y',10,'N',202277,'f29b2713-a2d8-472b-ab89-524066b96d1a','N','ac_name','ac_name',100,TO_TIMESTAMP('2013-03-01 17:57:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:05','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208782 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('account_name',202278,'D','account_name','account_name','49d01eb9-7598-4bd8-9b3e-1aaed4bbd5f4',0,TO_TIMESTAMP('2013-03-01 17:57:06','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:06','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202278 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208783,'D','N','N','N','N',2147483647,'Y',14,'N',202278,'16fc8413-db15-4a04-8225-8f8bba41a3be','N','account_name','account_name',100,TO_TIMESTAMP('2013-03-01 17:57:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:06','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208783 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bstypename',202279,'D','bstypename','bstypename','85a90f7d-bcf8-42c3-903c-085559f72555',0,TO_TIMESTAMP('2013-03-01 17:57:08','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:08','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202279 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208784,'D','N','N','N','N',2147483647,'Y',14,'N',202279,'f8530cf4-5ac9-4e63-aefe-5d5cefc3383f','N','bstypename','bstypename',100,TO_TIMESTAMP('2013-03-01 17:57:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:08','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208784 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('pltypename',202280,'D','pltypename','pltypename','3198a724-906f-48e1-b13e-a9c9cf429bf7',0,TO_TIMESTAMP('2013-03-01 17:57:09','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:09','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202280 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208785,'D','N','N','N','N',2147483647,'Y',14,'N',202280,'52dc9a1c-d49e-4d2d-bff5-263c747fc64d','N','pltypename','pltypename',100,TO_TIMESTAMP('2013-03-01 17:57:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:09','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208785 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ac_group',202281,'D','ac_group','ac_group','efd6a109-e8e9-45e6-865d-610c6492f81b',0,TO_TIMESTAMP('2013-03-01 17:57:11','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:11','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202281 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208786,'D','N','N','N','N',2147483647,'N',14,'N',202281,'93a3cd0b-422a-47f3-99a3-9abc958f142c','N','ac_group','ac_group',100,TO_TIMESTAMP('2013-03-01 17:57:11','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:11','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208786 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bsgroup',202282,'D','bsgroup','bsgroup','bee13042-0c74-4700-a349-6049c13ad827',0,TO_TIMESTAMP('2013-03-01 17:57:12','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:12','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202282 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208787,'D','N','N','N','N',2147483647,'N',14,'N',202282,'3517f418-f223-4dca-971d-88e8dc8412e4','N','bsgroup','bsgroup',100,TO_TIMESTAMP('2013-03-01 17:57:12','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:12','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208787 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('plgroup',202283,'D','plgroup','plgroup','d8a888a1-f31f-43d0-adb9-d61c29b6939b',0,TO_TIMESTAMP('2013-03-01 17:57:14','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:14','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202283 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208788,'D','N','N','N','N',2147483647,'N',14,'N',202283,'38ef8a13-ca36-4ad5-92dc-435082e28c2f','N','plgroup','plgroup',100,TO_TIMESTAMP('2013-03-01 17:57:14','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:14','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208788 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('plbs',202284,'D','plbs','plbs','4910dd99-d985-484c-8622-08b41854b3de',0,TO_TIMESTAMP('2013-03-01 17:57:16','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:16','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202284 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208789,'D','N','N','N','N',2147483647,'N',14,'N',202284,'3e2e48a6-260d-4c61-9777-a09d6068447c','N','plbs','plbs',100,TO_TIMESTAMP('2013-03-01 17:57:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:16','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208789 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('na_eq',202285,'D','na_eq','na_eq','c609a69b-0c00-49f2-9cf8-ad888f76bacf',0,TO_TIMESTAMP('2013-03-01 17:57:17','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:17','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202285 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208790,'D','N','N','N','N',2147483647,'N',14,'N',202285,'a6a7e716-07ac-4bd5-8a1e-1b35fbb01411','N','na_eq','na_eq',100,TO_TIMESTAMP('2013-03-01 17:57:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:17','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208790 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bpcode',202286,'D','bpcode','bpcode','db4fb444-35a1-4c0e-a650-dc8853918a44',0,TO_TIMESTAMP('2013-03-01 17:57:19','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:19','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202286 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208791,'D','N','N','N','N',40,'N',10,'N',202286,'5ecae4db-1cae-4d2c-8bcf-d4e00333096b','N','bpcode','bpcode',100,TO_TIMESTAMP('2013-03-01 17:57:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:19','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208791 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208792,'D','N','N','N','N',60,'Y',10,'N',2510,'cdae90e8-dec9-483d-b1a0-c9ce9aec322b','N','BPName','BP Name',100,TO_TIMESTAMP('2013-03-01 17:57:20','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:20','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208792 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bpartnercodeandname',202287,'D','bpartnercodeandname','bpartnercodeandname','9f207660-56d7-435c-add0-d9ea6074ddbd',0,TO_TIMESTAMP('2013-03-01 17:57:21','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:21','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202287 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208793,'D','N','N','N','N',2147483647,'Y',14,'N',202287,'2affae11-41ec-4888-b1a3-0d0a92ec5aac','N','bpartnercodeandname','bpartnercodeandname',100,TO_TIMESTAMP('2013-03-01 17:57:21','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:21','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208793 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('bpgroupname',202288,'D','bpgroupname','bpgroupname','f46d9f14-3d04-4fb8-b374-54510b798f8c',0,TO_TIMESTAMP('2013-03-01 17:57:22','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:22','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202288 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208794,'D','N','N','N','N',60,'Y',10,'N',202288,'fcc31714-fd70-46f1-aad2-77fdb1f4fe71','N','bpgroupname','bpgroupname',100,TO_TIMESTAMP('2013-03-01 17:57:22','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:22','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208794 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('repname',202289,'D','repname','repname','026c01fa-3fee-4187-ba7c-d0c4f7eeb179',0,TO_TIMESTAMP('2013-03-01 17:57:24','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:24','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202289 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208795,'D','N','N','N','N',60,'Y',10,'N',202289,'388e75fc-debe-4736-8f5c-60283a10e702','N','repname','repname',100,TO_TIMESTAMP('2013-03-01 17:57:24','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:24','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208795 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('prodcode',202290,'D','prodcode','prodcode','dd1227b5-583e-4e38-9360-b86ffbfa78fe',0,TO_TIMESTAMP('2013-03-01 17:57:25','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:25','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202290 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208796,'D','N','N','N','N',40,'N',10,'N',202290,'30a7aa37-c1dd-4d93-8230-24e5ffc53c99','N','prodcode','prodcode',100,TO_TIMESTAMP('2013-03-01 17:57:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:25','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:27 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208796 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('prodname',202291,'D','prodname','prodname','e081670e-44fc-4857-a3e9-781a03d99843',0,TO_TIMESTAMP('2013-03-01 17:57:27','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:27','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202291 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208797,'D','N','N','N','N',255,'Y',10,'N',202291,'d27bb1d0-4144-496b-8257-d443f5146fd3','N','prodname','prodname',100,TO_TIMESTAMP('2013-03-01 17:57:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:27','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208797 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208798,'D','N','N','N','N',2147483647,'N',14,'N',1417,'4c7a77dc-4876-4d37-9280-c22aa2beb240','N','Product','Product',100,TO_TIMESTAMP('2013-03-01 17:57:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:28','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208798 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:57:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('prodcategory',202292,'D','prodcategory','prodcategory','4cf9d342-eb9b-411f-8d86-ca2627f93627',0,TO_TIMESTAMP('2013-03-01 17:57:29','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 17:57:29','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Mar 1, 2013 5:57:30 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_PrintName,PO_Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_PrintName,t.PO_Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202292 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Mar 1, 2013 5:57:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsAlwaysUpdateable,IsEncrypted) VALUES (0,200073,208799,'D','N','N','N','N',60,'N',10,'N',202292,'43473408-72fc-4138-95d5-c4adc5665f1b','N','prodcategory','prodcategory',100,TO_TIMESTAMP('2013-03-01 17:57:29','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-01 17:57:29','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') +; + +-- Mar 1, 2013 5:57:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=208799 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='AC_Code', Name='Account Code', PrintName='Account Code',Updated=TO_TIMESTAMP('2013-03-01 17:59:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202276 +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202276 +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AC_Code', Name='Account Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202276 +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Code', Name='Account Code', Description=NULL, Help=NULL, AD_Element_ID=202276 WHERE UPPER(ColumnName)='AC_CODE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Code', Name='Account Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202276 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AC_Code', Name='Account Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202276 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Account Code', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202276) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 5:59:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Account Code', Name='Account Code' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202276) +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='AC_Group', Name='AC Group', PrintName='AC Group',Updated=TO_TIMESTAMP('2013-03-01 18:01:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202281 +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202281 +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AC_Group', Name='AC Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202281 +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Group', Name='AC Group', Description=NULL, Help=NULL, AD_Element_ID=202281 WHERE UPPER(ColumnName)='AC_GROUP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Group', Name='AC Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202281 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AC_Group', Name='AC Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202281 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='AC Group', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202281) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:01:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='AC Group', Name='AC Group' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202281) +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET Name='AC Code', PrintName='AC Code',Updated=TO_TIMESTAMP('2013-03-01 18:01:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202276 +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202276 +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AC_Code', Name='AC Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202276 +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Code', Name='AC Code', Description=NULL, Help=NULL, AD_Element_ID=202276 WHERE UPPER(ColumnName)='AC_CODE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Code', Name='AC Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202276 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AC_Code', Name='AC Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202276 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='AC Code', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202276) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:01:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='AC Code', Name='AC Code' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202276) +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='AC_Name', Name='AC Name', PrintName='AC Name',Updated=TO_TIMESTAMP('2013-03-01 18:02:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202277 +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202277 +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AC_Name', Name='AC Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202277 +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Name', Name='AC Name', Description=NULL, Help=NULL, AD_Element_ID=202277 WHERE UPPER(ColumnName)='AC_NAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AC_Name', Name='AC Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202277 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AC_Name', Name='AC Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202277 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='AC Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202277) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:02:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='AC Name', Name='AC Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202277) +; + +-- Mar 1, 2013 6:02:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Account_Name', Name='Account Name', PrintName='Account Name',Updated=TO_TIMESTAMP('2013-03-01 18:02:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202278 +; + +-- Mar 1, 2013 6:02:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202278 +; + +-- Mar 1, 2013 6:02:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Account_Name', Name='Account Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202278 +; + +-- Mar 1, 2013 6:02:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Account_Name', Name='Account Name', Description=NULL, Help=NULL, AD_Element_ID=202278 WHERE UPPER(ColumnName)='ACCOUNT_NAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:02:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Account_Name', Name='Account Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202278 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:02:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Account_Name', Name='Account Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202278 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:02:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Account Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202278) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:02:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Account Name', Name='Account Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202278) +; + +-- Mar 1, 2013 6:05:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Act_Bud', Name='Posting Type Name', PrintName='Posting Type Name',Updated=TO_TIMESTAMP('2013-03-01 18:05:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202269 +; + +-- Mar 1, 2013 6:05:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202269 +; + +-- Mar 1, 2013 6:05:42 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Act_Bud', Name='Posting Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202269 +; + +-- Mar 1, 2013 6:05:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Act_Bud', Name='Posting Type Name', Description=NULL, Help=NULL, AD_Element_ID=202269 WHERE UPPER(ColumnName)='ACT_BUD' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:05:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Act_Bud', Name='Posting Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202269 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:05:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Act_Bud', Name='Posting Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202269 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:05:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Posting Type Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202269) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:05:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Posting Type Name', Name='Posting Type Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202269) +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='AmtSce', Name='Source Amount', PrintName='Source Amount',Updated=TO_TIMESTAMP('2013-03-01 18:06:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202271 +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202271 +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='AmtSce', Name='Source Amount', Description=NULL, Help=NULL WHERE AD_Element_ID=202271 +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtSce', Name='Source Amount', Description=NULL, Help=NULL, AD_Element_ID=202271 WHERE UPPER(ColumnName)='AMTSCE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='AmtSce', Name='Source Amount', Description=NULL, Help=NULL WHERE AD_Element_ID=202271 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='AmtSce', Name='Source Amount', Description=NULL, Help=NULL WHERE AD_Element_ID=202271 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Source Amount', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202271) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:06:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Source Amount', Name='Source Amount' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202271) +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BPartnerCodeAndName', Name='BP Code and Name', PrintName='BP Code and Name',Updated=TO_TIMESTAMP('2013-03-01 18:07:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202287 +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202287 +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BPartnerCodeAndName', Name='BP Code and Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202287 +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BPartnerCodeAndName', Name='BP Code and Name', Description=NULL, Help=NULL, AD_Element_ID=202287 WHERE UPPER(ColumnName)='BPARTNERCODEANDNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BPartnerCodeAndName', Name='BP Code and Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202287 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BPartnerCodeAndName', Name='BP Code and Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202287 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BP Code and Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202287) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:07:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='BP Code and Name', Name='BP Code and Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202287) +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BPCode', Name='BP Code', PrintName='BP Code',Updated=TO_TIMESTAMP('2013-03-01 18:07:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202286 +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202286 +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BPCode', Name='BP Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202286 +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BPCode', Name='BP Code', Description=NULL, Help=NULL, AD_Element_ID=202286 WHERE UPPER(ColumnName)='BPCODE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BPCode', Name='BP Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202286 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BPCode', Name='BP Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202286 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BP Code', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202286) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:07:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='BP Code', Name='BP Code' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202286) +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BPGroupName', Name='BP Group Name', PrintName='BP Group Name',Updated=TO_TIMESTAMP('2013-03-01 18:08:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202288 +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202288 +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BPGroupName', Name='BP Group Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202288 +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BPGroupName', Name='BP Group Name', Description=NULL, Help=NULL, AD_Element_ID=202288 WHERE UPPER(ColumnName)='BPGROUPNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BPGroupName', Name='BP Group Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202288 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BPGroupName', Name='BP Group Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202288 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BP Group Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202288) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:08:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='BP Group Name', Name='BP Group Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202288) +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BS$ACT', Name='BS$ACT', PrintName='BS$ACT',Updated=TO_TIMESTAMP('2013-03-01 18:08:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202273 +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202273 +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BS$ACT', Name='BS$ACT', Description=NULL, Help=NULL WHERE AD_Element_ID=202273 +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BS$ACT', Name='BS$ACT', Description=NULL, Help=NULL, AD_Element_ID=202273 WHERE UPPER(ColumnName)='BS$ACT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BS$ACT', Name='BS$ACT', Description=NULL, Help=NULL WHERE AD_Element_ID=202273 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BS$ACT', Name='BS$ACT', Description=NULL, Help=NULL WHERE AD_Element_ID=202273 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BS$ACT', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202273) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:08:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='BS$ACT', Name='BS$ACT' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202273) +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BSDate', Name='BS Date', PrintName='BS Date',Updated=TO_TIMESTAMP('2013-03-01 18:09:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202262 +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202262 +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BSDate', Name='BS Date', Description=NULL, Help=NULL WHERE AD_Element_ID=202262 +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSDate', Name='BS Date', Description=NULL, Help=NULL, AD_Element_ID=202262 WHERE UPPER(ColumnName)='BSDATE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSDate', Name='BS Date', Description=NULL, Help=NULL WHERE AD_Element_ID=202262 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BSDate', Name='BS Date', Description=NULL, Help=NULL WHERE AD_Element_ID=202262 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BS Date', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202262) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:09:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='BS Date', Name='BS Date' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202262) +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BSGroup', Name='BS Group', PrintName='BS Group',Updated=TO_TIMESTAMP('2013-03-01 18:10:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202282 +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202282 +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BSGroup', Name='BS Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202282 +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSGroup', Name='BS Group', Description=NULL, Help=NULL, AD_Element_ID=202282 WHERE UPPER(ColumnName)='BSGROUP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSGroup', Name='BS Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202282 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BSGroup', Name='BS Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202282 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BS Group', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202282) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:10:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='BS Group', Name='BS Group' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202282) +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BSMth', Name='BS Month', PrintName='BS Month',Updated=TO_TIMESTAMP('2013-03-01 18:11:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202263 +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202263 +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BSMth', Name='BS Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202263 +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSMth', Name='BS Month', Description=NULL, Help=NULL, AD_Element_ID=202263 WHERE UPPER(ColumnName)='BSMTH' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSMth', Name='BS Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202263 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BSMth', Name='BS Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202263 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BS Month', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202263) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:11:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='BS Month', Name='BS Month' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202263) +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BSTypeName', Name='BS Type Name', PrintName='BS Type Name',Updated=TO_TIMESTAMP('2013-03-01 18:11:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202279 +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202279 +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BSTypeName', Name='BS Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202279 +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSTypeName', Name='BS Type Name', Description=NULL, Help=NULL, AD_Element_ID=202279 WHERE UPPER(ColumnName)='BSTYPENAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BSTypeName', Name='BS Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202279 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BSTypeName', Name='BS Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202279 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='BS Type Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202279) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:11:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='BS Type Name', Name='BS Type Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202279) +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='BudName', Name='Budget Name', PrintName='Budget Name',Updated=TO_TIMESTAMP('2013-03-01 18:12:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202267 +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202267 +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='BudName', Name='Budget Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202267 +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BudName', Name='Budget Name', Description=NULL, Help=NULL, AD_Element_ID=202267 WHERE UPPER(ColumnName)='BUDNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='BudName', Name='Budget Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202267 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='BudName', Name='Budget Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202267 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:12:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Budget Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202267) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:12:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Budget Name', Name='Budget Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202267) +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Currency', Name='Currency', PrintName='Currency',Updated=TO_TIMESTAMP('2013-03-01 18:12:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202270 +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202270 +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Currency', Name='Currency', Description=NULL, Help=NULL WHERE AD_Element_ID=202270 +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Currency', Name='Currency', Description=NULL, Help=NULL, AD_Element_ID=202270 WHERE UPPER(ColumnName)='CURRENCY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Currency', Name='Currency', Description=NULL, Help=NULL WHERE AD_Element_ID=202270 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Currency', Name='Currency', Description=NULL, Help=NULL WHERE AD_Element_ID=202270 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Currency', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202270) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:12:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Currency', Name='Currency' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202270) +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='FYear', Name='Financial Year', PrintName='Financial Year',Updated=TO_TIMESTAMP('2013-03-01 18:13:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202264 +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202264 +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='FYear', Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Element_ID=202264 +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FYear', Name='Financial Year', Description=NULL, Help=NULL, AD_Element_ID=202264 WHERE UPPER(ColumnName)='FYEAR' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FYear', Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Element_ID=202264 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='FYear', Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Element_ID=202264 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Financial Year', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202264) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:13:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Financial Year', Name='Financial Year' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202264) +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='FYMth', Name='Financial Month', PrintName='Financial Month',Updated=TO_TIMESTAMP('2013-03-01 18:13:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202265 +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202265 +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='FYMth', Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202265 +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FYMth', Name='Financial Month', Description=NULL, Help=NULL, AD_Element_ID=202265 WHERE UPPER(ColumnName)='FYMTH' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='FYMth', Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202265 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='FYMth', Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Element_ID=202265 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Financial Month', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202265) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:13:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Financial Month', Name='Financial Month' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202265) +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Na_Eq', Name='Net Assets / Equity', PrintName='Net Assets / Equity',Updated=TO_TIMESTAMP('2013-03-01 18:14:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202285 +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202285 +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Na_Eq', Name='Net Assets / Equity', Description=NULL, Help=NULL WHERE AD_Element_ID=202285 +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Na_Eq', Name='Net Assets / Equity', Description=NULL, Help=NULL, AD_Element_ID=202285 WHERE UPPER(ColumnName)='NA_EQ' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Na_Eq', Name='Net Assets / Equity', Description=NULL, Help=NULL WHERE AD_Element_ID=202285 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Na_Eq', Name='Net Assets / Equity', Description=NULL, Help=NULL WHERE AD_Element_ID=202285 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Net Assets / Equity', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202285) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:14:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Net Assets / Equity', Name='Net Assets / Equity' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202285) +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='PL$ACT', Name='PL$ACT', PrintName='PL$ACT',Updated=TO_TIMESTAMP('2013-03-01 18:15:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202272 +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202272 +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='PL$ACT', Name='PL$ACT', Description=NULL, Help=NULL WHERE AD_Element_ID=202272 +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PL$ACT', Name='PL$ACT', Description=NULL, Help=NULL, AD_Element_ID=202272 WHERE UPPER(ColumnName)='PL$ACT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PL$ACT', Name='PL$ACT', Description=NULL, Help=NULL WHERE AD_Element_ID=202272 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='PL$ACT', Name='PL$ACT', Description=NULL, Help=NULL WHERE AD_Element_ID=202272 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='PL$ACT', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202272) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:15:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='PL$ACT', Name='PL$ACT' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202272) +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='PL$BUD', Name='PL$BUD', PrintName='PL$BUD',Updated=TO_TIMESTAMP('2013-03-01 18:16:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202274 +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202274 +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='PL$BUD', Name='PL$BUD', Description=NULL, Help=NULL WHERE AD_Element_ID=202274 +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PL$BUD', Name='PL$BUD', Description=NULL, Help=NULL, AD_Element_ID=202274 WHERE UPPER(ColumnName)='PL$BUD' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PL$BUD', Name='PL$BUD', Description=NULL, Help=NULL WHERE AD_Element_ID=202274 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='PL$BUD', Name='PL$BUD', Description=NULL, Help=NULL WHERE AD_Element_ID=202274 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='PL$BUD', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202274) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='PL$BUD', Name='PL$BUD' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202274) +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='PLBS', Name='PL / BS', PrintName='PL / BS',Updated=TO_TIMESTAMP('2013-03-01 18:16:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202284 +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202284 +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='PLBS', Name='PL / BS', Description=NULL, Help=NULL WHERE AD_Element_ID=202284 +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PLBS', Name='PL / BS', Description=NULL, Help=NULL, AD_Element_ID=202284 WHERE UPPER(ColumnName)='PLBS' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PLBS', Name='PL / BS', Description=NULL, Help=NULL WHERE AD_Element_ID=202284 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='PLBS', Name='PL / BS', Description=NULL, Help=NULL WHERE AD_Element_ID=202284 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='PL / BS', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202284) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:36 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='PL / BS', Name='PL / BS' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202284) +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='PLGroup', Name='PL Group', PrintName='PL Group',Updated=TO_TIMESTAMP('2013-03-01 18:16:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202283 +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202283 +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='PLGroup', Name='PL Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202283 +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PLGroup', Name='PL Group', Description=NULL, Help=NULL, AD_Element_ID=202283 WHERE UPPER(ColumnName)='PLGROUP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PLGroup', Name='PL Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202283 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='PLGroup', Name='PL Group', Description=NULL, Help=NULL WHERE AD_Element_ID=202283 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='PL Group', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202283) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:16:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='PL Group', Name='PL Group' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202283) +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='PLTypeName', Name='PL Type Name', PrintName='PL Type Name',Updated=TO_TIMESTAMP('2013-03-01 18:17:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202280 +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202280 +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='PLTypeName', Name='PL Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202280 +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PLTypeName', Name='PL Type Name', Description=NULL, Help=NULL, AD_Element_ID=202280 WHERE UPPER(ColumnName)='PLTYPENAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='PLTypeName', Name='PL Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202280 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='PLTypeName', Name='PL Type Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202280 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:17:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='PL Type Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202280) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:17:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='PL Type Name', Name='PL Type Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202280) +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='ProdCategory', Name='Product Category', PrintName='Product Category',Updated=TO_TIMESTAMP('2013-03-01 18:17:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202292 +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202292 +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='ProdCategory', Name='Product Category', Description=NULL, Help=NULL WHERE AD_Element_ID=202292 +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ProdCategory', Name='Product Category', Description=NULL, Help=NULL, AD_Element_ID=202292 WHERE UPPER(ColumnName)='PRODCATEGORY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ProdCategory', Name='Product Category', Description=NULL, Help=NULL WHERE AD_Element_ID=202292 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='ProdCategory', Name='Product Category', Description=NULL, Help=NULL WHERE AD_Element_ID=202292 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Product Category', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202292) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:17:49 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Product Category', Name='Product Category' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202292) +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='ProdCode', Name='Product Code', PrintName='Product Code',Updated=TO_TIMESTAMP('2013-03-01 18:18:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202290 +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202290 +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='ProdCode', Name='Product Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202290 +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ProdCode', Name='Product Code', Description=NULL, Help=NULL, AD_Element_ID=202290 WHERE UPPER(ColumnName)='PRODCODE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ProdCode', Name='Product Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202290 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='ProdCode', Name='Product Code', Description=NULL, Help=NULL WHERE AD_Element_ID=202290 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Product Code', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202290) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Product Code', Name='Product Code' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202290) +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='ProdName', Name='Product Name', PrintName='Product Name',Updated=TO_TIMESTAMP('2013-03-01 18:18:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202291 +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202291 +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='ProdName', Name='Product Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202291 +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ProdName', Name='Product Name', Description=NULL, Help=NULL, AD_Element_ID=202291 WHERE UPPER(ColumnName)='PRODNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ProdName', Name='Product Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202291 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='ProdName', Name='Product Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202291 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Product Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202291) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Product Name', Name='Product Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202291) +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='RepName', Name='Sales Rep Name', PrintName='Sales Rep Name',Updated=TO_TIMESTAMP('2013-03-01 18:18:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202289 +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202289 +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='RepName', Name='Sales Rep Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202289 +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='RepName', Name='Sales Rep Name', Description=NULL, Help=NULL, AD_Element_ID=202289 WHERE UPPER(ColumnName)='REPNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='RepName', Name='Sales Rep Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202289 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='RepName', Name='Sales Rep Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202289 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Sales Rep Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202289) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:18:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Sales Rep Name', Name='Sales Rep Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202289) +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='Table_Name', Name='Table Name', PrintName='Table Name',Updated=TO_TIMESTAMP('2013-03-01 18:19:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202266 +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202266 +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='Table_Name', Name='Table Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202266 +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Table_Name', Name='Table Name', Description=NULL, Help=NULL, AD_Element_ID=202266 WHERE UPPER(ColumnName)='TABLE_NAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='Table_Name', Name='Table Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202266 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='Table_Name', Name='Table Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202266 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Table Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202266) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Table Name', Name='Table Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202266) +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='TaxName', Name='Tax Name', PrintName='Tax Name',Updated=TO_TIMESTAMP('2013-03-01 18:19:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202268 +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202268 +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='TaxName', Name='Tax Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202268 +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='TaxName', Name='Tax Name', Description=NULL, Help=NULL, AD_Element_ID=202268 WHERE UPPER(ColumnName)='TAXNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='TaxName', Name='Tax Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202268 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='TaxName', Name='Tax Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202268 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='Tax Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202268) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='Tax Name', Name='Tax Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202268) +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='UOMName', Name='UOM Name', PrintName='UOM Name',Updated=TO_TIMESTAMP('2013-03-01 18:19:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202275 +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=202275 +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='UOMName', Name='UOM Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202275 +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='UOMName', Name='UOM Name', Description=NULL, Help=NULL, AD_Element_ID=202275 WHERE UPPER(ColumnName)='UOMNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='UOMName', Name='UOM Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202275 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='UOMName', Name='UOM Name', Description=NULL, Help=NULL WHERE AD_Element_ID=202275 AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Field SET Name='UOM Name', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202275) AND IsCentrallyMaintained='Y' +; + +-- Mar 1, 2013 6:19:48 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET PrintName='UOM Name', Name='UOM Name' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202275) +; + +-- Mar 1, 2013 6:21:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_ReportView (AD_ReportView_UU,AD_Table_ID,AD_ReportView_ID,EntityType,Name,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Org_ID,IsActive) VALUES ('1ec4db62-c8ab-4320-ae3c-9bb8af432f7e',200072,200003,'D','RV_Fact_Simple',0,TO_TIMESTAMP('2013-03-01 18:21:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 18:21:07','YYYY-MM-DD HH24:MI:SS'),100,0,'Y') +; + +-- Mar 1, 2013 6:21:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_ReportView (AD_ReportView_UU,AD_Table_ID,AD_ReportView_ID,EntityType,Name,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Org_ID,IsActive) VALUES ('e760d018-1023-46a2-b508-2f6659bbdf6c',200073,200004,'D','RV_Fact_Adaxa',0,TO_TIMESTAMP('2013-03-01 18:21:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 18:21:25','YYYY-MM-DD HH24:MI:SS'),100,0,'Y') +; + +-- Mar 1, 2013 6:22:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process (CopyFromProcess,AD_Process_ID,IsDirectPrint,AD_ReportView_ID,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Name,Value,AD_Org_ID,AD_Client_ID,Created,Updated,UpdatedBy,IsActive,CreatedBy) VALUES ('N',200037,'N',200003,'Y','e6d33f36-e200-4ab2-95f8-884959210b7e','3','N','N',0,0,'Y','D','Simple Fact View','RV_Fact_Simple',0,0,TO_TIMESTAMP('2013-03-01 18:22:44','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 18:22:44','YYYY-MM-DD HH24:MI:SS'),100,'Y',100) +; + +-- Mar 1, 2013 6:22:45 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200037 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) +; + +-- Mar 1, 2013 6:23:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',181,200056,'99999b62-5a7a-4de7-adb3-25bcefed3b88','An Accounting Schema defines the rules used in accounting such as costing method, currency and calendar',200037,19,'N','D','Accounting Schema','C_AcctSchema_ID','Rules for accounting',0,'Y',10,'Y',100,TO_TIMESTAMP('2013-03-01 18:23:24','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 18:23:24','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 6:23:25 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200056 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 6:23:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,AD_Reference_Value_ID,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',113,200057,'5aed24a0-841e-413f-8a0a-f7429e810563','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200037,18,'N',130,'D','Organization','AD_Org_ID','Organizational entity within client',0,'Y',20,'Y',100,TO_TIMESTAMP('2013-03-01 18:23:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 18:23:57','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 6:23:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200057 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 6:24:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,AD_Reference_Value_ID,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',148,200058,'62d9bcae-8b17-4951-9372-8266dd9c5ac4','The (natural) account used',200037,18,'N',132,'D','Account','Account_ID','Account used',0,'Y',30,'Y',100,TO_TIMESTAMP('2013-03-01 18:24:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 18:24:28','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 6:24:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200058 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 6:25:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('Y',2083,200059,'a575f559-4406-48f7-803a-f6f8eb52c143',200037,10,'N','D','Account Key','AccountValue','Key of Account Element',0,'Y',40,'Y',100,TO_TIMESTAMP('2013-03-01 18:25:05','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 18:25:05','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 6:25:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200059 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 6:26:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,VFormat,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('Y',202259,200060,'7d107cc7-f8be-4e63-95bd-f8d965de08ec','The only valid date format is: YYYY-MM',200037,10,'N','D','Financial Year Month','FinYear_Mth','The only valid date format is: YYYY-MM',0,'N','0000-00',50,'Y',100,TO_TIMESTAMP('2013-03-01 18:26:40','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 18:26:40','YYYY-MM-DD HH24:MI:SS'),0,0,'N') +; + +-- Mar 1, 2013 6:26:40 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200060 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +-- Mar 1, 2013 6:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process (CopyFromProcess,AD_Process_ID,IsDirectPrint,AD_ReportView_ID,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Name,Value,AD_Org_ID,AD_Client_ID,Created,Updated,UpdatedBy,IsActive,CreatedBy) VALUES ('N',200038,'N',200004,'Y','fab3d440-ee73-4aef-a2ba-c7d96b2c5934','3','N','N',0,0,'Y','D','Complex Fact View','RV_Fact_Adaxa',0,0,TO_TIMESTAMP('2013-03-01 18:27:25','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 18:27:25','YYYY-MM-DD HH24:MI:SS'),100,'Y',100) +; + +-- Mar 1, 2013 6:27:26 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200038 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) +; + +-- Mar 1, 2013 6:28:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormat (CreateCopy,IsForm,IsDefault,AD_PrintFormat_ID,IsStandardHeaderFooter,AD_ReportView_ID,AD_PrintPaper_ID,AD_PrintColor_ID,AD_PrintTableFormat_ID,IsTableBased,AD_Table_ID,HeaderMargin,AD_PrintFont_ID,AD_PrintFormat_UU,FooterMargin,Name,Updated,CreatedBy,Created,UpdatedBy,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('N','N','N',200007,'Y',200003,100,100,100,'Y',200072,0,130,'23bf5453-6efa-4109-a8d2-251d0b7bc5dc',0,'Simple Fact View',TO_TIMESTAMP('2013-03-01 18:28:52','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 18:28:52','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',0) +; + +-- Mar 1, 2013 6:29:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintPaper_ID=100, AD_PrintColor_ID=100, AD_Table_ID=200072, AD_PrintFont_ID=130, Name='RV_Fact_Simple_2',Updated=TO_TIMESTAMP('2013-03-01 18:29:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200007 +; + +-- Mar 1, 2013 6:29:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account',0,'N','Y','C',200007,'N',0,'F','N',1,208749,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Account',0,'N','60d36388-7dc0-4ba8-83bf-d933a7818b88',0,200164,'N',0,TO_TIMESTAMP('2013-03-01 18:29:04','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:04','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200164 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208749) WHERE AD_PrintFormatItem_ID = 200164 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208749 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200164) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account Date',0,'N','Y','C',200007,'N',0,'F','N',2,208752,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Acct Date',0,'N','7520594e-9c61-475f-bd20-f31e85a12b13',0,200165,'N',0,TO_TIMESTAMP('2013-03-01 18:29:06','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:06','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200165 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208752) WHERE AD_PrintFormatItem_ID = 200165 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208752 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200165) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account Key',0,'N','Y','C',200007,'N',0,'F','N',3,208750,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Account Key',0,'N','cabeb09c-e6eb-4a34-84bc-37362c2859ac',0,200166,'N',0,TO_TIMESTAMP('2013-03-01 18:29:06','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:06','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200166 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208750) WHERE AD_PrintFormatItem_ID = 200166 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208750 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200166) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account Type',0,'N','Y','C',200007,'N',0,'F','N',4,208751,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Account Type',0,'N','a54ee288-58b7-45ca-9d7f-695002d81ee9',0,200167,'N',0,TO_TIMESTAMP('2013-03-01 18:29:07','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:07','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200167 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208751) WHERE AD_PrintFormatItem_ID = 200167 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208751 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200167) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Accounted Amount',0,'N','Y','C',200007,'N',0,'F','N',5,208754,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Accounted',0,'N','1eafb308-8386-49f1-bc39-2c448d54ee03',0,200168,'N',0,TO_TIMESTAMP('2013-03-01 18:29:09','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:09','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200168 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208754) WHERE AD_PrintFormatItem_ID = 200168 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208754 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200168) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Accounting Schema',0,'N','Y','C',200007,'N',0,'F','N',6,208748,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Accounting Schema',0,'N','a14d8bf2-7c01-4400-9ad7-2ed1646a8ebc',0,200169,'N',0,TO_TIMESTAMP('2013-03-01 18:29:10','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:10','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200169 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208748) WHERE AD_PrintFormatItem_ID = 200169 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208748 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200169) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Active',0,'N','N','C',200007,'N',0,'F','N',0,208742,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Active',0,'N','6895b288-b96d-4b47-9129-c0195b5d9f94',0,200170,'N',0,TO_TIMESTAMP('2013-03-01 18:29:11','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:11','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200170 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208742) WHERE AD_PrintFormatItem_ID = 200170 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208742 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200170) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Case',0,'N','Y','C',200007,'N',0,'F','N',8,208756,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Case',0,'N','263fbc37-0453-480d-a06a-2eed8f3ef790',0,200171,'N',0,TO_TIMESTAMP('2013-03-01 18:29:11','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:11','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200171 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208756) WHERE AD_PrintFormatItem_ID = 200171 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208756 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200171) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Client',0,'N','N','C',200007,'N',0,'F','N',0,208740,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Client',0,'N','04bcb33e-4b5d-4c5b-be03-484a973e1b04',0,200172,'N',0,TO_TIMESTAMP('2013-03-01 18:29:12','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:12','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200172 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208740) WHERE AD_PrintFormatItem_ID = 200172 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208740 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200172) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Created',0,'N','N','C',200007,'N',0,'F','N',0,208743,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Created',0,'N','aaa0a1c6-1132-4790-bf53-a1470e20103f',0,200173,'N',0,TO_TIMESTAMP('2013-03-01 18:29:13','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:13','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200173 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208743) WHERE AD_PrintFormatItem_ID = 200173 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208743 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200173) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Created By',0,'N','N','C',200007,'N',0,'F','N',0,208744,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Created By',0,'N','c4eae83a-22de-49fc-b9b5-4063b850dd40',0,200174,'N',0,TO_TIMESTAMP('2013-03-01 18:29:14','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:14','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200174 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208744) WHERE AD_PrintFormatItem_ID = 200174 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208744 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200174) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Financial Month',0,'N','Y','C',200007,'N',0,'F','N',12,208753,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Financial Month',0,'N','55d02756-f9d9-4e77-8898-65d822d27a60',0,200175,'N',0,TO_TIMESTAMP('2013-03-01 18:29:15','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:15','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200175 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208753) WHERE AD_PrintFormatItem_ID = 200175 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208753 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200175) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Financial Year',0,'N','Y','C',200007,'N',0,'F','N',13,208755,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Financial Year',0,'N','54237461-0306-4082-867a-fec75c5b9ea3',0,200176,'N',0,TO_TIMESTAMP('2013-03-01 18:29:16','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:16','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200176 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208755) WHERE AD_PrintFormatItem_ID = 200176 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208755 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200176) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Organization',0,'N','N','C',200007,'N',0,'F','N',0,208741,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Organization',0,'N','30309939-89d4-4b23-9510-de498becc157',0,200177,'N',0,TO_TIMESTAMP('2013-03-01 18:29:16','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:16','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200177 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208741) WHERE AD_PrintFormatItem_ID = 200177 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208741 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200177) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Project',0,'N','Y','C',200007,'N',0,'F','N',15,208747,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Project',0,'N','0557c4e8-a4e3-4d34-b34e-b00fbc60df41',0,200178,'N',0,TO_TIMESTAMP('2013-03-01 18:29:17','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:17','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200178 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208747) WHERE AD_PrintFormatItem_ID = 200178 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208747 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200178) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Updated',0,'N','N','C',200007,'N',0,'F','N',0,208745,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Updated',0,'N','84b1a320-54d0-4df0-8c8e-6dc9ea3d003d',0,200179,'N',0,TO_TIMESTAMP('2013-03-01 18:29:18','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:18','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200179 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208745) WHERE AD_PrintFormatItem_ID = 200179 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208745 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200179) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Updated By',0,'N','N','C',200007,'N',0,'F','N',0,208746,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Updated By',0,'N','37a3c314-f244-4931-abfe-fa77c72011f8',0,200180,'N',0,TO_TIMESTAMP('2013-03-01 18:29:19','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:29:19','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:29:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200180 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:29:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208746) WHERE AD_PrintFormatItem_ID = 200180 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208746 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200180) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:29:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET Name='Simple Fact View',Updated=TO_TIMESTAMP('2013-03-01 18:29:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200007 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200165 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200166 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200169 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=200178 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=10,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200171 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=20,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200167 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200164 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200176 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200175 +; + +-- Mar 1, 2013 6:30:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=60,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200168 +; + +-- Mar 1, 2013 6:30:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SortNo=10,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=200164 +; + +-- Mar 1, 2013 6:30:28 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SortNo=20,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=200167 +; + +-- Mar 1, 2013 6:31:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='Y', YPosition=0,Updated=TO_TIMESTAMP('2013-03-01 18:31:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200167 +; + +-- Mar 1, 2013 6:31:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET XPosition=0, IsGroupBy='N', IsPageBreak='N', YPosition=0, IsSummarized='Y', SortNo=0,Updated=TO_TIMESTAMP('2013-03-01 18:31:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=200168 +; + +-- Mar 1, 2013 6:31:41 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormat (CreateCopy,IsForm,IsDefault,AD_PrintFormat_ID,IsStandardHeaderFooter,AD_ReportView_ID,AD_PrintPaper_ID,AD_PrintColor_ID,IsTableBased,AD_Table_ID,HeaderMargin,AD_PrintFont_ID,AD_PrintFormat_UU,FooterMargin,Name,Updated,CreatedBy,Created,UpdatedBy,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('N','N','N',200008,'Y',200004,100,100,'Y',200073,0,130,'73172ae9-4315-4c41-be74-8cb5689e27f6',0,'Complex Fact View',TO_TIMESTAMP('2013-03-01 18:31:41','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-01 18:31:41','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',0) +; + +-- Mar 1, 2013 6:31:50 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintPaper_ID=100, AD_PrintColor_ID=100, AD_Table_ID=200073, AD_PrintFont_ID=130, Name='RV_Fact_Adaxa_2',Updated=TO_TIMESTAMP('2013-03-01 18:31:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200008 +; + +-- Mar 1, 2013 6:31:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('AC Code',0,'N','Y','C',200008,'N',0,'F','N',1,208781,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','AC Code',0,'N','1fe443e5-fed4-496a-bdab-cae8fdeea1f2',0,200181,'N',0,TO_TIMESTAMP('2013-03-01 18:31:50','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:31:50','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200181 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208781) WHERE AD_PrintFormatItem_ID = 200181 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208781 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200181) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('AC Group',0,'N','Y','C',200008,'N',0,'F','N',2,208786,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','AC Group',0,'N','cfd97f26-f582-4992-a5c8-35ffbf107ba0',0,200182,'N',0,TO_TIMESTAMP('2013-03-01 18:31:51','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:31:51','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200182 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:51 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208786) WHERE AD_PrintFormatItem_ID = 200182 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208786 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200182) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('AC Name',0,'N','Y','C',200008,'N',0,'F','N',3,208782,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','AC Name',0,'N','0ee091a6-e8e2-4a77-8378-4d2f9fa7db44',0,200183,'N',0,TO_TIMESTAMP('2013-03-01 18:31:51','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:31:51','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200183 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:52 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208782) WHERE AD_PrintFormatItem_ID = 200183 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208782 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200183) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account Date',0,'N','Y','C',200008,'N',0,'F','N',4,208760,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Acct Date',0,'N','6ae42832-e1da-4511-8708-58d0a2c9354b',0,200184,'N',0,TO_TIMESTAMP('2013-03-01 18:31:52','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:31:52','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200184 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:53 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208760) WHERE AD_PrintFormatItem_ID = 200184 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208760 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200184) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Account Name',0,'N','Y','C',200008,'N',0,'F','N',5,208783,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Account Name',0,'N','91e9d7a4-3ba8-49bd-b1f7-e365e117b54e',0,200185,'N',0,TO_TIMESTAMP('2013-03-01 18:31:53','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:31:53','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200185 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:54 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208783) WHERE AD_PrintFormatItem_ID = 200185 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208783 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200185) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Accounted Amount',0,'N','Y','C',200008,'N',0,'F','N',6,208772,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Accounted',0,'N','145bdca3-f45e-45cd-96cf-5078653624cb',0,200186,'N',0,TO_TIMESTAMP('2013-03-01 18:31:54','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:31:54','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200186 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208772) WHERE AD_PrintFormatItem_ID = 200186 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208772 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200186) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BP Code',0,'N','Y','C',200008,'N',0,'F','N',7,208791,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BP Code',0,'N','4a5fc986-1f32-4a15-81e9-3b48fd1ec8a4',0,200187,'N',0,TO_TIMESTAMP('2013-03-01 18:31:55','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:31:55','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200187 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:55 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208791) WHERE AD_PrintFormatItem_ID = 200187 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208791 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200187) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BP Code and Name',0,'N','Y','C',200008,'N',0,'F','N',8,208793,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BP Code and Name',0,'N','581f892b-b5d3-4641-8272-ad0e91dbfcb3',0,200188,'N',0,TO_TIMESTAMP('2013-03-01 18:31:55','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:31:55','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200188 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:56 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208793) WHERE AD_PrintFormatItem_ID = 200188 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208793 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200188) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BP Group Name',0,'N','Y','C',200008,'N',0,'F','N',9,208794,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BP Group Name',0,'N','8e89ea0c-9225-4fa4-8dfb-6614867e51e7',0,200189,'N',0,TO_TIMESTAMP('2013-03-01 18:31:56','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:31:56','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200189 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:57 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208794) WHERE AD_PrintFormatItem_ID = 200189 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208794 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200189) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BP Name',0,'N','Y','C',200008,'N',0,'F','N',10,208792,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BP Name',0,'N','5cf859c0-2621-45a5-8f34-2f162afa4f2b',0,200190,'N',0,TO_TIMESTAMP('2013-03-01 18:31:57','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:31:57','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200190 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208792) WHERE AD_PrintFormatItem_ID = 200190 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208792 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200190) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BS Date',0,'N','Y','C',200008,'N',0,'F','N',11,208761,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BS Date',0,'N','fabbe1a3-0ef3-411e-a31c-9275cc57e278',0,200191,'N',0,TO_TIMESTAMP('2013-03-01 18:31:58','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:31:58','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200191 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:58 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208761) WHERE AD_PrintFormatItem_ID = 200191 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208761 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200191) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:31:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BS Group',0,'N','Y','C',200008,'N',0,'F','N',12,208787,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BS Group',0,'N','78fa067f-752d-4a3f-831a-aafa9f7a386f',0,200192,'N',0,TO_TIMESTAMP('2013-03-01 18:31:58','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:31:58','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:31:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200192 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:31:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208787) WHERE AD_PrintFormatItem_ID = 200192 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208787 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200192) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BS Month',0,'N','Y','C',200008,'N',0,'F','N',13,208762,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BS Month',0,'N','9c4fa3f0-052a-4ea7-8e32-7eeb31b66dee',0,200193,'N',0,TO_TIMESTAMP('2013-03-01 18:31:59','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:31:59','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200193 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:00 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208762) WHERE AD_PrintFormatItem_ID = 200193 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208762 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200193) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BS Type Name',0,'N','Y','C',200008,'N',0,'F','N',14,208784,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BS Type Name',0,'N','15d33071-ccdb-4a74-8d10-e94a55374d37',0,200194,'N',0,TO_TIMESTAMP('2013-03-01 18:32:00','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:00','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200194 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208784) WHERE AD_PrintFormatItem_ID = 200194 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208784 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200194) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('BS$ACT',0,'N','Y','C',200008,'N',0,'F','N',15,208774,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','BS$ACT',0,'N','f4465ada-dabc-4a9b-b9ae-fc9236d95ccc',0,200195,'N',0,TO_TIMESTAMP('2013-03-01 18:32:01','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:01','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200195 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:01 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208774) WHERE AD_PrintFormatItem_ID = 200195 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208774 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200195) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Budget Name',0,'N','Y','C',200008,'N',0,'F','N',16,208767,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Budget Name',0,'N','2f37ec62-67eb-48c7-88ee-fc4355029b77',0,200196,'N',0,TO_TIMESTAMP('2013-03-01 18:32:01','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:01','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200196 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208767) WHERE AD_PrintFormatItem_ID = 200196 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208767 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200196) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Client',0,'N','N','C',200008,'N',0,'F','N',0,208757,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Client',0,'N','934ce8e4-780d-4778-ac09-6138c83ced25',0,200197,'N',0,TO_TIMESTAMP('2013-03-01 18:32:02','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:02','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200197 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208757) WHERE AD_PrintFormatItem_ID = 200197 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208757 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200197) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Client Name',0,'N','Y','C',200008,'N',0,'F','N',18,208759,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Client Name',0,'N','0cd756af-c5b5-41ca-b3b5-fdccf58b2300',0,200198,'N',0,TO_TIMESTAMP('2013-03-01 18:32:03','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:03','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200198 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:04 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208759) WHERE AD_PrintFormatItem_ID = 200198 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208759 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200198) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Currency',0,'N','Y','C',200008,'N',0,'F','N',19,208770,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Currency',0,'N','55e781aa-c2b7-43b3-a929-e12635dff9c6',0,200199,'N',0,TO_TIMESTAMP('2013-03-01 18:32:04','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:04','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200199 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208770) WHERE AD_PrintFormatItem_ID = 200199 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208770 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200199) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Description',0,'N','Y','C',200008,'N',0,'F','N',20,208779,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Description',0,'N','e71984b3-68f2-4af7-908c-ada939fd65e1',0,200200,'N',0,TO_TIMESTAMP('2013-03-01 18:32:05','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:05','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200200 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:05 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208779) WHERE AD_PrintFormatItem_ID = 200200 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208779 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200200) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Financial Month',0,'N','Y','C',200008,'N',0,'F','N',21,208764,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Financial Month',0,'N','4f054d3a-6442-4f41-8dd1-e69b1300e58b',0,200201,'N',0,TO_TIMESTAMP('2013-03-01 18:32:05','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:05','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200201 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:06 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208764) WHERE AD_PrintFormatItem_ID = 200201 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208764 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200201) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Financial Year',0,'N','Y','C',200008,'N',0,'F','N',22,208763,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Financial Year',0,'N','f8c26f4b-ea1a-419b-a5cc-77c1e993291c',0,200202,'N',0,TO_TIMESTAMP('2013-03-01 18:32:06','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:06','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200202 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:07 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208763) WHERE AD_PrintFormatItem_ID = 200202 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208763 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200202) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Net Assets / Equity',0,'N','Y','C',200008,'N',0,'F','N',23,208790,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Net Assets / Equity',0,'N','49f3a57a-f3c2-4a2f-ba6e-56cbc5a89901',0,200203,'N',0,TO_TIMESTAMP('2013-03-01 18:32:07','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:07','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200203 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:08 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208790) WHERE AD_PrintFormatItem_ID = 200203 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208790 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200203) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Organization',0,'N','N','C',200008,'N',0,'F','N',0,208758,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Organization',0,'N','f9339a92-a4a7-4251-9ef6-a0ea0d6d9315',0,200204,'N',0,TO_TIMESTAMP('2013-03-01 18:32:08','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:08','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200204 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208758) WHERE AD_PrintFormatItem_ID = 200204 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208758 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200204) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Organization Name',0,'N','Y','C',200008,'N',0,'F','N',25,208780,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Org Name',0,'N','e4a4b00d-fd0b-479b-a8a2-750516275352',0,200205,'N',0,TO_TIMESTAMP('2013-03-01 18:32:09','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:09','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200205 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208780) WHERE AD_PrintFormatItem_ID = 200205 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208780 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200205) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('PL / BS',0,'N','Y','C',200008,'N',0,'F','N',26,208789,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','PL / BS',0,'N','848ea965-f98d-439b-a9a8-01f22f145418',0,200206,'N',0,TO_TIMESTAMP('2013-03-01 18:32:09','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:09','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200206 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:10 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208789) WHERE AD_PrintFormatItem_ID = 200206 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208789 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200206) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('PL Group',0,'N','Y','C',200008,'N',0,'F','N',27,208788,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','PL Group',0,'N','e7d4b154-d1f6-47ec-bc14-9c1d68a3bab4',0,200207,'N',0,TO_TIMESTAMP('2013-03-01 18:32:10','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:10','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200207 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:11 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208788) WHERE AD_PrintFormatItem_ID = 200207 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208788 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200207) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('PL Type Name',0,'N','Y','C',200008,'N',0,'F','N',28,208785,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','PL Type Name',0,'N','5591e956-1162-4dbe-8f28-cab4ae2bbcbe',0,200208,'N',0,TO_TIMESTAMP('2013-03-01 18:32:11','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:11','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200208 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208785) WHERE AD_PrintFormatItem_ID = 200208 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208785 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200208) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:12 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('PL$ACT',0,'N','Y','C',200008,'N',0,'F','N',29,208773,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','PL$ACT',0,'N','ec8a5a43-d897-43da-850d-d6b1670784f5',0,200209,'N',0,TO_TIMESTAMP('2013-03-01 18:32:12','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:12','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200209 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208773) WHERE AD_PrintFormatItem_ID = 200209 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208773 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200209) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('PL$BUD',0,'N','Y','C',200008,'N',0,'F','N',30,208775,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','PL$BUD',0,'N','3cd4a267-154d-4e44-b612-452282a041a8',0,200210,'N',0,TO_TIMESTAMP('2013-03-01 18:32:13','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:13','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200210 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:13 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208775) WHERE AD_PrintFormatItem_ID = 200210 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208775 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200210) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Posting Type Name',0,'N','Y','C',200008,'N',0,'F','N',31,208769,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Posting Type Name',0,'N','03f55621-b7d4-4dee-8f78-788ff3b67f22',0,200211,'N',0,TO_TIMESTAMP('2013-03-01 18:32:13','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:13','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200211 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:14 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208769) WHERE AD_PrintFormatItem_ID = 200211 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208769 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200211) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Product',0,'N','Y','C',200008,'N',0,'F','N',32,208798,'X',0,'B','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Product',0,'N','9dec2025-d376-4b0d-8af1-9083395e7875',0,200212,'N',0,TO_TIMESTAMP('2013-03-01 18:32:14','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:14','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200212 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208798) WHERE AD_PrintFormatItem_ID = 200212 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208798 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200212) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Product Category',0,'N','Y','C',200008,'N',0,'F','N',33,208799,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Product Category',0,'N','cd4d3989-61f5-4efd-a4b2-035f22d0a035',0,200213,'N',0,TO_TIMESTAMP('2013-03-01 18:32:15','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:15','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200213 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:15 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208799) WHERE AD_PrintFormatItem_ID = 200213 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208799 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200213) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Product Code',0,'N','Y','C',200008,'N',0,'F','N',34,208796,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Product Code',0,'N','63d87647-d1ab-42f9-9407-3a80c50078ff',0,200214,'N',0,TO_TIMESTAMP('2013-03-01 18:32:15','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:15','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200214 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:16 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208796) WHERE AD_PrintFormatItem_ID = 200214 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208796 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200214) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Product Name',0,'N','Y','C',200008,'N',0,'F','N',35,208797,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Product Name',0,'N','63efa57a-684a-4c99-94e0-9a5b06f11b60',0,200215,'N',0,TO_TIMESTAMP('2013-03-01 18:32:16','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:16','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200215 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208797) WHERE AD_PrintFormatItem_ID = 200215 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208797 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200215) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Project',0,'N','Y','C',200008,'N',0,'F','N',36,208778,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Project',0,'N','cc9f0de7-d2e5-4fe9-9dd5-7e059463d8e1',0,200216,'N',0,TO_TIMESTAMP('2013-03-01 18:32:17','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:17','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200216 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:18 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208778) WHERE AD_PrintFormatItem_ID = 200216 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208778 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200216) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Quantity',0,'N','Y','C',200008,'N',0,'F','N',37,208777,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Qty',0,'N','525aabd5-c806-45bf-9721-10bc1d5d914f',0,200217,'N',0,TO_TIMESTAMP('2013-03-01 18:32:18','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:18','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200217 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208777) WHERE AD_PrintFormatItem_ID = 200217 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208777 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200217) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Record ID',0,'N','Y','C',200008,'N',0,'F','N',38,208766,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Record ID',0,'N','245b7b58-f746-4d72-98be-7ce8c9cde23e',0,200218,'N',0,TO_TIMESTAMP('2013-03-01 18:32:19','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:19','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200218 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208766) WHERE AD_PrintFormatItem_ID = 200218 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208766 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200218) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Sales Rep Name',0,'N','Y','C',200008,'N',0,'F','N',39,208795,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Sales Rep Name',0,'N','222b43bd-c673-42dc-91b7-cd5187e96205',0,200219,'N',0,TO_TIMESTAMP('2013-03-01 18:32:19','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:19','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200219 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:20 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208795) WHERE AD_PrintFormatItem_ID = 200219 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208795 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200219) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Source Amount',0,'N','Y','C',200008,'N',0,'F','N',40,208771,'X',0,'T','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Source Amount',0,'N','fee6efae-657b-4480-85cc-70fb30c31ed2',0,200220,'N',0,TO_TIMESTAMP('2013-03-01 18:32:20','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:20','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200220 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208771) WHERE AD_PrintFormatItem_ID = 200220 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208771 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200220) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Table Name',0,'N','Y','C',200008,'N',0,'F','N',41,208765,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Table Name',0,'N','27f1206f-c0e8-42cf-bfe9-45417849bbda',0,200221,'N',0,TO_TIMESTAMP('2013-03-01 18:32:21','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:21','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200221 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208765) WHERE AD_PrintFormatItem_ID = 200221 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208765 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200221) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('Tax Name',0,'N','Y','C',200008,'N',0,'F','N',42,208768,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','Tax Name',0,'N','649f7563-e73e-4247-88b3-b3ecf1fbf0f7',0,200222,'N',0,TO_TIMESTAMP('2013-03-01 18:32:22','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:22','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200222 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208768) WHERE AD_PrintFormatItem_ID = 200222 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208768 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200222) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem (Name,XPosition,IsOrderBy,IsPrinted,PrintAreaType,AD_PrintFormat_ID,IsGroupBy,MaxHeight,PrintFormatType,ImageIsAttached,SeqNo,AD_Column_ID,LineAlignmentType,XSpace,FieldAlignmentType,IsRelativePosition,IsPageBreak,YPosition,IsSuppressNull,IsFixedWidth,IsNextLine,IsFilledRectangle,LineWidth,IsNextPage,IsCentrallyMaintained,IsVarianceCalc,IsImageField,ArcDiameter,ShapeType,IsMaxCalc,IsMinCalc,IsSummarized,IsAveraged,IsCounted,IsDeviationCalc,IsRunningTotal,PrintName,SortNo,IsHeightOneLine,AD_PrintFormatItem_UU,YSpace,AD_PrintFormatItem_ID,IsSetNLPosition,MaxWidth,Updated,UpdatedBy,AD_Client_ID,CreatedBy,Created,AD_Org_ID,IsActive) VALUES ('UOM Name',0,'N','Y','C',200008,'N',0,'F','N',43,208776,'X',0,'L','Y','N',0,'N','N','N','N',1,'N','Y','N','N',0,'N','N','N','N','N','N','N','N','UOM Name',0,'N','fc392dd9-90c6-4226-a36f-a8f3f8c9e41e',0,200223,'N',0,TO_TIMESTAMP('2013-03-01 18:32:22','YYYY-MM-DD HH24:MI:SS'),100,0,100,TO_TIMESTAMP('2013-03-01 18:32:22','YYYY-MM-DD HH24:MI:SS'),0,'Y') +; + +-- Mar 1, 2013 6:32:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, Name,PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_PrintFormatItem_Trl_UU ) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.Name,t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=200223 AND NOT EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_PrintFormatItem_ID=t.AD_PrintFormatItem_ID) +; + +-- Mar 1, 2013 6:32:23 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208776) WHERE AD_PrintFormatItem_ID = 200223 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=208776 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 200223) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y') +; + +-- Mar 1, 2013 6:32:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET Name='Complex Fact View',Updated=TO_TIMESTAMP('2013-03-01 18:32:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200008 +; + +-- Mar 1, 2013 6:32:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormat SET AD_PrintTableFormat_ID=NULL,Updated=TO_TIMESTAMP('2013-03-01 18:32:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormat_ID=200007 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=10,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200198 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=20,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200184 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200191 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200193 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200202 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=60,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200201 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=70,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200221 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=80,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200218 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=90,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200196 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=100,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200222 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=110,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200211 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=120,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200199 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=130,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200220 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=140,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200186 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=150,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200209 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=160,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200195 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=170,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200210 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=180,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200223 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=190,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200217 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=200,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200216 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=210,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200200 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=220,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200205 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=230,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200181 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=240,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200183 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=250,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200185 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=260,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200194 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=270,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200208 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=280,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200182 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=290,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200192 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=300,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200207 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=310,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200206 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=320,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200203 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=330,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200187 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=340,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200190 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=350,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200188 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=360,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200189 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=370,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200219 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=380,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200214 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=390,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200215 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=400,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200212 +; + +-- Mar 1, 2013 6:37:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_PrintFormatItem SET SeqNo=410,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=200213 +; + +-- Mar 1, 2013 6:39:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,AD_Menu_UU,IsCentrallyMaintained,Name,"action",IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200045,'N','N','N',200037,'D','d381e737-0a2a-4df4-9cb5-4543ed789c3b','Y','Simple Fact View','R','Y',0,100,TO_TIMESTAMP('2013-03-01 18:39:18','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-03-01 18:39:18','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Mar 1, 2013 6:39:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200045 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + +-- Mar 1, 2013 6:39:19 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +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', CURRENT_TIMESTAMP, 100, CURRENT_TIMESTAMP, 100,t.AD_Tree_ID, 200045, 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=200045) +; + +-- Mar 1, 2013 6:39:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,AD_Menu_UU,IsCentrallyMaintained,Name,"action",IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200046,'N','N','N',200038,'D','d50dc78b-2db1-4320-86e8-e1304df8a7fe','Y','Complex Fact View','R','Y',0,100,TO_TIMESTAMP('2013-03-01 18:39:34','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-03-01 18:39:34','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Mar 1, 2013 6:39:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200046 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + +-- Mar 1, 2013 6:39:35 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +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', CURRENT_TIMESTAMP, 100, CURRENT_TIMESTAMP, 100,t.AD_Tree_ID, 200046, 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=200046) +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=164 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=280 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=158 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=522 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200008 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=118 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53288 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53289 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53290 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=169 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=433 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=352 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=434 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200045 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200019 +; + +-- Mar 1, 2013 6:39:59 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=435 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=164 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=280 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=158 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=522 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200008 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=118 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53288 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53289 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53290 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=169 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=433 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=352 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=434 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200045 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200046 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200019 +; + +-- Mar 1, 2013 6:40:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_TreeNodeMM SET Parent_ID=278, SeqNo=16, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=435 +; + +-- Mar 1, 2013 6:55:31 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Reference (AD_Reference_ID,Name,EntityType,AD_Reference_UU,IsOrderByValue,Description,ValidationType,AD_Client_ID,AD_Org_ID,Updated,CreatedBy,IsActive,Created,UpdatedBy) VALUES (200066,'Fact_Acct Account_ID','D','4548bb78-5571-41d3-97d7-2ed4dab17d39','N',NULL,'T',0,0,TO_TIMESTAMP('2013-03-01 18:55:30','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2013-03-01 18:55:30','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Mar 1, 2013 6:55:32 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Reference_Trl_UU ) SELECT l.AD_Language,t.AD_Reference_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=200066 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) +; + +-- Mar 1, 2013 6:56:02 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Ref_Table (IsValueDisplayed,AD_Reference_ID,AD_Key,AD_Display,EntityType,AD_Table_ID,AD_Ref_Table_UU,CreatedBy,Updated,Created,AD_Client_ID,UpdatedBy,AD_Org_ID,IsActive) VALUES ('N',200066,3001,2519,'D',270,'e2901c8e-746a-417d-a31a-d58f92088528',100,TO_TIMESTAMP('2013-03-01 18:56:02','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-01 18:56:02','YYYY-MM-DD HH24:MI:SS'),0,100,0,'Y') +; + +-- Mar 1, 2013 6:56:24 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET AD_Reference_Value_ID=200066,Updated=TO_TIMESTAMP('2013-03-01 18:56:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200058 +; + +-- Mar 4, 2013 3:25:03 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET AD_Reference_Value_ID=200066, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-03-04 15:25:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208749 +; + +-- Mar 4, 2013 3:33:29 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET AD_Reference_Value_ID=132,Updated=TO_TIMESTAMP('2013-03-04 15:33:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208749 +; + +-- Mar 4, 2013 3:34:43 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET AD_Reference_Value_ID=132,Updated=TO_TIMESTAMP('2013-03-04 15:34:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200058 +; + +-- Mar 4, 2013 3:36:21 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Reference_Trl WHERE AD_Reference_ID=200066 +; + +-- Mar 4, 2013 3:36:22 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +DELETE FROM AD_Reference WHERE AD_Reference_ID=200066 +; + +-- Mar 4, 2013 3:39:09 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET AD_Reference_Value_ID=117, AD_Reference_ID=17, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-03-04 15:39:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208751 +; + +-- Mar 4, 2013 3:41:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Element SET ColumnName='ClientName',Updated=TO_TIMESTAMP('2013-03-04 15:41:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=200186 +; + +-- Mar 4, 2013 3:41:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET ColumnName='ClientName', Name='Client Name', Description=NULL, Help='Client in which current session user logged in' WHERE AD_Element_ID=200186 +; + +-- Mar 4, 2013 3:41:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ClientName', Name='Client Name', Description=NULL, Help='Client in which current session user logged in', AD_Element_ID=200186 WHERE UPPER(ColumnName)='CLIENTNAME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Mar 4, 2013 3:41:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET ColumnName='ClientName', Name='Client Name', Description=NULL, Help='Client in which current session user logged in' WHERE AD_Element_ID=200186 AND IsCentrallyMaintained='Y' +; + +-- Mar 4, 2013 3:41:38 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_InfoColumn SET ColumnName='ClientName', Name='Client Name', Description=NULL, Help='Client in which current session user logged in' WHERE AD_Element_ID=200186 AND IsCentrallyMaintained='Y' +; + +-- Mar 4, 2013 3:43:17 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET AD_Reference_ID=13, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-03-04 15:43:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208766 +; + +-- Mar 4, 2013 3:45:39 PM SGT +-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Column SET AD_Reference_ID=10, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-03-04 15:45:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208770 +; + +SELECT register_migration_script('201303041624_TICKET-1001763_FactView.sql') FROM dual +; \ No newline at end of file diff --git a/org.adempiere.base/src/org/adempiere/process/ASU_Fill1099Extract.java b/org.adempiere.base/src/org/adempiere/process/ASU_Fill1099Extract.java new file mode 100644 index 0000000000..9ae59788b7 --- /dev/null +++ b/org.adempiere.base/src/org/adempiere/process/ASU_Fill1099Extract.java @@ -0,0 +1,176 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2006 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.adempiere.process; + +import java.sql.*; +import java.util.logging.*; +import org.compiere.process.ProcessInfoParameter; +import org.compiere.process.SvrProcess; +import org.compiere.util.*; + +/** + * ASU - Fill 1099 Extract + * @author Carlos Ruiz + * @version $Id: ASU_Fill1099Extract.java + */ +public class ASU_Fill1099Extract extends SvrProcess +{ + private Timestamp p_Cut_Date = null; + + /** + * Prepare - e.g., get Parameters. + */ + protected void prepare() + { + ProcessInfoParameter[] para = getParameter(); + for (int i = 0; i < para.length; i++) + { + String name = para[i].getParameterName(); + if (para[i].getParameter() == null) + ; + else if (name.equals("Cut_Date")) + p_Cut_Date = (Timestamp)para[i].getParameter(); + else + log.log(Level.SEVERE, "Unknown Parameter: " + name); + } + if (p_Cut_Date == null) + p_Cut_Date = new Timestamp (System.currentTimeMillis()); + } // prepare + + /** + * DoIt + * @return Message + * @throws Exception + */ + protected String doIt() throws Exception + { + log.info("CUT_DATE=" + p_Cut_Date); + int AD_PInstance_ID = getAD_PInstance_ID(); + // + StringBuilder sql = new StringBuilder(); + sql.append("INSERT INTO T_1099EXTRACT "); + sql.append("(ad_pinstance_id, ad_client_id, ad_org_id, isactive, created, "); + sql.append("createdby, updated, updatedby, c_bpartner_id, value, name, taxid, "); + sql.append("c_location_id, cut_year, cut_date, amtbucket01, amtbucket02, "); + sql.append("amtbucket03, amtbucket04, amtbucket05, amtbucket06, amtbucket07, "); + sql.append("amtbucket08, amtbucket09, amtbucket10, amtbucket11, amtbucket12, "); + sql.append("amtbucket13, amtbucket14, amtbucket15, amtbucket16) "); + sql.append("SELECT ?, bp.ad_client_id, bp.ad_org_id, bp.isactive, bp.created, bp.createdby, "); + sql.append("bp.updated, bp.updatedby, bp.c_bpartner_id, bp.value, bp.name, bp.taxid, "); + /*Yvonne: should be the Invoice Address + sql.append("(SELECT MIN (c_location_id) "); + sql.append("FROM C_BPARTNER_LOCATION bpl "); + sql.append("WHERE bpl.c_bpartner_id = bp.c_bpartner_id) c_location_id, );" + */ + sql.append("bpl.c_location_id, "); + if (DB.isPostgreSQL()) + sql.append("date_part('year', ?::timestamp), trunc(?::timestamp),"); + else + sql.append("EXTRACT(year from ?), TRUNC (?), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 1), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 2), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 3), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 4), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 5), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 6), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 7), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 8), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 9), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 10), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 11), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 12), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 13), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 14), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 15), "); + sql.append("asu_get1099bucket (bp.c_bpartner_id, ?, 16) "); + sql.append("FROM c_bpartner bp, c_bpartner_location bpl "); //Yvonne: added C_BPARTNER_LOCATION bpl + sql.append("WHERE bp.c_bpartner_id = bpl.c_bpartner_id "); //Yvonne: added + sql.append("AND bp.isactive = 'Y' "); + sql.append("AND bp.ad_client_id = ? "); + sql.append("AND bp.isvendor = 'Y' "); + sql.append("AND bp.is1099vendor = 'Y' "); + sql.append("AND bpl.c_bpartner_location_id IN ( "); + sql.append(" SELECT i.c_bpartner_location_id "); + sql.append(" FROM c_invoice i, c_invoiceline il "); + sql.append(" WHERE i.c_invoice_id = il.c_invoice_id "); + sql.append(" AND i.issotrx = 'N' "); + sql.append(" AND i.docstatus IN ('CO', 'CL') "); + sql.append(" AND i.ad_client_id = ? "); + sql.append(" AND i.ispaid = 'Y' "); //Yvonne 16/02/2009: only those which have been paid + sql.append(" AND il.asu_1099box_id IS NOT NULL "); + sql.append(" AND i.dateacct BETWEEN "); + if (DB.isPostgreSQL()) + sql.append("date_trunc('year', ?::timestamp) "); + else + sql.append("TRUNC (?, 'YEAR') "); + sql.append("AND ?) "); + log.finest(sql.toString()); + + PreparedStatement pstmt = null; + // + try + { + pstmt = DB.prepareStatement(sql.toString(), get_TrxName()); + pstmt.setInt(1, AD_PInstance_ID); + pstmt.setTimestamp(2, p_Cut_Date); + pstmt.setTimestamp(3, p_Cut_Date); + pstmt.setTimestamp(4, p_Cut_Date); + pstmt.setTimestamp(5, p_Cut_Date); + pstmt.setTimestamp(6, p_Cut_Date); + pstmt.setTimestamp(7, p_Cut_Date); + pstmt.setTimestamp(8, p_Cut_Date); + pstmt.setTimestamp(9, p_Cut_Date); + pstmt.setTimestamp(10, p_Cut_Date); + pstmt.setTimestamp(11, p_Cut_Date); + pstmt.setTimestamp(12, p_Cut_Date); + pstmt.setTimestamp(13, p_Cut_Date); + pstmt.setTimestamp(14, p_Cut_Date); + pstmt.setTimestamp(15, p_Cut_Date); + pstmt.setTimestamp(16, p_Cut_Date); + pstmt.setTimestamp(17, p_Cut_Date); + pstmt.setTimestamp(18, p_Cut_Date); + pstmt.setTimestamp(19, p_Cut_Date); + pstmt.setInt(20, getAD_Client_ID()); + pstmt.setInt(21, getAD_Client_ID()); + pstmt.setTimestamp(22, p_Cut_Date); + pstmt.setTimestamp(23, p_Cut_Date); + + int rows = pstmt.executeUpdate(); + log.info("inserted rows=" + rows); + + pstmt.close(); + pstmt = null; + } + catch (Exception e) + { + log.log(Level.SEVERE, sql.toString(), e); + } + try + { + if (pstmt != null) + pstmt.close(); + pstmt = null; + } + catch (Exception e) + { + pstmt = null; + } + // + return ""; + } // doIt + +} // ASU_Fill1099Extract \ No newline at end of file diff --git a/org.adempiere.base/src/org/compiere/model/I_ASU_1099Box.java b/org.adempiere.base/src/org/compiere/model/I_ASU_1099Box.java new file mode 100644 index 0000000000..94f75abfb3 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/I_ASU_1099Box.java @@ -0,0 +1,188 @@ +/****************************************************************************** + * 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 ASU_1099Box + * @author iDempiere (generated) + * @version Release 1.0a + */ +public interface I_ASU_1099Box +{ + + /** TableName=ASU_1099Box */ + public static final String Table_Name = "ASU_1099Box"; + + /** AD_Table_ID=200069 */ + public static final int Table_ID = 200069; + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(3); + + /** Load Meta Data */ + + /** Column name AD_Client_ID */ + public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; + + /** Get Client. + * Client/Tenant for this installation. + */ + public int getAD_Client_ID(); + + /** Column name AD_Org_ID */ + public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; + + /** Set Organization. + * Organizational entity within client + */ + public void setAD_Org_ID (int AD_Org_ID); + + /** Get Organization. + * Organizational entity within client + */ + public int getAD_Org_ID(); + + /** Column name ASU_1099Box_ID */ + public static final String COLUMNNAME_ASU_1099Box_ID = "ASU_1099Box_ID"; + + /** Set 1099 Box */ + public void setASU_1099Box_ID (int ASU_1099Box_ID); + + /** Get 1099 Box */ + public int getASU_1099Box_ID(); + + /** Column name ASU_1099Box_UU */ + public static final String COLUMNNAME_ASU_1099Box_UU = "ASU_1099Box_UU"; + + /** Set ASU_1099Box_UU */ + public void setASU_1099Box_UU (String ASU_1099Box_UU); + + /** Get ASU_1099Box_UU */ + public String getASU_1099Box_UU(); + + /** Column name Bucket */ + public static final String COLUMNNAME_Bucket = "Bucket"; + + /** Set Bucket */ + public void setBucket (int Bucket); + + /** Get Bucket */ + public int getBucket(); + + /** 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 Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** 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(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/org.adempiere.base/src/org/compiere/model/I_C_BPartner.java b/org.adempiere.base/src/org/compiere/model/I_C_BPartner.java index 0a50182131..fcfd344798 100644 --- a/org.adempiere.base/src/org/compiere/model/I_C_BPartner.java +++ b/org.adempiere.base/src/org/compiere/model/I_C_BPartner.java @@ -88,19 +88,6 @@ public interface I_C_BPartner */ public String getAD_Language(); - /** Column name AD_OrgBP_ID */ - public static final String COLUMNNAME_AD_OrgBP_ID = "AD_OrgBP_ID"; - - /** Set Linked Organization. - * The Business Partner is another Organization for explicit Inter-Org transactions - */ - public void setAD_OrgBP_ID (String AD_OrgBP_ID); - - /** Get Linked Organization. - * The Business Partner is another Organization for explicit Inter-Org transactions - */ - public String getAD_OrgBP_ID(); - /** Column name AD_Org_ID */ public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; @@ -114,6 +101,19 @@ public interface I_C_BPartner */ public int getAD_Org_ID(); + /** Column name AD_OrgBP_ID */ + public static final String COLUMNNAME_AD_OrgBP_ID = "AD_OrgBP_ID"; + + /** Set Linked Organization. + * The Business Partner is another Organization for explicit Inter-Org transactions + */ + public void setAD_OrgBP_ID (String AD_OrgBP_ID); + + /** Get Linked Organization. + * The Business Partner is another Organization for explicit Inter-Org transactions + */ + public String getAD_OrgBP_ID(); + /** Column name BPartner_Parent_ID */ public static final String COLUMNNAME_BPartner_Parent_ID = "BPartner_Parent_ID"; @@ -127,6 +127,21 @@ public interface I_C_BPartner */ public int getBPartner_Parent_ID(); + /** Column name C_BP_Group_ID */ + public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; + + /** Set Business Partner Group. + * Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID); + + /** Get Business Partner Group. + * Business Partner Group + */ + public int getC_BP_Group_ID(); + + public org.compiere.model.I_C_BP_Group getC_BP_Group() throws RuntimeException; + /** Column name C_BPartner_ID */ public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; @@ -149,21 +164,6 @@ public interface I_C_BPartner /** Get C_BPartner_UU */ public String getC_BPartner_UU(); - /** Column name C_BP_Group_ID */ - public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; - - /** Set Business Partner Group. - * Business Partner Group - */ - public void setC_BP_Group_ID (int C_BP_Group_ID); - - /** Get Business Partner Group. - * Business Partner Group - */ - public int getC_BP_Group_ID(); - - public org.compiere.model.I_C_BP_Group getC_BP_Group() throws RuntimeException; - /** Column name C_Dunning_ID */ public static final String COLUMNNAME_C_Dunning_ID = "C_Dunning_ID"; @@ -224,6 +224,17 @@ public interface I_C_BPartner public org.compiere.model.I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException; + /** Column name C_TaxGroup_ID */ + public static final String COLUMNNAME_C_TaxGroup_ID = "C_TaxGroup_ID"; + + /** Set Tax Group */ + public void setC_TaxGroup_ID (int C_TaxGroup_ID); + + /** Get Tax Group */ + public int getC_TaxGroup_ID(); + + public org.eevolution.model.I_C_TaxGroup getC_TaxGroup() throws RuntimeException; + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -240,17 +251,6 @@ public interface I_C_BPartner */ public int getCreatedBy(); - /** Column name C_TaxGroup_ID */ - public static final String COLUMNNAME_C_TaxGroup_ID = "C_TaxGroup_ID"; - - /** Set Tax Group */ - public void setC_TaxGroup_ID (int C_TaxGroup_ID); - - /** Get Tax Group */ - public int getC_TaxGroup_ID(); - - public org.eevolution.model.I_C_TaxGroup getC_TaxGroup() throws RuntimeException; - /** Column name CustomerProfileID */ public static final String COLUMNNAME_CustomerProfileID = "CustomerProfileID"; @@ -260,6 +260,17 @@ public interface I_C_BPartner /** Get Customer Profile ID */ public String getCustomerProfileID(); + /** Column name Default1099Box_ID */ + public static final String COLUMNNAME_Default1099Box_ID = "Default1099Box_ID"; + + /** Set Default 1099 Box */ + public void setDefault1099Box_ID (int Default1099Box_ID); + + /** Get Default 1099 Box */ + public int getDefault1099Box_ID(); + + public org.compiere.model.I_ASU_1099Box getDefault1099Box() throws RuntimeException; + /** Column name DeliveryRule */ public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; @@ -401,6 +412,15 @@ public interface I_C_BPartner */ public String getInvoiceRule(); + /** Column name Is1099Vendor */ + public static final String COLUMNNAME_Is1099Vendor = "Is1099Vendor"; + + /** Set 1099 Vendor */ + public void setIs1099Vendor (boolean Is1099Vendor); + + /** Get 1099 Vendor */ + public boolean is1099Vendor(); + /** Column name IsActive */ public static final String COLUMNNAME_IsActive = "IsActive"; @@ -847,19 +867,6 @@ public interface I_C_BPartner */ public BigDecimal getSO_CreditLimit(); - /** Column name SOCreditStatus */ - public static final String COLUMNNAME_SOCreditStatus = "SOCreditStatus"; - - /** Set Credit Status. - * Business Partner Credit Status - */ - public void setSOCreditStatus (String SOCreditStatus); - - /** Get Credit Status. - * Business Partner Credit Status - */ - public String getSOCreditStatus(); - /** Column name SO_CreditUsed */ public static final String COLUMNNAME_SO_CreditUsed = "SO_CreditUsed"; @@ -886,6 +893,19 @@ public interface I_C_BPartner */ public String getSO_Description(); + /** Column name SOCreditStatus */ + public static final String COLUMNNAME_SOCreditStatus = "SOCreditStatus"; + + /** Set Credit Status. + * Business Partner Credit Status + */ + public void setSOCreditStatus (String SOCreditStatus); + + /** Get Credit Status. + * Business Partner Credit Status + */ + public String getSOCreditStatus(); + /** Column name TaxID */ public static final String COLUMNNAME_TaxID = "TaxID"; diff --git a/org.adempiere.base/src/org/compiere/model/I_C_InvoiceLine.java b/org.adempiere.base/src/org/compiere/model/I_C_InvoiceLine.java index bb61a58a9c..d71f43a98e 100644 --- a/org.adempiere.base/src/org/compiere/model/I_C_InvoiceLine.java +++ b/org.adempiere.base/src/org/compiere/model/I_C_InvoiceLine.java @@ -89,6 +89,15 @@ public interface I_C_InvoiceLine /** Get Create Asset */ public boolean isA_CreateAsset(); + /** Column name A_Processed */ + public static final String COLUMNNAME_A_Processed = "A_Processed"; + + /** Set Processed */ + public void setA_Processed (boolean A_Processed); + + /** Get Processed */ + public boolean isA_Processed(); + /** Column name AD_Client_ID */ public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; @@ -123,14 +132,16 @@ public interface I_C_InvoiceLine */ public int getAD_OrgTrx_ID(); - /** Column name A_Processed */ - public static final String COLUMNNAME_A_Processed = "A_Processed"; + /** Column name ASU_1099Box_ID */ + public static final String COLUMNNAME_ASU_1099Box_ID = "ASU_1099Box_ID"; - /** Set Processed */ - public void setA_Processed (boolean A_Processed); + /** Set 1099 Box */ + public void setASU_1099Box_ID (int ASU_1099Box_ID); - /** Get Processed */ - public boolean isA_Processed(); + /** Get 1099 Box */ + public int getASU_1099Box_ID(); + + public org.compiere.model.I_ASU_1099Box getASU_1099Box() throws RuntimeException; /** Column name C_Activity_ID */ public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; @@ -274,22 +285,6 @@ public interface I_C_InvoiceLine public org.compiere.model.I_C_ProjectTask getC_ProjectTask() 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 C_Tax_ID */ public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; @@ -320,6 +315,22 @@ public interface I_C_InvoiceLine public org.compiere.model.I_C_UOM getC_UOM() 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"; diff --git a/org.adempiere.base/src/org/compiere/model/I_I_Invoice.java b/org.adempiere.base/src/org/compiere/model/I_I_Invoice.java index b91375478c..c43ede6a7b 100644 --- a/org.adempiere.base/src/org/compiere/model/I_I_Invoice.java +++ b/org.adempiere.base/src/org/compiere/model/I_I_Invoice.java @@ -44,10 +44,14 @@ public interface I_I_Invoice /** Column name ActivityValue */ public static final String COLUMNNAME_ActivityValue = "ActivityValue"; - /** Set Activity Value */ + /** Set Activity Key. + * Text key for Activity + */ public void setActivityValue (String ActivityValue); - /** Get Activity Value */ + /** Get Activity Key. + * Text key for Activity + */ public String getActivityValue(); /** Column name AD_Client_ID */ @@ -58,32 +62,6 @@ public interface I_I_Invoice */ public int getAD_Client_ID(); - /** Column name Address1 */ - public static final String COLUMNNAME_Address1 = "Address1"; - - /** Set Address 1. - * Address line 1 for this location - */ - public void setAddress1 (String Address1); - - /** Get Address 1. - * Address line 1 for this location - */ - public String getAddress1(); - - /** Column name Address2 */ - public static final String COLUMNNAME_Address2 = "Address2"; - - /** Set Address 2. - * Address line 2 for this location - */ - public void setAddress2 (String Address2); - - /** Get Address 2. - * Address line 2 for this location - */ - public String getAddress2(); - /** Column name AD_Org_ID */ public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; @@ -125,6 +103,52 @@ public interface I_I_Invoice public org.compiere.model.I_AD_User getAD_User() throws RuntimeException; + /** Column name Address1 */ + public static final String COLUMNNAME_Address1 = "Address1"; + + /** Set Address 1. + * Address line 1 for this location + */ + public void setAddress1 (String Address1); + + /** Get Address 1. + * Address line 1 for this location + */ + public String getAddress1(); + + /** Column name Address2 */ + public static final String COLUMNNAME_Address2 = "Address2"; + + /** Set Address 2. + * Address line 2 for this location + */ + public void setAddress2 (String Address2); + + /** Get Address 2. + * Address line 2 for this location + */ + public String getAddress2(); + + /** Column name ASU_1099Box_ID */ + public static final String COLUMNNAME_ASU_1099Box_ID = "ASU_1099Box_ID"; + + /** Set 1099 Box */ + public void setASU_1099Box_ID (int ASU_1099Box_ID); + + /** Get 1099 Box */ + public int getASU_1099Box_ID(); + + public org.compiere.model.I_ASU_1099Box getASU_1099Box() throws RuntimeException; + + /** Column name ASU_1099Box_Value */ + public static final String COLUMNNAME_ASU_1099Box_Value = "ASU_1099Box_Value"; + + /** Set 1099 Box Value */ + public void setASU_1099Box_Value (String ASU_1099Box_Value); + + /** Get 1099 Box Value */ + public String getASU_1099Box_Value(); + /** Column name BPartnerValue */ public static final String COLUMNNAME_BPartnerValue = "BPartnerValue"; @@ -258,19 +282,6 @@ public interface I_I_Invoice public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException; - /** Column name ChargeName */ - public static final String COLUMNNAME_ChargeName = "ChargeName"; - - /** Set Charge Name. - * Name of the Charge - */ - public void setChargeName (String ChargeName); - - /** Get Charge Name. - * Name of the Charge - */ - public String getChargeName(); - /** Column name C_Invoice_ID */ public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; @@ -301,19 +312,6 @@ public interface I_I_Invoice public org.compiere.model.I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException; - /** Column name City */ - public static final String COLUMNNAME_City = "City"; - - /** Set City. - * Identifies a City - */ - public void setCity (String City); - - /** Get City. - * Identifies a City - */ - public String getCity(); - /** Column name C_Location_ID */ public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; @@ -329,32 +327,6 @@ public interface I_I_Invoice public org.compiere.model.I_C_Location getC_Location() throws RuntimeException; - /** Column name ContactName */ - public static final String COLUMNNAME_ContactName = "ContactName"; - - /** Set Contact Name. - * Business Partner Contact Name - */ - public void setContactName (String ContactName); - - /** Get Contact Name. - * Business Partner Contact Name - */ - public String getContactName(); - - /** Column name CountryCode */ - public static final String COLUMNNAME_CountryCode = "CountryCode"; - - /** Set ISO Country Code. - * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html - */ - public void setCountryCode (boolean CountryCode); - - /** Get ISO Country Code. - * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html - */ - public boolean isCountryCode(); - /** Column name C_PaymentTerm_ID */ public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; @@ -385,22 +357,6 @@ public interface I_I_Invoice public org.compiere.model.I_C_Project getC_Project() throws RuntimeException; - /** Column name Created */ - public static final String COLUMNNAME_Created = "Created"; - - /** Get Created. - * Date this record was created - */ - public Timestamp getCreated(); - - /** Column name CreatedBy */ - public static final String COLUMNNAME_CreatedBy = "CreatedBy"; - - /** Get Created By. - * User who created this records - */ - public int getCreatedBy(); - /** Column name C_Region_ID */ public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; @@ -431,6 +387,74 @@ public interface I_I_Invoice public org.compiere.model.I_C_Tax getC_Tax() throws RuntimeException; + /** Column name ChargeName */ + public static final String COLUMNNAME_ChargeName = "ChargeName"; + + /** Set Charge Name. + * Name of the Charge + */ + public void setChargeName (String ChargeName); + + /** Get Charge Name. + * Name of the Charge + */ + public String getChargeName(); + + /** Column name City */ + public static final String COLUMNNAME_City = "City"; + + /** Set City. + * Identifies a City + */ + public void setCity (String City); + + /** Get City. + * Identifies a City + */ + public String getCity(); + + /** Column name ContactName */ + public static final String COLUMNNAME_ContactName = "ContactName"; + + /** Set Contact Name. + * Business Partner Contact Name + */ + public void setContactName (String ContactName); + + /** Get Contact Name. + * Business Partner Contact Name + */ + public String getContactName(); + + /** Column name CountryCode */ + public static final String COLUMNNAME_CountryCode = "CountryCode"; + + /** Set ISO Country Code. + * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public void setCountryCode (boolean CountryCode); + + /** Get ISO Country Code. + * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public boolean isCountryCode(); + + /** 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 DateAcct */ public static final String COLUMNNAME_DateAcct = "DateAcct"; diff --git a/org.adempiere.base/src/org/compiere/model/X_ASU_1099Box.java b/org.adempiere.base/src/org/compiere/model/X_ASU_1099Box.java new file mode 100644 index 0000000000..215c7d0ae3 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/X_ASU_1099Box.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; +import org.compiere.util.KeyNamePair; + +/** Generated Model for ASU_1099Box + * @author iDempiere (generated) + * @version Release 1.0a - $Id$ */ +public class X_ASU_1099Box extends PO implements I_ASU_1099Box, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 20130228L; + + /** Standard Constructor */ + public X_ASU_1099Box (Properties ctx, int ASU_1099Box_ID, String trxName) + { + super (ctx, ASU_1099Box_ID, trxName); + /** if (ASU_1099Box_ID == 0) + { + setASU_1099Box_ID (0); + setBucket (0); + setName (null); + setValue (null); + } */ + } + + /** Load Constructor */ + public X_ASU_1099Box (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_ASU_1099Box[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set 1099 Box. + @param ASU_1099Box_ID 1099 Box */ + public void setASU_1099Box_ID (int ASU_1099Box_ID) + { + if (ASU_1099Box_ID < 1) + set_ValueNoCheck (COLUMNNAME_ASU_1099Box_ID, null); + else + set_ValueNoCheck (COLUMNNAME_ASU_1099Box_ID, Integer.valueOf(ASU_1099Box_ID)); + } + + /** Get 1099 Box. + @return 1099 Box */ + public int getASU_1099Box_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ASU_1099Box_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set ASU_1099Box_UU. + @param ASU_1099Box_UU ASU_1099Box_UU */ + public void setASU_1099Box_UU (String ASU_1099Box_UU) + { + set_Value (COLUMNNAME_ASU_1099Box_UU, ASU_1099Box_UU); + } + + /** Get ASU_1099Box_UU. + @return ASU_1099Box_UU */ + public String getASU_1099Box_UU () + { + return (String)get_Value(COLUMNNAME_ASU_1099Box_UU); + } + + /** Set Bucket. + @param Bucket Bucket */ + public void setBucket (int Bucket) + { + set_Value (COLUMNNAME_Bucket, Integer.valueOf(Bucket)); + } + + /** Get Bucket. + @return Bucket */ + public int getBucket () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Bucket); + 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 Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/org.adempiere.base/src/org/compiere/model/X_C_BPartner.java b/org.adempiere.base/src/org/compiere/model/X_C_BPartner.java index 7e66fbe424..8cb13bd986 100644 --- a/org.adempiere.base/src/org/compiere/model/X_C_BPartner.java +++ b/org.adempiere.base/src/org/compiere/model/X_C_BPartner.java @@ -33,7 +33,7 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent /** * */ - private static final long serialVersionUID = 20121031L; + private static final long serialVersionUID = 20130228L; /** Standard Constructor */ public X_C_BPartner (Properties ctx, int C_BPartner_ID, String trxName) @@ -41,8 +41,10 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent super (ctx, C_BPartner_ID, trxName); /** if (C_BPartner_ID == 0) { - setC_BPartner_ID (0); setC_BP_Group_ID (0); + setC_BPartner_ID (0); + setIs1099Vendor (false); +// N setIsCustomer (false); setIsEmployee (false); setIsOneTime (false); @@ -188,6 +190,34 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return ii.intValue(); } + public org.compiere.model.I_C_BP_Group getC_BP_Group() throws RuntimeException + { + return (org.compiere.model.I_C_BP_Group)MTable.get(getCtx(), org.compiere.model.I_C_BP_Group.Table_Name) + .getPO(getC_BP_Group_ID(), get_TrxName()); } + + /** Set Business Partner Group. + @param C_BP_Group_ID + Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID) + { + if (C_BP_Group_ID < 1) + set_Value (COLUMNNAME_C_BP_Group_ID, null); + else + set_Value (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + } + + /** Get Business Partner Group. + @return Business Partner Group + */ + public int getC_BP_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + /** Set Business Partner . @param C_BPartner_ID Identifies a Business Partner @@ -225,34 +255,6 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return (String)get_Value(COLUMNNAME_C_BPartner_UU); } - public org.compiere.model.I_C_BP_Group getC_BP_Group() throws RuntimeException - { - return (org.compiere.model.I_C_BP_Group)MTable.get(getCtx(), org.compiere.model.I_C_BP_Group.Table_Name) - .getPO(getC_BP_Group_ID(), get_TrxName()); } - - /** Set Business Partner Group. - @param C_BP_Group_ID - Business Partner Group - */ - public void setC_BP_Group_ID (int C_BP_Group_ID) - { - if (C_BP_Group_ID < 1) - set_Value (COLUMNNAME_C_BP_Group_ID, null); - else - set_Value (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); - } - - /** Get Business Partner Group. - @return Business Partner Group - */ - public int getC_BP_Group_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Group_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - public org.compiere.model.I_C_Dunning getC_Dunning() throws RuntimeException { return (org.compiere.model.I_C_Dunning)MTable.get(getCtx(), org.compiere.model.I_C_Dunning.Table_Name) @@ -404,6 +406,31 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return (String)get_Value(COLUMNNAME_CustomerProfileID); } + public org.compiere.model.I_ASU_1099Box getDefault1099Box() throws RuntimeException + { + return (org.compiere.model.I_ASU_1099Box)MTable.get(getCtx(), org.compiere.model.I_ASU_1099Box.Table_Name) + .getPO(getDefault1099Box_ID(), get_TrxName()); } + + /** Set Default 1099 Box. + @param Default1099Box_ID Default 1099 Box */ + public void setDefault1099Box_ID (int Default1099Box_ID) + { + if (Default1099Box_ID < 1) + set_Value (COLUMNNAME_Default1099Box_ID, null); + else + set_Value (COLUMNNAME_Default1099Box_ID, Integer.valueOf(Default1099Box_ID)); + } + + /** Get Default 1099 Box. + @return Default 1099 Box */ + public int getDefault1099Box_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Default1099Box_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + /** DeliveryRule AD_Reference_ID=151 */ public static final int DELIVERYRULE_AD_Reference_ID=151; /** After Receipt = R */ @@ -651,6 +678,27 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return (String)get_Value(COLUMNNAME_InvoiceRule); } + /** Set 1099 Vendor. + @param Is1099Vendor 1099 Vendor */ + public void setIs1099Vendor (boolean Is1099Vendor) + { + set_Value (COLUMNNAME_Is1099Vendor, Boolean.valueOf(Is1099Vendor)); + } + + /** Get 1099 Vendor. + @return 1099 Vendor */ + public boolean is1099Vendor () + { + Object oo = get_Value(COLUMNNAME_Is1099Vendor); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Customer. @param IsCustomer Indicates if this Business Partner is a Customer @@ -1422,36 +1470,6 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return bd; } - /** SOCreditStatus AD_Reference_ID=289 */ - public static final int SOCREDITSTATUS_AD_Reference_ID=289; - /** Credit Stop = S */ - public static final String SOCREDITSTATUS_CreditStop = "S"; - /** Credit Hold = H */ - public static final String SOCREDITSTATUS_CreditHold = "H"; - /** Credit Watch = W */ - public static final String SOCREDITSTATUS_CreditWatch = "W"; - /** No Credit Check = X */ - public static final String SOCREDITSTATUS_NoCreditCheck = "X"; - /** Credit OK = O */ - public static final String SOCREDITSTATUS_CreditOK = "O"; - /** Set Credit Status. - @param SOCreditStatus - Business Partner Credit Status - */ - public void setSOCreditStatus (String SOCreditStatus) - { - - set_Value (COLUMNNAME_SOCreditStatus, SOCreditStatus); - } - - /** Get Credit Status. - @return Business Partner Credit Status - */ - public String getSOCreditStatus () - { - return (String)get_Value(COLUMNNAME_SOCreditStatus); - } - /** Set Credit Used. @param SO_CreditUsed Current open balance @@ -1489,6 +1507,36 @@ public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent return (String)get_Value(COLUMNNAME_SO_Description); } + /** SOCreditStatus AD_Reference_ID=289 */ + public static final int SOCREDITSTATUS_AD_Reference_ID=289; + /** Credit Stop = S */ + public static final String SOCREDITSTATUS_CreditStop = "S"; + /** Credit Hold = H */ + public static final String SOCREDITSTATUS_CreditHold = "H"; + /** Credit Watch = W */ + public static final String SOCREDITSTATUS_CreditWatch = "W"; + /** No Credit Check = X */ + public static final String SOCREDITSTATUS_NoCreditCheck = "X"; + /** Credit OK = O */ + public static final String SOCREDITSTATUS_CreditOK = "O"; + /** Set Credit Status. + @param SOCreditStatus + Business Partner Credit Status + */ + public void setSOCreditStatus (String SOCreditStatus) + { + + set_Value (COLUMNNAME_SOCreditStatus, SOCreditStatus); + } + + /** Get Credit Status. + @return Business Partner Credit Status + */ + public String getSOCreditStatus () + { + return (String)get_Value(COLUMNNAME_SOCreditStatus); + } + /** Set Tax ID. @param TaxID Tax Identification diff --git a/org.adempiere.base/src/org/compiere/model/X_C_InvoiceLine.java b/org.adempiere.base/src/org/compiere/model/X_C_InvoiceLine.java index 98a17d8a29..cf667a0317 100644 --- a/org.adempiere.base/src/org/compiere/model/X_C_InvoiceLine.java +++ b/org.adempiere.base/src/org/compiere/model/X_C_InvoiceLine.java @@ -33,7 +33,7 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent /** * */ - private static final long serialVersionUID = 20121031L; + private static final long serialVersionUID = 20130228L; /** Standard Constructor */ public X_C_InvoiceLine (Properties ctx, int C_InvoiceLine_ID, String trxName) @@ -190,6 +190,27 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return false; } + /** Set Processed. + @param A_Processed Processed */ + public void setA_Processed (boolean A_Processed) + { + set_Value (COLUMNNAME_A_Processed, Boolean.valueOf(A_Processed)); + } + + /** Get Processed. + @return Processed */ + public boolean isA_Processed () + { + Object oo = get_Value(COLUMNNAME_A_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Trx Organization. @param AD_OrgTrx_ID Performing or initiating organization @@ -213,25 +234,29 @@ public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent return ii.intValue(); } - /** Set Processed. - @param A_Processed Processed */ - public void setA_Processed (boolean A_Processed) + public org.compiere.model.I_ASU_1099Box getASU_1099Box() throws RuntimeException + { + return (org.compiere.model.I_ASU_1099Box)MTable.get(getCtx(), org.compiere.model.I_ASU_1099Box.Table_Name) + .getPO(getASU_1099Box_ID(), get_TrxName()); } + + /** Set 1099 Box. + @param ASU_1099Box_ID 1099 Box */ + public void setASU_1099Box_ID (int ASU_1099Box_ID) { - set_Value (COLUMNNAME_A_Processed, Boolean.valueOf(A_Processed)); + if (ASU_1099Box_ID < 1) + set_Value (COLUMNNAME_ASU_1099Box_ID, null); + else + set_Value (COLUMNNAME_ASU_1099Box_ID, Integer.valueOf(ASU_1099Box_ID)); } - /** Get Processed. - @return Processed */ - public boolean isA_Processed () + /** Get 1099 Box. + @return 1099 Box */ + public int getASU_1099Box_ID () { - Object oo = get_Value(COLUMNNAME_A_Processed); - if (oo != null) - { - if (oo instanceof Boolean) - return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); - } - return false; + Integer ii = (Integer)get_Value(COLUMNNAME_ASU_1099Box_ID); + if (ii == null) + return 0; + return ii.intValue(); } public org.compiere.model.I_C_Activity getC_Activity() throws RuntimeException diff --git a/org.adempiere.base/src/org/compiere/model/X_I_Invoice.java b/org.adempiere.base/src/org/compiere/model/X_I_Invoice.java index f8b1a54188..c742882a63 100644 --- a/org.adempiere.base/src/org/compiere/model/X_I_Invoice.java +++ b/org.adempiere.base/src/org/compiere/model/X_I_Invoice.java @@ -32,7 +32,7 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent /** * */ - private static final long serialVersionUID = 20121031L; + private static final long serialVersionUID = 20130228L; /** Standard Constructor */ public X_I_Invoice (Properties ctx, int I_Invoice_ID, String trxName) @@ -73,54 +73,23 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return sb.toString(); } - /** Set Activity Value. - @param ActivityValue Activity Value */ + /** Set Activity Key. + @param ActivityValue + Text key for Activity + */ public void setActivityValue (String ActivityValue) { set_Value (COLUMNNAME_ActivityValue, ActivityValue); } - /** Get Activity Value. - @return Activity Value */ + /** Get Activity Key. + @return Text key for Activity + */ public String getActivityValue () { return (String)get_Value(COLUMNNAME_ActivityValue); } - /** Set Address 1. - @param Address1 - Address line 1 for this location - */ - public void setAddress1 (String Address1) - { - set_Value (COLUMNNAME_Address1, Address1); - } - - /** Get Address 1. - @return Address line 1 for this location - */ - public String getAddress1 () - { - return (String)get_Value(COLUMNNAME_Address1); - } - - /** Set Address 2. - @param Address2 - Address line 2 for this location - */ - public void setAddress2 (String Address2) - { - set_Value (COLUMNNAME_Address2, Address2); - } - - /** Get Address 2. - @return Address line 2 for this location - */ - public String getAddress2 () - { - return (String)get_Value(COLUMNNAME_Address2); - } - /** Set Trx Organization. @param AD_OrgTrx_ID Performing or initiating organization @@ -172,6 +141,79 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } + /** Set Address 1. + @param Address1 + Address line 1 for this location + */ + public void setAddress1 (String Address1) + { + set_Value (COLUMNNAME_Address1, Address1); + } + + /** Get Address 1. + @return Address line 1 for this location + */ + public String getAddress1 () + { + return (String)get_Value(COLUMNNAME_Address1); + } + + /** Set Address 2. + @param Address2 + Address line 2 for this location + */ + public void setAddress2 (String Address2) + { + set_Value (COLUMNNAME_Address2, Address2); + } + + /** Get Address 2. + @return Address line 2 for this location + */ + public String getAddress2 () + { + return (String)get_Value(COLUMNNAME_Address2); + } + + public org.compiere.model.I_ASU_1099Box getASU_1099Box() throws RuntimeException + { + return (org.compiere.model.I_ASU_1099Box)MTable.get(getCtx(), org.compiere.model.I_ASU_1099Box.Table_Name) + .getPO(getASU_1099Box_ID(), get_TrxName()); } + + /** Set 1099 Box. + @param ASU_1099Box_ID 1099 Box */ + public void setASU_1099Box_ID (int ASU_1099Box_ID) + { + if (ASU_1099Box_ID < 1) + set_Value (COLUMNNAME_ASU_1099Box_ID, null); + else + set_Value (COLUMNNAME_ASU_1099Box_ID, Integer.valueOf(ASU_1099Box_ID)); + } + + /** Get 1099 Box. + @return 1099 Box */ + public int getASU_1099Box_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ASU_1099Box_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set 1099 Box Value. + @param ASU_1099Box_Value 1099 Box Value */ + public void setASU_1099Box_Value (String ASU_1099Box_Value) + { + set_Value (COLUMNNAME_ASU_1099Box_Value, ASU_1099Box_Value); + } + + /** Get 1099 Box Value. + @return 1099 Box Value */ + public String getASU_1099Box_Value () + { + return (String)get_Value(COLUMNNAME_ASU_1099Box_Value); + } + /** Set Business Partner Key. @param BPartnerValue Key of the Business Partner @@ -413,23 +455,6 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - /** Set Charge Name. - @param ChargeName - Name of the Charge - */ - public void setChargeName (String ChargeName) - { - set_Value (COLUMNNAME_ChargeName, ChargeName); - } - - /** Get Charge Name. - @return Name of the Charge - */ - public String getChargeName () - { - return (String)get_Value(COLUMNNAME_ChargeName); - } - public org.compiere.model.I_C_Invoice getC_Invoice() throws RuntimeException { return (org.compiere.model.I_C_Invoice)MTable.get(getCtx(), org.compiere.model.I_C_Invoice.Table_Name) @@ -486,23 +511,6 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - /** Set City. - @param City - Identifies a City - */ - public void setCity (String City) - { - set_Value (COLUMNNAME_City, City); - } - - /** Get City. - @return Identifies a City - */ - public String getCity () - { - return (String)get_Value(COLUMNNAME_City); - } - public org.compiere.model.I_C_Location getC_Location() throws RuntimeException { return (org.compiere.model.I_C_Location)MTable.get(getCtx(), org.compiere.model.I_C_Location.Table_Name) @@ -531,47 +539,6 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } - /** Set Contact Name. - @param ContactName - Business Partner Contact Name - */ - public void setContactName (String ContactName) - { - set_Value (COLUMNNAME_ContactName, ContactName); - } - - /** Get Contact Name. - @return Business Partner Contact Name - */ - public String getContactName () - { - return (String)get_Value(COLUMNNAME_ContactName); - } - - /** Set ISO Country Code. - @param CountryCode - Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html - */ - public void setCountryCode (boolean CountryCode) - { - set_Value (COLUMNNAME_CountryCode, Boolean.valueOf(CountryCode)); - } - - /** Get ISO Country Code. - @return Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html - */ - public boolean isCountryCode () - { - Object oo = get_Value(COLUMNNAME_CountryCode); - if (oo != null) - { - if (oo instanceof Boolean) - return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); - } - return false; - } - public org.compiere.model.I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException { return (org.compiere.model.I_C_PaymentTerm)MTable.get(getCtx(), org.compiere.model.I_C_PaymentTerm.Table_Name) @@ -684,6 +651,81 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent return ii.intValue(); } + /** Set Charge Name. + @param ChargeName + Name of the Charge + */ + public void setChargeName (String ChargeName) + { + set_Value (COLUMNNAME_ChargeName, ChargeName); + } + + /** Get Charge Name. + @return Name of the Charge + */ + public String getChargeName () + { + return (String)get_Value(COLUMNNAME_ChargeName); + } + + /** Set City. + @param City + Identifies a City + */ + public void setCity (String City) + { + set_Value (COLUMNNAME_City, City); + } + + /** Get City. + @return Identifies a City + */ + public String getCity () + { + return (String)get_Value(COLUMNNAME_City); + } + + /** Set Contact Name. + @param ContactName + Business Partner Contact Name + */ + public void setContactName (String ContactName) + { + set_Value (COLUMNNAME_ContactName, ContactName); + } + + /** Get Contact Name. + @return Business Partner Contact Name + */ + public String getContactName () + { + return (String)get_Value(COLUMNNAME_ContactName); + } + + /** Set ISO Country Code. + @param CountryCode + Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public void setCountryCode (boolean CountryCode) + { + set_Value (COLUMNNAME_CountryCode, Boolean.valueOf(CountryCode)); + } + + /** Get ISO Country Code. + @return Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public boolean isCountryCode () + { + Object oo = get_Value(COLUMNNAME_CountryCode); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Account Date. @param DateAcct Accounting Date diff --git a/org.adempiere.base/src/org/compiere/report/BankRegister.java b/org.adempiere.base/src/org/compiere/report/BankRegister.java new file mode 100644 index 0000000000..c2a16fc4a4 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/report/BankRegister.java @@ -0,0 +1,218 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2006 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.report; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import java.util.logging.Level; + +import org.compiere.model.MPeriod; +import org.compiere.print.MPrintFormat; +import org.compiere.process.ProcessInfoParameter; +import org.compiere.process.SvrProcess; +import org.compiere.util.DB; +import org.compiere.util.Env; +import org.compiere.util.Ini; +import org.compiere.util.Msg; + +/** + * Bank Register Report + * @author YvonneAw + * + */ + +public class BankRegister extends SvrProcess +{ + /** Bank Parameter */ + private int p_C_Bank_ID = 0; + /** Period Parameter */ + //private int p_C_Period_ID = 0; + private Timestamp p_DateAcct_From = null; + private Timestamp p_DateAcct_To = null; + /** BPartner Parameter */ + private int p_C_BPartner_ID = 0; + + + /** Parameter Where Clause */ + private StringBuffer m_parameterWhere = new StringBuffer(); + + /** Start Time */ + private long m_start = System.currentTimeMillis(); + + /** + * Prepare - e.g., get Parameters. + */ + protected void prepare() + { + StringBuffer sb = new StringBuffer ("Record_ID=") + .append(getRecord_ID()); + // Parameter + ProcessInfoParameter[] para = getParameter(); + for (int i = 0; i < para.length; i++) + { + String name = para[i].getParameterName(); + if (para[i].getParameter() == null && para[i].getParameter_To() == null) + ; + else if (name.equals("C_Bank_ID")) + p_C_Bank_ID = ((BigDecimal)para[i].getParameter()).intValue(); + //else if (name.equals("C_Period_ID")) + // p_C_Period_ID = ((BigDecimal)para[i].getParameter()).intValue(); + else if (name.equals("DateAcct")) + { + p_DateAcct_From = (Timestamp)para[i].getParameter(); + p_DateAcct_To = (Timestamp)para[i].getParameter_To(); + } + else if (name.equals("C_BPartner_ID")) + p_C_BPartner_ID = ((BigDecimal)para[i].getParameter()).intValue(); + else + log.log(Level.SEVERE, "Unknown Parameter: " + name); + } + m_parameterWhere.append(" fa.AD_Table_ID = (Select AD_Table_ID From AD_Table Where TableName = 'C_Payment') "); + m_parameterWhere.append(" And b.C_Bank_ID = " + p_C_Bank_ID); + + setDateAcct(); + sb.append(" - DateAcct ").append(p_DateAcct_From).append("-").append(p_DateAcct_To); + sb.append(" - Where=").append(m_parameterWhere); + log.fine(sb.toString()); + } // prepare + + /** + * Set Start/End Date of Report - if not defined current Month + */ + private void setDateAcct() + { + // Date defined + if (p_DateAcct_From == null && p_DateAcct_To == null) { + p_DateAcct_From = new Timestamp (System.currentTimeMillis()); + p_DateAcct_To = new Timestamp (System.currentTimeMillis()); + //return; + } + else if (p_DateAcct_From != null && p_DateAcct_To == null) + { + p_DateAcct_To = new Timestamp (System.currentTimeMillis()); + //return; + } + else if (p_DateAcct_From == null && p_DateAcct_To != null) + { + MPeriod first = MPeriod.getFirstInYear (getCtx(), p_DateAcct_To, Env.getAD_Org_ID(getCtx())); + p_DateAcct_From = first.getStartDate(); + //return; + } + } // setDateAcct + + + + /************************************************************************** + * Perform process. + * @return Message to be translated + */ + protected String doIt() + { + createBalanceLine(); + createDetailLines(); + int AD_PrintFormat_ID = DB.getSQLValue(get_TrxName(), "Select AD_PrintFormat_ID from AD_PrintFormat Where name = 'Bank Register Report'"); + if (AD_PrintFormat_ID > 0) { + if (Ini.isClient()) + getProcessInfo().setTransientObject (MPrintFormat.get (getCtx(), AD_PrintFormat_ID, false)); + else + getProcessInfo().setSerializableObject(MPrintFormat.get (getCtx(), AD_PrintFormat_ID, false)); + } + + log.fine((System.currentTimeMillis() - m_start) + " ms"); + return ""; + } // doIt + + /** + * Create Beginning Balance Line + */ + private void createBalanceLine() + { + StringBuffer sb = new StringBuffer ("INSERT INTO T_BankRegister " + + "(AD_PInstance_ID, AD_Client_ID, AD_Org_ID, " + + "DateAcct, C_Bank_ID, BankName, C_BPartner_ID, BPartner, DocumentNo," // Account, + + "AmtAcctDr, AmtAcctCr, Balance) "); + + sb.append("SELECT ").append(getAD_PInstance_ID()).append(", ").append(Env.getAD_Client_ID(getCtx())).append(", ").append(Env.getAD_Org_ID(getCtx())).append(", ") + .append(DB.TO_DATE(p_DateAcct_From, true)).append(", ").append(p_C_Bank_ID).append(", ") + .append(DB.TO_STRING(Msg.getMsg(Env.getCtx(), "Beginning Balance"))).append(", ").append(p_C_BPartner_ID).append(", NULL, NULL, " //NULL, + + "COALESCE(SUM(fa.AmtAcctDr),0), COALESCE(SUM(fa.AmtAcctCr),0), COALESCE(SUM(fa.AmtAcctDr-fa.AmtAcctCr),0) " + + "From Fact_Acct fa " + + "Inner Join C_Payment p On p.C_Payment_ID = fa.Record_ID AND p.docstatus IN ('CO', 'CL') " + + "Inner Join C_BankAccount ba On ba.C_BankAccount_ID = p.C_BankAccount_ID " + + "Inner Join C_Bank b On ba.C_Bank_ID = b.C_Bank_ID " + + "Inner Join C_BankAccount_Acct baa On p.C_BankAccount_ID = baa.C_BankAccount_ID " + + "Inner Join C_VALIDCOMBINATION vc On (vc.C_VALIDCOMBINATION_id = baa.B_InTransit_Acct Or vc.C_VALIDCOMBINATION_id = baa.B_Asset_Acct) " + + "Inner Join C_ElementValue ev On ev.C_ElementValue_ID = vc.Account_ID " + + "Left Outer Join C_BPartner bp On bp.C_BPartner_ID = fa.C_BPartner_ID " + + "WHERE ").append(m_parameterWhere) + .append(" AND TRUNC(fa.DateAcct) < ").append(DB.TO_DATE(p_DateAcct_From)) + .append(" And fa.Account_ID = vc.Account_ID "); + + // Yvonne 18/6/2009: Optional BPartner + if (p_C_BPartner_ID != 0) { + sb.append(" And fa.C_BPartner_ID = " + p_C_BPartner_ID); + } + // + // + int no = DB.executeUpdate(sb.toString(), get_TrxName()); + log.fine("#" + no); + log.finest(sb.toString()); + } // createBalanceLine + + /** + * Create Beginning Balance Line + */ + private void createDetailLines() + { + StringBuffer sb = new StringBuffer ("INSERT INTO T_BankRegister " + + "(AD_PInstance_ID, AD_Client_ID, AD_Org_ID, " + + "DateAcct, C_Bank_ID, BankName, C_BPartner_ID, BPartner, DocumentNo, " //Account, + + "AmtAcctDr, AmtAcctCr, Balance) "); + + sb.append("SELECT DISTINCT ").append(getAD_PInstance_ID()).append(", fa.AD_Client_ID, fa.AD_Org_ID, ") + .append("TRUNC(fa.DateAcct), b.C_Bank_ID, b.name, bp.C_BPartner_ID, bp.name, p.documentNo, " //ev.name, + + "fa.AmtAcctDr, fa.AmtAcctCr, fa.AmtAcctDr-fa.AmtAcctCr " + + "From Fact_Acct fa " + + "Inner Join C_Payment p On p.C_Payment_ID = fa.Record_ID AND p.docstatus IN ('CO', 'CL') " + + "Inner Join C_BankAccount ba On ba.C_BankAccount_ID = p.C_BankAccount_ID " + + "Inner Join C_Bank b On ba.C_Bank_ID = b.C_Bank_ID " + //Yvonne 8/7/2009: include all transactions where Bank Asset account and Bank In-Transit account + + "Inner Join C_BankAccount_Acct baa On p.C_BankAccount_ID = baa.C_BankAccount_ID " + + "Inner Join C_VALIDCOMBINATION vc On (vc.C_VALIDCOMBINATION_id = baa.B_InTransit_Acct Or vc.C_VALIDCOMBINATION_id = baa.B_Asset_Acct) " + + "Inner Join C_ElementValue ev On (ev.C_ElementValue_ID = vc.Account_ID) " + // + + "Left Outer Join C_BPartner bp On bp.C_BPartner_ID = fa.C_BPartner_ID " + + "WHERE ").append(m_parameterWhere) + .append(" AND TRUNC(fa.DateAcct) BETWEEN ").append(DB.TO_DATE(p_DateAcct_From)) + .append(" AND ").append(DB.TO_DATE(p_DateAcct_To)) + .append(" And fa.Account_ID = vc.Account_ID "); + + // Optional BPartner + if (p_C_BPartner_ID != 0) { + sb.append(" And fa.C_BPartner_ID = " + p_C_BPartner_ID); + } + + //Yvonne 8/7/2009: include all transactions where Bank Asset account and Bank In-Transit account + sb.append(" order by fa.AD_Client_ID, fa.AD_Org_ID, b.name, bp.name, p.documentNo, TRUNC(fa.DateAcct) "); + + int no = DB.executeUpdate(sb.toString(), get_TrxName()); + log.fine("#" + no); + log.finest(sb.toString()); + + } // createDetailLines + +} // Bank Register