From 80be2b2e58e707f60b4d1a521a14a9f89fb9020c Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 2 May 2009 16:17:32 +0000 Subject: [PATCH] BF [2757978] - POS Sales Order -> Could not create Shipment Line https://sourceforge.net/tracker/?func=detail&aid=2757978&group_id=176962&atid=879332 --- base/src/org/compiere/model/X_M_InOutLine.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/base/src/org/compiere/model/X_M_InOutLine.java b/base/src/org/compiere/model/X_M_InOutLine.java index e427ade90d..81069cc0ff 100644 --- a/base/src/org/compiere/model/X_M_InOutLine.java +++ b/base/src/org/compiere/model/X_M_InOutLine.java @@ -52,8 +52,6 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent setM_AttributeSetInstance_ID (0); setM_InOut_ID (0); setM_InOutLine_ID (0); - setM_Locator_ID (0); -// @M_Locator_ID@ setMovementQty (Env.ZERO); // 1 setProcessed (false); @@ -625,9 +623,10 @@ public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent */ public void setM_Locator_ID (int M_Locator_ID) { - if (M_Locator_ID < 1) - throw new IllegalArgumentException ("M_Locator_ID is mandatory."); - set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + if (M_Locator_ID < 1) + set_Value (COLUMNNAME_M_Locator_ID, null); + else + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); } /** Get Locator.