From 61eda5ae7b719f60858b63cd93fd62a38e97930f Mon Sep 17 00:00:00 2001 From: mjudd Date: Thu, 26 Apr 2007 12:06:09 +0000 Subject: [PATCH] Bug Fix http://sourceforge.net/tracker/index.php?func=detail&aid=1707995&group_id=176962&atid=879332 --- migration/316-trunk/009_fix_bug_1707995.sql | 12 ++++++++++++ .../316-trunk/postgresql/009_fix_bug_1707995.sql | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 migration/316-trunk/009_fix_bug_1707995.sql create mode 100644 migration/316-trunk/postgresql/009_fix_bug_1707995.sql diff --git a/migration/316-trunk/009_fix_bug_1707995.sql b/migration/316-trunk/009_fix_bug_1707995.sql new file mode 100644 index 0000000000..6f968c5614 --- /dev/null +++ b/migration/316-trunk/009_fix_bug_1707995.sql @@ -0,0 +1,12 @@ +-- Bug Fix +-- http://sourceforge.net/tracker/index.php?func=detail&aid=1707995&group_id=176962&atid=879332 + +INSERT INTO AD_VAL_RULE (ad_val_rule_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, description, + type, code, entitytype ) + VALUES(1000002, 0, 0, 'Y', TO_DATE('2007-04-26','YYYY-MM-DD'), 100, TO_DATE('2007-04-26','YYYY-MM-DD'), 100, 'M_PriceList is SO/PO', 'Limits the Sales & Purchase Order window to the correct price lsits', + 'S', '(M_PriceList.IsSOPriceList = \'Y\' AND \'@IsSOTrx@\'=\'Y\') OR (M_PriceList.IsSOPriceList = \'N\' AND \'@IsSOTrx@\'=\'N\')', 'D'); + +UPDATE AD_COLUMN set ad_val_rule_id = 1000002 where ad_column_id = 2204; + + +COMMIT; \ No newline at end of file diff --git a/migration/316-trunk/postgresql/009_fix_bug_1707995.sql b/migration/316-trunk/postgresql/009_fix_bug_1707995.sql new file mode 100644 index 0000000000..2048da9ef1 --- /dev/null +++ b/migration/316-trunk/postgresql/009_fix_bug_1707995.sql @@ -0,0 +1,12 @@ +-- Bug Fix +-- http://sourceforge.net/tracker/index.php?func=detail&aid=1707995&group_id=176962&atid=879332 + +INSERT INTO AD_VAL_RULE (ad_val_rule_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, description, + type, code, entitytype ) + VALUES(1000002, 0, 0, 'Y', TO_TIMESTAMP('2007-04-26','YYYY-MM-DD'), 100, TO_TIMESTAMP('2007-04-26','YYYY-MM-DD'), 100, 'M_PriceList is SO/PO', 'Limits the Sales & Purchase Order window to the correct price lsits', + 'S', '(M_PriceList.IsSOPriceList = \'Y\' AND \'@IsSOTrx@\'=\'Y\') OR (M_PriceList.IsSOPriceList = \'N\' AND \'@IsSOTrx@\'=\'N\')', 'D'); + +UPDATE AD_COLUMN set ad_val_rule_id = 1000002 where ad_column_id = 2204; + + +COMMIT; \ No newline at end of file