FeidPartnerReports/Statistics/CustomServiceRecordStatisticFactory.cs - keine Berücksichtigung Gruppenbuchungszeit für Zeiterfassung

This commit is contained in:
2025-04-29 14:24:44 +02:00
parent b6cf2424c0
commit 51d35aa79e

View File

@@ -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<ServiceRecordDC> serviceRecords)
protected override IEnumerable<ServiceRecord> 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<ServiceRecordDC> serviceRecords)
{
bool vorhandeneEintraege = false;
if (serviceRecords != null && serviceRecords.Count > 0)