LebenshilfeRemscheidFF/Translation/CustomGroupDurationCalculator - Gruppenbuchung erhält volle Zeit für alle
This commit is contained in:
@@ -110,6 +110,7 @@
|
||||
<Compile Include="SettlementReport.Designer.cs">
|
||||
<DependentUpon>SettlementReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Translation\CustomGroupDurationCalculator.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="RechnungFF.resx">
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user