IDEMPIERE-4709 Print Format Item: implement script column (expression) (#664)

Fix issue when using spaces on the name of the print format item
This commit is contained in:
Carlos Ruiz 2021-04-23 16:15:12 +02:00 committed by GitHub
parent 713aa09a46
commit 91a9314a96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -421,8 +421,8 @@ public class DataEngine
if (ColumnName == null && script.isEmpty()) if (ColumnName == null && script.isEmpty())
continue; continue;
sqlSELECT.append(script).append(" AS ").append(m_synonym).append(pfiName).append(",") sqlSELECT.append(script).append(" AS \"").append(m_synonym).append(pfiName).append("\",")
.append("''").append(" AS ").append(pfiName).append(","); .append("''").append(" AS \"").append(pfiName).append("\",");
// //
pdc = new PrintDataColumn(-1, pfiName, DisplayType.Text, FieldLength, orderName, isPageBreak); pdc = new PrintDataColumn(-1, pfiName, DisplayType.Text, FieldLength, orderName, isPageBreak);
synonymNext(); synonymNext();