BetreuungsbueroBaak: Heiligabend ab 25. als Arbeitstag behandeln
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user