MH: Betreuwo Wesel 24.12. und 31.12.

This commit is contained in:
2024-08-08 10:38:18 +02:00
parent dacb47c8ca
commit be22686fd1

View File

@@ -18,11 +18,13 @@ namespace BetreuWoWesel
}
public override decimal GetFeiertagsFaktor(DateTime start)
{
if (start.Year >= 2019 && start.Month == 12 && (start.Day == 24 || start.Day == 31))
{
return 0.5m;
}
if (start.Year >= 2019 && start.Year <= 2023 && start.Month == 12 && (start.Day == 24 || start.Day == 31))
{
return 0.5m;
}
else if (start.Year >= 2024 && start.Month == 12 && (start.Day == 24 || start.Day == 31))
return 1;
return base.GetFeiertagsFaktor(start);
}
@@ -33,8 +35,12 @@ namespace BetreuWoWesel
{
list.Add(new DateTime(year, 12, 31));
}
if (year >= 2024)
{
list.Add(new DateTime(year, 12, 24));
}
return list;
return list;
}
public override MitarbeiterstundenkontoRO.DayDetail CreateDayDetail(DateTime date, MitarbeiterstundenkontoRO.EmployeeDetail ed)