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()}));

Environment

None

Attachments

1

Activity

Show:

redhuan d. oon December 5, 2017 at 11:45 PM
Edited

I made patch for this.

Fixed

Details

Assignee

Reporter

Priority

Created August 1, 2017 at 7:04 PM
Updated February 1, 2018 at 1:31 PM
Resolved December 6, 2017 at 2:10 PM