Fixes Issue 0040315:Create Shipments From Orders is linking invoice
authorAtul Gaware <atul.gaware@openbravo.com>
Thu, 28 Feb 2019 11:24:05 +0530
changeset 35682 a6f6f363f490
parent 35681 a343fa7f1564
child 35683 038c8b681054
Fixes Issue 0040315:Create Shipments From Orders is linking invoice
lines with shipment lines that have different products if the order
is invoiced

Reset the m_inoutline_id stored in v_NextNo when a new orderline
is being used to create m_inoutline record
src-db/database/model/functions/M_INOUT_CREATE.xml
--- a/src-db/database/model/functions/M_INOUT_CREATE.xml	Thu Feb 28 10:53:54 2019 +0100
+++ b/src-db/database/model/functions/M_INOUT_CREATE.xml	Thu Feb 28 11:24:05 2019 +0530
@@ -789,6 +789,7 @@
             Next_Line:=false;
             FETCH Cur_OrderLine INTO ol;
             v_lines_per_orderline := 0;
+            v_NextNo := NULL;
             EXIT WHEN Cur_OrderLine%NOTFOUND;
           END LOOP; -- Order Line Loop
         END;--END DECLARE VARIABLES FOR ORDER LINE LOOP