BF [3094157] - Import Inventory - check Lot and SerNo length

https://sourceforge.net/tracker/?func=detail&aid=3094157&group_id=176962&atid=879332
This commit is contained in:
trifonnt 2011-03-25 23:58:42 -05:00
parent c3246f437a
commit efd0b768fd
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ public class ImportInventory extends SvrProcess
// Line // Line
int M_AttributeSetInstance_ID = 0; 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()); MProduct product = MProduct.get(getCtx(), imp.getM_Product_ID());
if (product.isInstanceAttribute()) if (product.isInstanceAttribute())