AachenerLaienhelfer: Heiligabend und Silvester als halbe Arbeitstage behandeln
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CustomMitarbeiterstundenkontoBerechnung.cs" />
|
||||
<Compile Include="CustomReportCreator.cs" />
|
||||
<Compile Include="RechnungEigenanteil.cs">
|
||||
<SubType>Component</SubType>
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using BeWo.Report.ReportObjects;
|
||||
|
||||
namespace AachenerLaienhelfer
|
||||
{
|
||||
public class CustomMitarbeiterstundenkontoBerechnung : MitarbeiterstundenkontoBerechnung
|
||||
{
|
||||
public override decimal GetFeiertagsFaktor(DateTime start)
|
||||
{
|
||||
if (start.Month == 12 && (start.Day == 24 || start.Day == 31))
|
||||
{
|
||||
return 0.5m;
|
||||
}
|
||||
|
||||
return base.GetFeiertagsFaktor(start);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user