BetreuungsbueroBaak: Heiligabend ab 25. als Arbeitstag behandeln

This commit is contained in:
2025-12-30 20:06:08 +01:00
parent 73148ebca4
commit 28f28fb46d

View File

@@ -0,0 +1,24 @@
using BeWo.Service.Plugins;
using BS.Shared.DataContracts;
using System.Collections.Generic;
using System.Linq;
namespace BetreuungsbueroBaak.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;
}
}
}