From 51d35aa79e6ca177df6edf10c75f79ea47bc0a2d Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 29 Apr 2025 14:24:44 +0200 Subject: [PATCH] =?UTF-8?q?FeidPartnerReports/Statistics/CustomServiceReco?= =?UTF-8?q?rdStatisticFactory.cs=20-=20keine=20Ber=C3=BCcksichtigung=20Gru?= =?UTF-8?q?ppenbuchungszeit=20f=C3=BCr=20Zeiterfassung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomServiceRecordStatisticFactory.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ReportImp/FeidPartnerReports/Statistics/CustomServiceRecordStatisticFactory.cs b/ReportImp/FeidPartnerReports/Statistics/CustomServiceRecordStatisticFactory.cs index 18f309e9d..a781951e1 100644 --- a/ReportImp/FeidPartnerReports/Statistics/CustomServiceRecordStatisticFactory.cs +++ b/ReportImp/FeidPartnerReports/Statistics/CustomServiceRecordStatisticFactory.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using BeWo.Data.Entities; using BeWo.Service.DCEntityMapper; using BeWo.Service.Plugins; using BS.Shared; @@ -73,7 +74,18 @@ namespace FeidPartnerReports.Statistics return stat; } - private bool EnthaeltEintraege(DateTime start, DateTime end, List serviceRecords) + protected override IEnumerable GetServiceRecordsForStatistic(long costBearer2SupportConceptOid) + { + var allServiceRecords = base.GetServiceRecordsForStatistic(costBearer2SupportConceptOid); + if (allServiceRecords != null && allServiceRecords.Count() > 0) + { + allServiceRecords = allServiceRecords.Where(s => !s.GroupOid.HasValue).ToList(); + } + + return allServiceRecords; + } + + private bool EnthaeltEintraege(DateTime start, DateTime end, List serviceRecords) { bool vorhandeneEintraege = false; if (serviceRecords != null && serviceRecords.Count > 0)