diff --git a/org.adempiere.base/src/org/compiere/print/DataEngine.java b/org.adempiere.base/src/org/compiere/print/DataEngine.java index c4706476af..22468f82e7 100644 --- a/org.adempiere.base/src/org/compiere/print/DataEngine.java +++ b/org.adempiere.base/src/org/compiere/print/DataEngine.java @@ -535,6 +535,7 @@ public class DataEngine } // TableName.ColumnName, sqlSELECT.append(lookupSQL).append(" AS ").append(ColumnName).append(","); + groupByColumns.add(lookupSQL); pdc = new PrintDataColumn(AD_PrintFormatItem_ID, AD_Column_ID, ColumnName, AD_Reference_ID, FieldLength, orderName, isPageBreak); synonymNext(); }