27 lines
699 B
C#
27 lines
699 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using BeWo.Data.Access;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Service.Plugins;
|
|
using BS.Shared.Core;
|
|
using BS.Shared.DataContracts;
|
|
|
|
namespace Club74.Calculations
|
|
{
|
|
public class CustomGroupDurationCalculator : GroupDurationCalculator
|
|
{
|
|
|
|
public override GroupDurationDC CalculateGroupDuration(int personCount, int employeeCount, decimal totalDuration,
|
|
long[] costBearer2SupportConceptArray)
|
|
{
|
|
|
|
return new GroupDurationDC()
|
|
{
|
|
SingleDuration = Math.Round(totalDuration / personCount, 0, MidpointRounding.AwayFromZero),
|
|
TotalDuration = totalDuration
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|