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; + } + } + } +}