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

@ -266,6 +266,12 @@ public class GridTabCSVExporter implements IGridTabExporter
sValue = queryExecute(columnRef,tableRef,record_id); sValue = queryExecute(columnRef,tableRef,record_id);
}else{ }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); row.put(gridTab.getTableName()+">"+specialHeader,sValue);
idxfld++; idxfld++;
@ -385,6 +391,12 @@ public class GridTabCSVExporter implements IGridTabExporter
sValue = queryExecute(columnRef,tableRef,record_id); sValue = queryExecute(columnRef,tableRef,record_id);
}else{ }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); row.put(childTab.getTableName()+">"+specialHeader,sValue);
} }