From 382409cc3d3dd894af6313472da5659e194bd9be Mon Sep 17 00:00:00 2001 From: HirschleM Date: Tue, 25 Nov 2025 11:05:41 +0100 Subject: [PATCH] =?UTF-8?q?MH:=20LZ=20K=C3=B6nigsborn=20Stunden=C3=BCbersi?= =?UTF-8?q?cht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LebenszentrumKoenigsborn.csproj | 2 ++ .../Service/CustomStundenuebersichtAuswertung.cs | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ReportImp/LebenszentrumKönigsborn/LebenszentrumKoenigsborn.csproj b/ReportImp/LebenszentrumKönigsborn/LebenszentrumKoenigsborn.csproj index fdfc3ffc9..9de35a89d 100644 --- a/ReportImp/LebenszentrumKönigsborn/LebenszentrumKoenigsborn.csproj +++ b/ReportImp/LebenszentrumKönigsborn/LebenszentrumKoenigsborn.csproj @@ -43,6 +43,8 @@ + + diff --git a/ReportImp/LebenszentrumKönigsborn/Service/CustomStundenuebersichtAuswertung.cs b/ReportImp/LebenszentrumKönigsborn/Service/CustomStundenuebersichtAuswertung.cs index 3b5e63870..54b378cc1 100644 --- a/ReportImp/LebenszentrumKönigsborn/Service/CustomStundenuebersichtAuswertung.cs +++ b/ReportImp/LebenszentrumKönigsborn/Service/CustomStundenuebersichtAuswertung.cs @@ -2,6 +2,7 @@ using BeWo.Data.Entities; using BeWo.Service.Plugins; using BS.Shared.DataContracts; +using BS.Shared.Extensions; using System; using System.Collections.Generic; using System.Linq; @@ -54,6 +55,13 @@ namespace LebenszentrumKoenigsborn.Service { foreach (var sc in group.SupportConcepts) { + if (sc.ServiceRecords != null) + { + var ausfalltermine = sc.ServiceRecords.Where(s => s.ServiceDescription.CategoryName.Trim().Contains("Ausfalltermin")).ToList(); + if (ausfalltermine != null) + sc.ServiceRecords.RemoveRange(ausfalltermine); + } + foreach (var sr in sc.ServiceRecords) { if (sr.GroupOid == null) @@ -61,7 +69,7 @@ namespace LebenszentrumKoenigsborn.Service else { var srgroup = DAOFactory.GenericDAO.GetByID(sr.GroupOid.Value); - sr.RoundedDuration = (srgroup.RoundedDuration * srgroup.CustomerCount) / srgroup.EmployeeCount ; + sr.RoundedDuration = (srgroup.RoundedDuration * srgroup.CustomerCount) / srgroup.EmployeeCount; } } }