BeWoAuxilio: Gruppenbuchungslogik angepasst (FLS / #Klienten * #Mitarbeiter)
This commit is contained in:
@@ -69,6 +69,7 @@
|
||||
<Compile Include="Budgetnachweis.Designer.cs">
|
||||
<DependentUpon>Budgetnachweis.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Calculations\CustomGroupDurationCalculator.cs" />
|
||||
<Compile Include="CustomMitarbeiterstundenkontoBerechnung.cs" />
|
||||
<Compile Include="CustomMitarbeiterstundenkontoBerechnungMonate.cs" />
|
||||
<Compile Include="CustomReportCreator.cs" />
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
using BeWo.Service.Plugins;
|
||||
using BS.Shared.DataContracts;
|
||||
|
||||
namespace BeWoAuxilio.Calculation
|
||||
{
|
||||
|
||||
public class CustomGroupDurationCalculator : GroupDurationCalculator
|
||||
{
|
||||
public override GroupDurationDC CalculateGroupDuration(int personCount, int employeeCount, decimal totalDuration)
|
||||
{
|
||||
return new GroupDurationDC()
|
||||
{
|
||||
SingleDuration = (totalDuration * employeeCount) / personCount,
|
||||
TotalDuration = totalDuration
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user