From be22686fd175b6aae182ce4ddcd7e3b451927117 Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Thu, 8 Aug 2024 10:38:18 +0200 Subject: [PATCH] MH: Betreuwo Wesel 24.12. und 31.12. --- .../CustomMitarbeiterstundenkontoBerechnung.cs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/ReportImp/BetreuwoWesel/CustomMitarbeiterstundenkontoBerechnung.cs b/ReportImp/BetreuwoWesel/CustomMitarbeiterstundenkontoBerechnung.cs index 784bdfa4b..d5266b62d 100644 --- a/ReportImp/BetreuwoWesel/CustomMitarbeiterstundenkontoBerechnung.cs +++ b/ReportImp/BetreuwoWesel/CustomMitarbeiterstundenkontoBerechnung.cs @@ -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)