From 433a3426bfc44a758141e1098857ea52c27f8cd2 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 14 Nov 2025 13:11:26 +0100 Subject: [PATCH] SeWo/Mitarbeiterstundenkonto - 24. u 31.12. als halber Tag --- ReportImp/SeWo/MitarbeiterstundenkontoBerechnung.cs | 6 ++++++ ReportImp/SeWo/Service/CustomVacationService.cs | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ReportImp/SeWo/MitarbeiterstundenkontoBerechnung.cs b/ReportImp/SeWo/MitarbeiterstundenkontoBerechnung.cs index 2ba0038f5..bdc1cb26d 100644 --- a/ReportImp/SeWo/MitarbeiterstundenkontoBerechnung.cs +++ b/ReportImp/SeWo/MitarbeiterstundenkontoBerechnung.cs @@ -258,6 +258,12 @@ namespace BeWo.SeWo return list; } + public override decimal GetFeiertagsFaktor(DateTime start) + { + if (start.Month == 12 && (start.Day == 24 || start.Day == 31)) + return 0.5m; + return base.GetFeiertagsFaktor(start); + } } } diff --git a/ReportImp/SeWo/Service/CustomVacationService.cs b/ReportImp/SeWo/Service/CustomVacationService.cs index 99da530c6..52dffd4ec 100644 --- a/ReportImp/SeWo/Service/CustomVacationService.cs +++ b/ReportImp/SeWo/Service/CustomVacationService.cs @@ -19,5 +19,13 @@ namespace SeWo.Service return list; } + + public override decimal GetFeiertagsFaktor(DateTime start) + { + if (start.Year >= 2025 && start.Month == 12 && (start.Day == 24 || start.Day == 31)) + return 0.5m; + else + return base.GetFeiertagsFaktor(start); + } } }