MH: AachenerLaienhelfer/Service/CustomGroupDurationCalculator.cs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user