diff --git a/migration/354a-trunk/oracle/714_BF2989334.sql b/migration/354a-trunk/oracle/714_BF2989334.sql new file mode 100644 index 0000000000..47d4d1ca8b --- /dev/null +++ b/migration/354a-trunk/oracle/714_BF2989334.sql @@ -0,0 +1,11 @@ +-- Apr 19, 2010 2:44:05 PM CEST +-- BF [2989334] - Wrong SQL for Reference: RelType M_InOut (Shipment) <= C_Or +-- https://sourceforge.net/tracker/?func=detail&aid=2989334&group_id=176962&atid=879332 +UPDATE AD_Ref_Table SET WhereClause='M_InOut_ID IN ( + select i.M_InOut_ID from M_InOut i + left join M_InOutline il on il.M_InOut_ID = i.M_InOut_ID + left join C_OrderLine ol on ol.C_OrderLine_ID = il.C_OrderLine_ID + where ol.C_Order_ID=@C_Order_ID@ AND i.MovementType IN (''C-'') +)',Updated=TO_DATE('2010-04-19 14:44:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53347 +; + diff --git a/migration/354a-trunk/postgresql/714_BF2989334.sql b/migration/354a-trunk/postgresql/714_BF2989334.sql new file mode 100644 index 0000000000..ccaab112aa --- /dev/null +++ b/migration/354a-trunk/postgresql/714_BF2989334.sql @@ -0,0 +1,11 @@ +-- Apr 19, 2010 2:44:05 PM CEST +-- BF [2989334] - Wrong SQL for Reference: RelType M_InOut (Shipment) <= C_Or +-- https://sourceforge.net/tracker/?func=detail&aid=2989334&group_id=176962&atid=879332 +UPDATE AD_Ref_Table SET WhereClause='M_InOut_ID IN ( + select i.M_InOut_ID from M_InOut i + left join M_InOutline il on il.M_InOut_ID = i.M_InOut_ID + left join C_OrderLine ol on ol.C_OrderLine_ID = il.C_OrderLine_ID + where ol.C_Order_ID=@C_Order_ID@ AND i.MovementType IN (''C-'') +)',Updated=TO_TIMESTAMP('2010-04-19 14:44:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53347 +; +