From 5adac0eda87b55751c19dae6b93d0077b8798127 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Tue, 23 Dec 2008 11:42:55 +0000 Subject: [PATCH] FR [ 2457781 ] Introduce NoVendorForProductException https://sourceforge.net/tracker/index.php?func=detail&aid=2457781&group_id=176962&atid=879335 --- migration/353a-trunk/oracle/371_FR2457781.sql | 15 +++++++++++++++ migration/353a-trunk/postgresql/371_FR2457781.sql | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 migration/353a-trunk/oracle/371_FR2457781.sql create mode 100644 migration/353a-trunk/postgresql/371_FR2457781.sql diff --git a/migration/353a-trunk/oracle/371_FR2457781.sql b/migration/353a-trunk/oracle/371_FR2457781.sql new file mode 100644 index 0000000000..0490724fb8 --- /dev/null +++ b/migration/353a-trunk/oracle/371_FR2457781.sql @@ -0,0 +1,15 @@ +-- 23.12.2008 12:20:26 EET +-- FR [ 2457781 ] Introduce NoVendorForProductException +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53050,0,TO_DATE('2008-12-23 12:19:53','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','No Vendor for Product : ','E',TO_DATE('2008-12-23 12:19:53','YYYY-MM-DD HH24:MI:SS'),0,'NoVendorForProduct') +; + +-- 23.12.2008 12:20:26 EET +-- FR [ 2457781 ] Introduce NoVendorForProductException +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53050 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + +-- 23.12.2008 12:20:48 EET +-- FR [ 2457781 ] Introduce NoVendorForProductException +UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='Nu exista furnizor pentru produsul : ',Updated=TO_DATE('2008-12-23 12:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Message_ID=53050 AND AD_Language='ro_RO' +; + diff --git a/migration/353a-trunk/postgresql/371_FR2457781.sql b/migration/353a-trunk/postgresql/371_FR2457781.sql new file mode 100644 index 0000000000..dd88291ecd --- /dev/null +++ b/migration/353a-trunk/postgresql/371_FR2457781.sql @@ -0,0 +1,15 @@ +-- 23.12.2008 12:20:26 EET +-- FR [ 2457781 ] Introduce NoVendorForProductException +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53050,0,TO_TIMESTAMP('2008-12-23 12:19:53','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','No Vendor for Product : ','E',TO_TIMESTAMP('2008-12-23 12:19:53','YYYY-MM-DD HH24:MI:SS'),0,'NoVendorForProduct') +; + +-- 23.12.2008 12:20:26 EET +-- FR [ 2457781 ] Introduce NoVendorForProductException +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53050 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + +-- 23.12.2008 12:20:48 EET +-- FR [ 2457781 ] Introduce NoVendorForProductException +UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='Nu exista furnizor pentru produsul : ',Updated=TO_TIMESTAMP('2008-12-23 12:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Message_ID=53050 AND AD_Language='ro_RO' +; +