From 5768442cfedcd4afc916c8dc0db1d93a3ab32fa6 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 7 Jun 2018 08:39:42 +0200 Subject: [PATCH] IDEMPIERE-3727 Report Cube creates data for all client in fact_acc_summary table / integrate patch from Pritesh Shah --- org.adempiere.base/src/org/compiere/model/MReportCube.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MReportCube.java b/org.adempiere.base/src/org/compiere/model/MReportCube.java index 3e2df3b789..870972820b 100644 --- a/org.adempiere.base/src/org/compiere/model/MReportCube.java +++ b/org.adempiere.base/src/org/compiere/model/MReportCube.java @@ -133,7 +133,7 @@ public class MReportCube extends X_PA_ReportCube { " INNER JOIN C_Period p ON ( f.DateAcct BETWEEN p.StartDate AND p.EndDate ) " + " INNER JOIN C_Year y ON ( p.C_Year_ID = y.C_Year_ID ) " + " WHERE p.PeriodType = 'S' " + - " AND y.C_Calendar_ID = ? "; + " AND y.C_Calendar_ID = ? AND f.AD_Client_ID = ? "; if ( getLastRecalculated() != null && !reset ) from += "AND p.C_Period_ID IN " + periods; @@ -190,7 +190,7 @@ public class MReportCube extends X_PA_ReportCube { String sql = insert.append(select.toString()).append(from).append(groups.toString()).toString(); if (log.isLoggable(Level.FINE))log.log(Level.FINE, sql); - Object[] params = new Object[] { getPA_ReportCube_ID(), getC_Calendar_ID() }; + Object[] params = new Object[] { getPA_ReportCube_ID(), getC_Calendar_ID(), getAD_Client_ID() }; start = System.currentTimeMillis(); int rows = DB.executeUpdateEx(sql, params, get_TrxName());