IDEMPIERE-6015 Allow usage of _ID or _UU columns in print format item scripts (#2208)
This commit is contained in:
parent
2b785e3900
commit
1ec37be854
|
@ -1398,7 +1398,11 @@ public class DataEngine
|
|||
Object tokenPDE = pd.getNode(token);
|
||||
if (tokenPDE == null)
|
||||
return "\"Item not found: " + token + "\"";
|
||||
Object value = ((PrintDataElement)tokenPDE).getValue();
|
||||
Object value;
|
||||
if (token.endsWith("_ID") || token.endsWith("_UU"))
|
||||
value = ((PrintDataElement)tokenPDE).getValueKey();
|
||||
else
|
||||
value = ((PrintDataElement)tokenPDE).getValue();
|
||||
outStr.append(value);
|
||||
}
|
||||
else if (token.equals("LINE"))
|
||||
|
|
Loading…
Reference in New Issue