From 1a79b4dafeadeab7f549eddc870d62cb38555ded Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 25 Jul 2012 14:38:06 -0500 Subject: [PATCH] IDEMPIERE 344 - Improve usability for GL Journal / just show not controlled accounts --- .../855_IDEMPIERE-344_GLJournalImprovement.sql | 16 ++++++++++++++++ .../855_IDEMPIERE-344_GLJournalImprovement.sql | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/migration/360lts-release/oracle/855_IDEMPIERE-344_GLJournalImprovement.sql b/migration/360lts-release/oracle/855_IDEMPIERE-344_GLJournalImprovement.sql index 2c541a6bec..803e1099de 100644 --- a/migration/360lts-release/oracle/855_IDEMPIERE-344_GLJournalImprovement.sql +++ b/migration/360lts-release/oracle/855_IDEMPIERE-344_GLJournalImprovement.sql @@ -1468,6 +1468,22 @@ ALTER TABLE I_GLJournal MODIFY IsCreateNewJournal CHAR(1) DEFAULT 'N' UPDATE AD_Field SET DisplayLogic='@GL_JournalBatch_ID@=0',Updated=TO_DATE('2012-07-25 13:01:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200208 ; +-- Jul 25, 2012 2:32:04 PM COT +INSERT INTO AD_Reference (AD_Reference_ID,ValidationType,EntityType,IsOrderByValue,Name,Description,AD_Client_ID,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy) VALUES (200002,'T','D','N','C_ElementValue (trx) Not Doc Controlled','Element Values',0,0,100,TO_DATE('2012-07-25 14:32:03','YYYY-MM-DD HH24:MI:SS'),'Y',TO_DATE('2012-07-25 14:32:03','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 25, 2012 2:32:04 PM COT +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) 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 FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=200002 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) +; + +-- Jul 25, 2012 2:32:47 PM COT +INSERT INTO AD_Ref_Table (IsValueDisplayed,WhereClause,OrderByClause,AD_Table_ID,AD_Reference_ID,AD_Key,AD_Display,EntityType,CreatedBy,Updated,Created,UpdatedBy,AD_Client_ID,AD_Org_ID,IsActive) VALUES ('Y','C_ElementValue.IsSummary<>''Y'' AND C_ElementValue.IsDocControlled<>''Y''','C_ElementValue.Value',188,200002,1125,1135,'D',100,TO_DATE('2012-07-25 14:32:47','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-07-25 14:32:47','YYYY-MM-DD HH24:MI:SS'),100,0,0,'Y') +; + +-- Jul 25, 2012 2:33:10 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200002,Updated=TO_DATE('2012-07-25 14:33:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200217 +; + UPDATE AD_System SET LastMigrationScriptApplied='855_IDEMPIERE-344_GLJournalImprovement.sql' WHERE LastMigrationScriptApplied<'855_IDEMPIERE-344_GLJournalImprovement.sql' diff --git a/migration/360lts-release/postgresql/855_IDEMPIERE-344_GLJournalImprovement.sql b/migration/360lts-release/postgresql/855_IDEMPIERE-344_GLJournalImprovement.sql index 64e3bd3f9b..ce44b5850e 100644 --- a/migration/360lts-release/postgresql/855_IDEMPIERE-344_GLJournalImprovement.sql +++ b/migration/360lts-release/postgresql/855_IDEMPIERE-344_GLJournalImprovement.sql @@ -1468,6 +1468,22 @@ INSERT INTO t_alter_column values('i_gljournal','IsCreateNewJournal','CHAR(1)',n UPDATE AD_Field SET DisplayLogic='@GL_JournalBatch_ID@=0',Updated=TO_TIMESTAMP('2012-07-25 13:01:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200208 ; +-- Jul 25, 2012 2:32:04 PM COT +INSERT INTO AD_Reference (AD_Reference_ID,ValidationType,EntityType,IsOrderByValue,Name,Description,AD_Client_ID,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy) VALUES (200002,'T','D','N','C_ElementValue (trx) Not Doc Controlled','Element Values',0,0,100,TO_TIMESTAMP('2012-07-25 14:32:03','YYYY-MM-DD HH24:MI:SS'),'Y',TO_TIMESTAMP('2012-07-25 14:32:03','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 25, 2012 2:32:04 PM COT +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) 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 FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=200002 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) +; + +-- Jul 25, 2012 2:32:47 PM COT +INSERT INTO AD_Ref_Table (IsValueDisplayed,WhereClause,OrderByClause,AD_Table_ID,AD_Reference_ID,AD_Key,AD_Display,EntityType,CreatedBy,Updated,Created,UpdatedBy,AD_Client_ID,AD_Org_ID,IsActive) VALUES ('Y','C_ElementValue.IsSummary<>''Y'' AND C_ElementValue.IsDocControlled<>''Y''','C_ElementValue.Value',188,200002,1125,1135,'D',100,TO_TIMESTAMP('2012-07-25 14:32:47','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2012-07-25 14:32:47','YYYY-MM-DD HH24:MI:SS'),100,0,0,'Y') +; + +-- Jul 25, 2012 2:33:10 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200002,Updated=TO_TIMESTAMP('2012-07-25 14:33:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200217 +; + UPDATE AD_System SET LastMigrationScriptApplied='855_IDEMPIERE-344_GLJournalImprovement.sql' WHERE LastMigrationScriptApplied<'855_IDEMPIERE-344_GLJournalImprovement.sql'