BrueckeABW: Heiligabend (ab 2025) als vollen Arbeitstag behandeln

This commit is contained in:
2025-11-14 10:41:15 +01:00
parent 4090ea51f8
commit c7f0868bf1
2 changed files with 26 additions and 0 deletions

View File

@@ -99,6 +99,7 @@
<Compile Include="ServicesOverviewReport.Designer.cs">
<DependentUpon>ServicesOverviewReport.cs</DependentUpon>
</Compile>
<Compile Include="Service\CustomVacationService.cs" />
<Compile Include="SettlementReport2.cs">
<SubType>Component</SubType>
</Compile>

View File

@@ -0,0 +1,25 @@
using BeWo.Service.Plugins;
using BS.Shared.DataContracts;
using System;
using System.Collections.Generic;
using System.Linq;
namespace BrueckeABW.Service
{
public class CustomVacationService : VacationService
{
public override List<FeiertagDC> GetFeiertage(int year, String bundesland)
{
var feiertage = base.GetFeiertage(year, bundesland);
if (year >= 2025)
{
var weihnachten = feiertage.FirstOrDefault(f => f.Name == "Heilig Abend");
if (weihnachten != null)
feiertage.Remove(weihnachten);
}
return feiertage;
}
}
}