From eb729142e704fb237ae63b9b1f527eae8eed1a13 Mon Sep 17 00:00:00 2001 From: "Redhuan D. Oon" Date: Wed, 6 Dec 2017 14:40:26 +0100 Subject: [PATCH] IDEMPIERE-3441 Import Movement Require Wrongly OrgValue, LocatorValue and LocatorToValue / integrating patch suggested by Eduardo Gil --- .../src/org/eevolution/process/ImportInventoryMove.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.adempiere.base/src/org/eevolution/process/ImportInventoryMove.java b/org.adempiere.base/src/org/eevolution/process/ImportInventoryMove.java index f705516bac..79f3d1c3b9 100644 --- a/org.adempiere.base/src/org/eevolution/process/ImportInventoryMove.java +++ b/org.adempiere.base/src/org/eevolution/process/ImportInventoryMove.java @@ -333,13 +333,13 @@ public class ImportInventoryMove extends SvrProcess { for(X_I_Movement imove : getRecords(false, m_IsImportOnlyNoErrors)) { - //if(imov.getAD_Org_ID()==0) + if(imove.getAD_Org_ID()==0) imove.setAD_Org_ID(getID(MOrg.Table_Name,"Value = ?", new Object[]{imove.getOrgValue()})); if(imove.getM_Product_ID()==0) imove.setM_Product_ID(getID(MProduct.Table_Name,"Value = ?", new Object[]{imove.getProductValue()})); - //if(imov.getM_Locator_ID()==0) + if(imove.getM_Locator_ID()==0) imove.setM_Locator_ID(getID(MLocator.Table_Name,"Value = ?", new Object[]{imove.getLocatorValue()})); - //if(imov.getM_LocatorTo_ID()==0) + if(imove.getM_LocatorTo_ID()==0) imove.setM_LocatorTo_ID(getID(MLocator.Table_Name,"Value = ?", new Object[]{imove.getLocatorToValue()})); if(imove.getC_DocType_ID()==0) imove.setC_DocType_ID(getID(MDocType.Table_Name,"Name=?", new Object[]{imove.getDocTypeName()}));