IDEMPIERE-1888 Easy Import allows to import any BP Location regardless of the BP master record

This commit is contained in:
Juan David Arboleda 2014-04-16 17:03:17 -05:00
parent 7c3dd909e7
commit d3b618511b
1 changed files with 6 additions and 0 deletions

View File

@ -924,6 +924,12 @@ public class GridTabCSVImporter implements IGridTabImporter
break;
}
}
}else if(isForeing && masterRecord==null && gridTab.getTabLevel()>0){
Object master =gridTab.getParentTab().getValue(foreignColumn);
if (master!=null && value!=null && !master.toString().equals(value)){
logMsg = header.get(i)+" - "+Msg.getMsg(Env.getCtx(),"DiffParentValue", new Object[] {master.toString(),value});
break;
}
}else if (masterRecord==null && isDetail){
MColumn column = MColumn.get(Env.getCtx(),field.getAD_Column_ID());
String foreignTable = column.getReferenceTableName();