Ticket #1001763: Standard Templates for Docs and Forms - Reporting - Copy Print Formats from QS - fix migration scripts

This commit is contained in:
Elaine Tan 2013-03-05 17:05:36 +08:00
parent e127c10184
commit b80e48d86e
5 changed files with 55 additions and 8 deletions

View File

@ -1198,5 +1198,10 @@ UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=SysDate WHERE AD_Tree_
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=32, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53187
;
-- Mar 5, 2013 4:01:18 PM SGT
-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting
UPDATE AD_Process_Para SET IsRange='Y',Updated=TO_DATE('2013-03-05 16:01:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200053
;
SELECT register_migration_script('201303041621_TICKET-1001763_BankRegister.sql') FROM dual
;

View File

@ -4168,5 +4168,25 @@ UPDATE AD_Column SET AD_Reference_ID=13, IsToolbarButton='N',Updated=TO_DATE('20
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
;
-- Mar 5, 2013 4:56:57 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,200061,'51b3c02a-015e-4cc4-9b1b-a3acac1e4aef','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200038,18,'N',130,'D','Organization','AD_Org_ID','Organizational entity within client',0,'Y',10,'Y',100,TO_DATE('2013-03-05 16:56:55','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-05 16:56:55','YYYY-MM-DD HH24:MI:SS'),0,0,'N')
;
-- Mar 5, 2013 4:56: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=200061 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 5, 2013 4:58:35 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',202265,200062,'f25968f1-3fea-4cc4-a572-b7fc7656ce74','The only valid date format is: YYYY-MM',200038,10,'N','D','Financial Year Month','FYMth','The only valid date format is: YYYY-MM',0,'N','0000-00',20,'Y',100,TO_DATE('2013-03-05 16:58:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-05 16:58:35','YYYY-MM-DD HH24:MI:SS'),0,0,'N')
;
-- Mar 5, 2013 4:58:35 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=200062 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)
;
SELECT register_migration_script('201303041624_TICKET-1001763_FactView.sql') FROM dual
;

View File

@ -6801,14 +6801,11 @@ DECLARE
******************************************************************************/
BEGIN
SELECT SUM ( (NVL (linenetamt, 0) + NVL (taxamt, 0))
* DECODE
(docbasetype,
'API', 1,
'APC', -1,
0
) -- +API->AP Invoice / -APC->AP Credit Memo
)
SELECT SUM ( (COALESCE (linenetamt, 0) + COALESCE (taxamt, 0))
* (CASE WHEN docbasetype = 'API' THEN 1
CASE WHEN docbasetype = 'APC' THEN -1
ELSE 0 END)
) -- +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

View File

@ -1198,5 +1198,10 @@ UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=31, Updated=CURRENT_TIMESTAMP WHER
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=32, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53187
;
-- Mar 5, 2013 4:01:18 PM SGT
-- Ticket 1001763: Standard Templates for Docs and Forms - Reporting
UPDATE AD_Process_Para SET IsRange='Y',Updated=TO_TIMESTAMP('2013-03-05 16:01:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200053
;
SELECT register_migration_script('201303041621_TICKET-1001763_BankRegister.sql') FROM dual
;

View File

@ -4168,5 +4168,25 @@ UPDATE AD_Column SET AD_Reference_ID=13, IsToolbarButton='N',Updated=TO_TIMESTAM
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
;
-- Mar 5, 2013 4:56:57 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,200061,'51b3c02a-015e-4cc4-9b1b-a3acac1e4aef','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200038,18,'N',130,'D','Organization','AD_Org_ID','Organizational entity within client',0,'Y',10,'Y',100,TO_TIMESTAMP('2013-03-05 16:56:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-05 16:56:55','YYYY-MM-DD HH24:MI:SS'),0,0,'N')
;
-- Mar 5, 2013 4:56: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=200061 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 5, 2013 4:58:35 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',202265,200062,'f25968f1-3fea-4cc4-a572-b7fc7656ce74','The only valid date format is: YYYY-MM',200038,10,'N','D','Financial Year Month','FYMth','The only valid date format is: YYYY-MM',0,'N','0000-00',20,'Y',100,TO_TIMESTAMP('2013-03-05 16:58:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-05 16:58:35','YYYY-MM-DD HH24:MI:SS'),0,0,'N')
;
-- Mar 5, 2013 4:58:35 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=200062 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)
;
SELECT register_migration_script('201303041624_TICKET-1001763_FactView.sql') FROM dual
;