AidshilfeEssen/Service/CustomGroupDurationCalculator Anpassung für 67er
This commit is contained in:
@@ -63,6 +63,7 @@
|
||||
<Compile Include="ServiceInvoiceReport.Designer.cs">
|
||||
<DependentUpon>ServiceInvoiceReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Service\CustomGroupDurationCalculator.cs" />
|
||||
<Compile Include="Service\ServiceRecordDurationCalculator.cs" />
|
||||
<Compile Include="SettlementReport2.cs">
|
||||
<SubType>Component</SubType>
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Service.Plugins;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts;
|
||||
|
||||
namespace AidshilfeEssen.Calculations
|
||||
{
|
||||
public class CustomGroupDurationCalculator : GroupDurationCalculator
|
||||
{
|
||||
public override void CalculateGroupDuration(ServiceRecordGroup group)
|
||||
{
|
||||
base.CalculateGroupDuration(group);
|
||||
|
||||
foreach (var sr in group.ServiceRecordList)
|
||||
{
|
||||
if (sr.ServiceDescription.ServiceCategory.Name.ToLower().Contains("67") && (sr.ServiceDescription.ServiceCategory.Name.ToLower().Contains("lvr") || sr.ServiceDescription.ServiceCategory.Name.ToLower().Contains("lwl")))
|
||||
{
|
||||
sr.RoundedDuration = Math.Floor(sr.RoundedDuration / 10) * 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user