From 2ca6d8c6264dcc7c04d3fa474a0ecc02fa71ad53 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 29 Jan 2008 16:01:37 +0000 Subject: [PATCH] Fix [ 1881876 ] Periods not shown when using auto period control wrong numbering on migration script --- migration/331b-trunk/{081_1881876.sql => 082_BF1881876.sql} | 2 +- .../postgresql/{081_1881876.sql => 082_BF1881876.sql} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename migration/331b-trunk/{081_1881876.sql => 082_BF1881876.sql} (88%) rename migration/331b-trunk/postgresql/{081_1881876.sql => 082_BF1881876.sql} (88%) diff --git a/migration/331b-trunk/081_1881876.sql b/migration/331b-trunk/082_BF1881876.sql similarity index 88% rename from migration/331b-trunk/081_1881876.sql rename to migration/331b-trunk/082_BF1881876.sql index aa918fdd8f..c8ff06fbff 100644 --- a/migration/331b-trunk/081_1881876.sql +++ b/migration/331b-trunk/082_BF1881876.sql @@ -1,5 +1,5 @@ -- Jan 29, 2008 10:48:50 AM COT --- 1877902 - Implement JSR 223: Scripting callout +-- [ adempiere-Bugs-1881876 ] Periods not shown when using auto period control UPDATE AD_Val_Rule SET Code='(EXISTS ( SELECT * FROM C_PeriodControl pc WHERE C_Period.C_Period_ID = pc.C_Period_ID AND pc.PeriodStatus = ''O'') OR EXISTS ( SELECT * FROM C_AcctSchema a, C_Period p WHERE C_Period.C_Period_ID = p.C_Period_ID AND a.AutoPeriodControl = ''Y'' AND ( (p.StartDate BETWEEN SYSDATE - a.Period_OpenHistory AND SYSDATE + a.Period_OpenFuture) OR (p.EndDate BETWEEN SYSDATE - a.Period_OpenHistory AND SYSDATE + a.Period_OpenFuture))))',Updated=TO_DATE('2008-01-29 10:48:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=215 ; diff --git a/migration/331b-trunk/postgresql/081_1881876.sql b/migration/331b-trunk/postgresql/082_BF1881876.sql similarity index 88% rename from migration/331b-trunk/postgresql/081_1881876.sql rename to migration/331b-trunk/postgresql/082_BF1881876.sql index be257a04e8..12c6a34416 100644 --- a/migration/331b-trunk/postgresql/081_1881876.sql +++ b/migration/331b-trunk/postgresql/082_BF1881876.sql @@ -1,5 +1,5 @@ -- Jan 29, 2008 10:48:50 AM COT --- 1877902 - Implement JSR 223: Scripting callout +-- [ adempiere-Bugs-1881876 ] Periods not shown when using auto period control UPDATE AD_Val_Rule SET Code='(EXISTS ( SELECT * FROM C_PeriodControl pc WHERE C_Period.C_Period_ID = pc.C_Period_ID AND pc.PeriodStatus = ''O'') OR EXISTS ( SELECT * FROM C_AcctSchema a, C_Period p WHERE C_Period.C_Period_ID = p.C_Period_ID AND a.AutoPeriodControl = ''Y'' AND ( (p.StartDate BETWEEN SYSDATE - a.Period_OpenHistory AND SYSDATE + a.Period_OpenFuture) OR (p.EndDate BETWEEN SYSDATE - a.Period_OpenHistory AND SYSDATE + a.Period_OpenFuture))))',Updated=TO_TIMESTAMP('2008-01-29 10:48:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=215 ;