From 19abd7b4fb94636c1cf9800a7ef01418db2298d4 Mon Sep 17 00:00:00 2001 From: HirschleM Date: Wed, 7 May 2025 07:18:12 +0200 Subject: [PATCH] MH: AachenerLaienhelfer/Service/CustomGroupDurationCalculator.cs --- .../Service/CustomGroupDurationCalculator.cs | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ReportImp/AachenerLaienhelfer/Service/CustomGroupDurationCalculator.cs diff --git a/ReportImp/AachenerLaienhelfer/Service/CustomGroupDurationCalculator.cs b/ReportImp/AachenerLaienhelfer/Service/CustomGroupDurationCalculator.cs new file mode 100644 index 000000000..c41eb18eb --- /dev/null +++ b/ReportImp/AachenerLaienhelfer/Service/CustomGroupDurationCalculator.cs @@ -0,0 +1,23 @@ +using BeWo.Service.Plugins; +using BS.Shared.DataContracts; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AachenerLaienhelfer.Service +{ + public class CustomGroupDurationCalculator : GroupDurationCalculator + { + public override GroupDurationDC CalculateGroupDuration(int personCount, int employeeCount, decimal totalDuration, + long[] costBearer2SupportConceptArray) + { + var gd = new GroupDurationDC(); + gd.SingleDuration = totalDuration / personCount; + gd.TotalDuration = totalDuration; + + return gd; + } + } +}