From e3ae6efb5341a2083bf1493bdeb102f77ab4d9c6 Mon Sep 17 00:00:00 2001 From: mjudd Date: Wed, 25 Apr 2007 09:40:36 +0000 Subject: [PATCH] Bug Fix 1644616 - http://sourceforge.net/tracker/index.php?func=detail&aid=1644616&group_id=176962&atid=879332 --- migration/316-trunk/007_country_changes.sql | 36 +++++++++++++++++++ .../postgresql/007_country_changes.sql | 36 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 migration/316-trunk/007_country_changes.sql create mode 100644 migration/316-trunk/postgresql/007_country_changes.sql diff --git a/migration/316-trunk/007_country_changes.sql b/migration/316-trunk/007_country_changes.sql new file mode 100644 index 0000000000..38f0caf148 --- /dev/null +++ b/migration/316-trunk/007_country_changes.sql @@ -0,0 +1,36 @@ +-- juddm BugFix:(Country Changes) +-- add country Serbia +INSERT INTO C_COUNTRY + (C_COUNTRY_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, + NAME, DESCRIPTION, COUNTRYCODE, HASREGION, DISPLAYSEQUENCE, HASPOSTAL_ADD, C_CURRENCY_ID, + ISADDRESSLINESREVERSE, ISADDRESSLINESLOCALREVERSE) + VALUES (349, 0, 0, 'Y', '2003-03-09 00:00:00.0', 0, '2000-01-02 00:00:00.0', 0, + 'Serbia', 'Serbia', 'RS', 'N', '@C@, @P@', 'N', 347, 'N', 'N'); + +-- add country Montenegro +INSERT INTO C_COUNTRY + (C_COUNTRY_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, + NAME, DESCRIPTION, COUNTRYCODE, HASREGION, DISPLAYSEQUENCE, HASPOSTAL_ADD, C_CURRENCY_ID, + ISADDRESSLINESREVERSE, ISADDRESSLINESLOCALREVERSE) + VALUES (350, 0, 0, 'Y', '2003-03-09 00:00:00.0', 0, '2000-01-02 00:00:00.0', 0, + 'Montenegro', 'Montenegro', 'ME', 'N', '@C@, @P@', 'N', 348, 'N', 'N'); + +-- deactivate Yugoslavia +UPDATE C_COUNTY SET ISACTIVE = 'N' WHERE C_COUNTRY_ID=346; + +--add Serbian currency +INSERT INTO C_CURRENCY + (C_CURRENCY_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, ISO_CODE, + CURSYMBOL, DESCRIPTION, STDPRECISION, COSTINGPRECISION, ISEURO, ISEMUMEMBER) + VALUES(347, 0, 0, 'Y', '2003-08-06 17:05:45.0',0, '2000-01-02 00:00:00.0', 0, 'RSD', + 'RSD', 'Serbian Dinar', 2, 4, 'N', 'N') + +-- add Montenegro currency +INSERT INTO C_CURRENCY + (C_CURRENCY_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, ISO_CODE, + CURSYMBOL, DESCRIPTION, STDPRECISION, COSTINGPRECISION, ISEURO, ISEMUMEMBER) + VALUES(348, 0, 0,'Y','2003-08-06 17:05:45.0', 0, '2000-01-02 00:00:00.0', 0,'MKD' + 'MKD', 'Denar',2,4,'N','N'); + +-- deactivate Yugoslavia currency +UPDATE C_CURRENCY SET ISACTIVE = 'N' WHERE C_CURRECNY_ID = 314; diff --git a/migration/316-trunk/postgresql/007_country_changes.sql b/migration/316-trunk/postgresql/007_country_changes.sql new file mode 100644 index 0000000000..38f0caf148 --- /dev/null +++ b/migration/316-trunk/postgresql/007_country_changes.sql @@ -0,0 +1,36 @@ +-- juddm BugFix:(Country Changes) +-- add country Serbia +INSERT INTO C_COUNTRY + (C_COUNTRY_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, + NAME, DESCRIPTION, COUNTRYCODE, HASREGION, DISPLAYSEQUENCE, HASPOSTAL_ADD, C_CURRENCY_ID, + ISADDRESSLINESREVERSE, ISADDRESSLINESLOCALREVERSE) + VALUES (349, 0, 0, 'Y', '2003-03-09 00:00:00.0', 0, '2000-01-02 00:00:00.0', 0, + 'Serbia', 'Serbia', 'RS', 'N', '@C@, @P@', 'N', 347, 'N', 'N'); + +-- add country Montenegro +INSERT INTO C_COUNTRY + (C_COUNTRY_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, + NAME, DESCRIPTION, COUNTRYCODE, HASREGION, DISPLAYSEQUENCE, HASPOSTAL_ADD, C_CURRENCY_ID, + ISADDRESSLINESREVERSE, ISADDRESSLINESLOCALREVERSE) + VALUES (350, 0, 0, 'Y', '2003-03-09 00:00:00.0', 0, '2000-01-02 00:00:00.0', 0, + 'Montenegro', 'Montenegro', 'ME', 'N', '@C@, @P@', 'N', 348, 'N', 'N'); + +-- deactivate Yugoslavia +UPDATE C_COUNTY SET ISACTIVE = 'N' WHERE C_COUNTRY_ID=346; + +--add Serbian currency +INSERT INTO C_CURRENCY + (C_CURRENCY_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, ISO_CODE, + CURSYMBOL, DESCRIPTION, STDPRECISION, COSTINGPRECISION, ISEURO, ISEMUMEMBER) + VALUES(347, 0, 0, 'Y', '2003-08-06 17:05:45.0',0, '2000-01-02 00:00:00.0', 0, 'RSD', + 'RSD', 'Serbian Dinar', 2, 4, 'N', 'N') + +-- add Montenegro currency +INSERT INTO C_CURRENCY + (C_CURRENCY_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, ISO_CODE, + CURSYMBOL, DESCRIPTION, STDPRECISION, COSTINGPRECISION, ISEURO, ISEMUMEMBER) + VALUES(348, 0, 0,'Y','2003-08-06 17:05:45.0', 0, '2000-01-02 00:00:00.0', 0,'MKD' + 'MKD', 'Denar',2,4,'N','N'); + +-- deactivate Yugoslavia currency +UPDATE C_CURRENCY SET ISACTIVE = 'N' WHERE C_CURRECNY_ID = 314;