Import Movement Require Wrongly OrgValue, LocatorValue and LocatorToValue
Description
The import movement process in function fillIDValues() have comented the lines that check if ad_org_id, M_Locator_id and M_locatorTo_id is filled with values. This make the system fail when import movements.
private void fillIDValues() { for(X_I_Movement imove : getRecords(false, m_IsImportOnlyNoErrors)) { //if(imov.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) imove.setM_Locator_ID(getID(MLocator.Table_Name,"Value = ?", new Object[]{imove.getLocatorValue()})); //if(imov.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()}));
The import movement process in function fillIDValues() have comented the lines that check if ad_org_id, M_Locator_id and M_locatorTo_id is filled with values. This make the system fail when import movements.
private void fillIDValues()
{
for(X_I_Movement imove : getRecords(false, m_IsImportOnlyNoErrors))
{
//if(imov.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)
imove.setM_Locator_ID(getID(MLocator.Table_Name,"Value = ?", new Object[]{imove.getLocatorValue()}));
//if(imov.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()}));