From efd0b768fd9d199337f2a5821b9e4ad07105b838 Mon Sep 17 00:00:00 2001 From: trifonnt Date: Fri, 25 Mar 2011 23:58:42 -0500 Subject: [PATCH] BF [3094157] - Import Inventory - check Lot and SerNo length https://sourceforge.net/tracker/?func=detail&aid=3094157&group_id=176962&atid=879332 --- .../src/org/compiere/process/ImportInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportInventory.java b/org.adempiere.base.process/src/org/compiere/process/ImportInventory.java index 9f0beb837b..c7378bbc11 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportInventory.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportInventory.java @@ -298,7 +298,7 @@ public class ImportInventory extends SvrProcess // Line int M_AttributeSetInstance_ID = 0; - if (imp.getLot() != null || imp.getSerNo() != null) + if ((imp.getLot() != null && imp.getLot().length() > 0) || (imp.getSerNo() != null && imp.getSerNo().length() > 0)) { MProduct product = MProduct.get(getCtx(), imp.getM_Product_ID()); if (product.isInstanceAttribute())