BF [ 1673363 ] ID columns should be printed as ID numbers

This commit is contained in:
teo_sarca 2007-03-04 19:32:30 +00:00
parent 5ca85c420d
commit 69f31dd696
1 changed files with 6 additions and 3 deletions

View File

@ -138,11 +138,11 @@ public class PrintDataElement
String retValue = m_value.toString();
if (m_displayType == DisplayType.Location)
return getValueDisplay_Location();
// ID columns should be printed as ID numbers - teo_sarca [ 1673363 ]
else if (DisplayType.ID == m_displayType && m_value instanceof KeyNamePair)
return ((KeyNamePair)m_value).getID();
else if (m_columnName.equals("C_BPartner_Location_ID") || m_columnName.equals("Bill_Location_ID"))
return getValueDisplay_BPLocation();
// ID columns should be printed as ID numbers - teo_sarca [ 1673363 ]
else if (m_displayType == DisplayType.ID && m_value instanceof KeyNamePair)
return ((KeyNamePair)m_value).getID();
else if (m_displayType == 0 || m_value instanceof String || m_value instanceof NamePair)
;
else if (language != null) // Optional formatting of Numbers and Dates
@ -276,6 +276,9 @@ public class PrintDataElement
*/
public boolean isID()
{
// ID columns are considered numbers - teo_sarca [ 1673363 ]
if (DisplayType.ID == m_displayType)
return false;
return DisplayType.isID(m_displayType);
} // isID