Related to issue 7289. Fixed an error in a delete statement.
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Mon, 11 May 2009 17:11:55 +0200
changeset 3853 d128f84ed546
parent 3852 9df8064f665a
child 3854 dfabe0345f73
Related to issue 7289. Fixed an error in a delete statement.
src-db/database/model/functions/M_INOUT_CREATE.xml
--- a/src-db/database/model/functions/M_INOUT_CREATE.xml	Mon May 11 13:28:03 2009 +0200
+++ b/src-db/database/model/functions/M_INOUT_CREATE.xml	Mon May 11 17:11:55 2009 +0200
@@ -507,7 +507,7 @@
                           v_resultlinesstr := COALESCE(v_resultlinesstr, '') || '<br>@OrderLine@: ' || ol.Line || ' @ForProduct@ ' || ol.name || ': @notEnoughStockDeliveryRuleLine@.' ;
                           v_hasPartial := true;
                           DELETE FROM M_INOUTLINE
-                          WHERE M_INOUT_ID = v_documentno
+                          WHERE M_INOUT_ID = p_InOut_ID
                             AND C_ORDERLINE_ID = ol.C_ORDERLINE_ID;
                         ELSE
                           v_resultlinesstr := COALESCE(v_resultlinesstr, '') || '<br>@OrderLine@: ' || ol.Line || ' @ForProduct@ ' || ol.name || ': @notEnoughStockPartial@' || '.' ;