From bc494f56d2836608f9fb717c672bd8f08cb2caa6 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 26 Nov 2009 03:38:00 +0000 Subject: [PATCH] https://sourceforge.net/tracker/?func=detail&aid=2904257&garoup_id=176962&atid=879332 - wrong dynamic validation sql for rma line --- .../oracle/606_BF2904257_WrongRMALineValidationSQL.sql | 6 ++++++ .../postgresql/606_BF2904257_WrongRMALineValidationSQL.sql | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 migration/354a-trunk/oracle/606_BF2904257_WrongRMALineValidationSQL.sql create mode 100644 migration/354a-trunk/postgresql/606_BF2904257_WrongRMALineValidationSQL.sql diff --git a/migration/354a-trunk/oracle/606_BF2904257_WrongRMALineValidationSQL.sql b/migration/354a-trunk/oracle/606_BF2904257_WrongRMALineValidationSQL.sql new file mode 100644 index 0000000000..c787832cb5 --- /dev/null +++ b/migration/354a-trunk/oracle/606_BF2904257_WrongRMALineValidationSQL.sql @@ -0,0 +1,6 @@ +-- Nov 26, 2009 11:18:36 AM MYT +-- [ 2074600 ] Housekeeping - Process to delete historic information +UPDATE AD_Val_Rule SET Code='M_InOutLine.M_InOut_ID=@InOut_ID@ AND NOT EXISTS (SELECT * FROM M_RMALine rl WHERE rl.M_InOutLine_ID=M_InOutLine.M_InOutLine_ID AND rl.M_RMA_ID=@M_RMA_ID@ AND rl.M_RMALine_ID != @M_RMALine_ID@)',Updated=TO_DATE('2009-11-26 11:18:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=52001 +; + +COMMIT; diff --git a/migration/354a-trunk/postgresql/606_BF2904257_WrongRMALineValidationSQL.sql b/migration/354a-trunk/postgresql/606_BF2904257_WrongRMALineValidationSQL.sql new file mode 100644 index 0000000000..c17d43e417 --- /dev/null +++ b/migration/354a-trunk/postgresql/606_BF2904257_WrongRMALineValidationSQL.sql @@ -0,0 +1,6 @@ +-- Nov 26, 2009 11:18:36 AM MYT +-- [ 2074600 ] Housekeeping - Process to delete historic information +UPDATE AD_Val_Rule SET Code='M_InOutLine.M_InOut_ID=@InOut_ID@ AND NOT EXISTS (SELECT * FROM M_RMALine rl WHERE rl.M_InOutLine_ID=M_InOutLine.M_InOutLine_ID AND rl.M_RMA_ID=@M_RMA_ID@ AND rl.M_RMALine_ID != @M_RMALine_ID@)',Updated=TO_TIMESTAMP('2009-11-26 11:18:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=52001 +; + +COMMIT;