From 5ca85c420d09391fb3fad83b74742868005f2b16 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sun, 4 Mar 2007 10:05:47 +0000 Subject: [PATCH] BF [ 1673363 ] ID columns should be printed as ID numbers --- print/src/org/compiere/print/PrintDataElement.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/print/src/org/compiere/print/PrintDataElement.java b/print/src/org/compiere/print/PrintDataElement.java index 40dbc2a4ab..c034a38095 100644 --- a/print/src/org/compiere/print/PrintDataElement.java +++ b/print/src/org/compiere/print/PrintDataElement.java @@ -140,6 +140,9 @@ public class PrintDataElement return getValueDisplay_Location(); 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