details:   https://code.openbravo.com/erp/devel/pi/rev/461aa8d25eb6
changeset: 35512:461aa8d25eb6
user:      Atul Gaware <atul.gaware <at> openbravo.com>
date:      Thu Feb 28 11:24:05 2019 +0530
summary:   Fixes Issue 40278: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

diffstat:

 src-db/database/model/functions/M_INOUT_CREATE.xml |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 8b497714669e -r 461aa8d25eb6 
src-db/database/model/functions/M_INOUT_CREATE.xml
--- a/src-db/database/model/functions/M_INOUT_CREATE.xml        Tue Mar 05 
13:58:17 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


_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to