IDEMPIERE-235 Generate Shipments is generating partial for complete orders / not a complete solution, but it helps to make predictable the order of processing order lines

This commit is contained in:
Carlos Ruiz 2019-01-23 20:19:16 +01:00
parent a8c9df56e4
commit 945e79de67
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ public class InOutGenerate extends SvrProcess
.append(" INNER JOIN M_InOut io ON (iol.M_InOut_ID=io.M_InOut_ID) ")
.append("WHERE iol.C_OrderLine_ID=C_OrderLine.C_OrderLine_ID AND io.DocStatus IN ('DR','IN','IP','WC'))");
// Deadlock Prevention - Order by M_Product_ID
MOrderLine[] lines = order.getLines (where.toString(), "C_BPartner_Location_ID, M_Product_ID");
MOrderLine[] lines = order.getLines (where.toString(), "C_BPartner_Location_ID, M_Product_ID, Line");
for (int i = 0; i < lines.length; i++)
{
MOrderLine line = lines[i];