Fix [ 1989152 ] DataEngine.getPrintDataInfo getting more columns than needed

This commit is contained in:
Carlos Ruiz 2008-06-09 20:38:04 +00:00
parent 81690fe578
commit 69112bea2f
1 changed files with 1 additions and 0 deletions

View File

@ -220,6 +220,7 @@ public class DataEngine
+ " LEFT OUTER JOIN AD_ReportView_Col rvc ON (pf.AD_ReportView_ID=rvc.AD_ReportView_ID AND c.AD_Column_ID=rvc.AD_Column_ID) "
+ "WHERE pf.AD_PrintFormat_ID=?" // #1
+ " AND pfi.IsActive='Y' AND (pfi.IsPrinted='Y' OR c.IsKey='Y' OR pfi.SortNo > 0) "
+ " AND pfi.PrintFormatType IN ('" + MPrintFormatItem.PRINTFORMATTYPE_Field + "','" + MPrintFormatItem.PRINTFORMATTYPE_PrintFormat + "') "
+ "ORDER BY pfi.IsPrinted DESC, pfi.SeqNo"; // Functions are put in first column
PreparedStatement pstmt = null;
ResultSet rs = null;