IDEMPIERE-1547 value of M_Warehouse>C_Location>IsValid is wrong when export

This commit is contained in:
Carlos Ruiz 2014-07-11 21:19:44 -05:00
parent 32c7dcf9c4
commit 402fa7e782
1 changed files with 14 additions and 2 deletions

View File

@ -265,7 +265,13 @@ public class GridTabCSVExporter implements IGridTabExporter
if (record_id!=null)
sValue = queryExecute(columnRef,tableRef,record_id);
}else{
sValue = address.get_Value(columnName);
sValue = address.get_Value(columnName);
if (DisplayType.YesNo == MColumn.get(Env.getCtx(), MLocation.Table_Name, columnName).getAD_Reference_ID()) {
if (sValue != null && (Boolean) sValue)
sValue = "Y";
else if (sValue != null && ! (Boolean) sValue)
sValue = "N";
}
}
row.put(gridTab.getTableName()+">"+specialHeader,sValue);
idxfld++;
@ -384,7 +390,13 @@ public class GridTabCSVExporter implements IGridTabExporter
if(record_id!=null)
sValue = queryExecute(columnRef,tableRef,record_id);
}else{
sValue = address.get_Value(columnName);
sValue = address.get_Value(columnName);
if (DisplayType.YesNo == MColumn.get(Env.getCtx(), MLocation.Table_Name, columnName).getAD_Reference_ID()) {
if (sValue != null && (Boolean) sValue)
sValue = "Y";
else if (sValue != null && ! (Boolean) sValue)
sValue = "N";
}
}
row.put(childTab.getTableName()+">"+specialHeader,sValue);
}