BeWoAuxilio: Gruppenbuchungslogik angepasst (FLS / #Klienten * #Mitarbeiter)

This commit is contained in:
2024-05-08 17:32:42 +02:00
parent 618b35e48b
commit bc11efd5a2
2 changed files with 19 additions and 0 deletions

View File

@@ -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" />

View File

@@ -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
};
}
}
}