IDEMPIERE-130 List Transaction on Financial Report Do Not Apply Parameter Filter / Thanks to Edwin Ang for the fix

This commit is contained in:
Carlos Ruiz 2012-08-29 21:42:17 -05:00
parent 258e6224f6
commit 3c1c17a1af
1 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@
*****************************************************************************/ *****************************************************************************/
package org.compiere.report; package org.compiere.report;
import static org.compiere.model.SystemIDs.TABLE_T_REPORT;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
@ -25,7 +27,6 @@ import java.util.logging.Level;
import org.compiere.model.MAcctSchemaElement; import org.compiere.model.MAcctSchemaElement;
import org.compiere.model.MReportCube; import org.compiere.model.MReportCube;
import static org.compiere.model.SystemIDs.*;
import org.compiere.print.MPrintFormat; import org.compiere.print.MPrintFormat;
import org.compiere.print.MPrintFormatItem; import org.compiere.print.MPrintFormatItem;
import org.compiere.process.ProcessInfoParameter; import org.compiere.process.ProcessInfoParameter;
@ -1093,6 +1094,7 @@ public class FinReport extends SvrProcess
String s = m_report.getWhereClause(); String s = m_report.getWhereClause();
if (s != null && s.length() > 0) if (s != null && s.length() > 0)
insert.append(" AND ").append(s); insert.append(" AND ").append(s);
insert.append(m_parameterWhere); // IDEMPIERE-130
// Period restriction // Period restriction
FinReportPeriod frp = getPeriod (0); FinReportPeriod frp = getPeriod (0);
insert.append(" AND TRUNC(DateAcct) ") insert.append(" AND TRUNC(DateAcct) ")