From c52393f5dc08b707676f07f90a7bf472be8fc748 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 12 Nov 2025 17:00:32 +0100 Subject: [PATCH] =?UTF-8?q?LebenshilfeRemscheidFF/Translation/CustomGroupD?= =?UTF-8?q?urationCalculator=20-=20Gruppenbuchung=20erh=C3=A4lt=20volle=20?= =?UTF-8?q?Zeit=20f=C3=BCr=20alle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LebenshilfeRemscheidFF.csproj | 1 + .../CustomGroupDurationCalculator.cs | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 ReportImp/LebenshilfeRemscheidFF/Translation/CustomGroupDurationCalculator.cs diff --git a/ReportImp/LebenshilfeRemscheidFF/LebenshilfeRemscheidFF.csproj b/ReportImp/LebenshilfeRemscheidFF/LebenshilfeRemscheidFF.csproj index bd25767d3..c41e3682f 100644 --- a/ReportImp/LebenshilfeRemscheidFF/LebenshilfeRemscheidFF.csproj +++ b/ReportImp/LebenshilfeRemscheidFF/LebenshilfeRemscheidFF.csproj @@ -110,6 +110,7 @@ SettlementReport.cs + diff --git a/ReportImp/LebenshilfeRemscheidFF/Translation/CustomGroupDurationCalculator.cs b/ReportImp/LebenshilfeRemscheidFF/Translation/CustomGroupDurationCalculator.cs new file mode 100644 index 000000000..44f75c96a --- /dev/null +++ b/ReportImp/LebenshilfeRemscheidFF/Translation/CustomGroupDurationCalculator.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using BeWo.Data.Entities; +using BeWo.Service.Plugins; +using BS.Shared.Core; +using BS.Shared.DataContracts; + +namespace LebenshilfeRemscheid.Calculations +{ + public class CustomGroupDurationCalculator : GroupDurationCalculator + { + public override void CalculateGroupDuration(ServiceRecordGroup group) + { + base.CalculateGroupDuration(group); + + foreach (var sr in group.ServiceRecordList) + { + sr.RoundedDuration = sr.GroupRoundedDuration.Value; + } + } + } +}