IDEMPIERE-130 List Transaction on Financial Report Do Not Apply Parameter Filter - Exclude PA_ReportCube_ID parameter condition, PA_ReportCube_ID column does not exists in Fact_Acct table

This commit is contained in:
Elaine Tan 2013-08-29 17:40:37 +08:00
parent eaf65447cf
commit bb799e6446
1 changed files with 7 additions and 1 deletions

View File

@ -1533,7 +1533,13 @@ public class FinReport extends SvrProcess
String s = m_report.getWhereClause();
if (s != null && s.length() > 0)
insert.append(" AND ").append(s);
insert.append(m_parameterWhere); // IDEMPIERE-130
// Exclude PA_ReportCube_ID parameter condition, PA_ReportCube_ID column does not exists in Fact_Acct table
String whereClause = m_parameterWhere.toString();
if (p_PA_ReportCube_ID > 0)
whereClause = whereClause.replaceAll(" AND PA_ReportCube_ID=" + p_PA_ReportCube_ID, "");
insert.append(whereClause); // IDEMPIERE-130
// Period restriction
FinReportPeriod frp = getPeriod (0);
insert.append(" AND TRUNC(DateAcct) ")