Fix a NPE problem found with [2877111] - See identifiers columns when delete records

https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2877111&group_id=176962
latest changes broke the Aging report - fixing the casting of ID type
This commit is contained in:
Carlos Ruiz 2009-11-24 04:07:28 +00:00
parent d5285dc795
commit 99f97f488c
1 changed files with 5 additions and 0 deletions

View File

@ -863,6 +863,11 @@ public class MLookupFactory
String embeddedSQL = getLookup_TableEmbed (language, ldc.ColumnName, TableName, ldc.AD_Reference_ID);
embedSQL.append("NVL((").append(embeddedSQL).append("),'')");
}
// ID
else if (DisplayType.isID(ldc.DisplayType))
{
embedSQL.append("NVL(" + DB.TO_CHAR(TableName + "." + ldc.ColumnName, ldc.DisplayType, language.getAD_Language()) + ",'')");
}
// String
else
embedSQL.append("NVL(").append(TableName).append(".").append(ldc.ColumnName).append(",'')");