From 73e00bf7f8ecadea950077676d62b303b5b514a1 Mon Sep 17 00:00:00 2001 From: Kojo Date: Wed, 8 Jan 2025 16:43:42 +0100 Subject: [PATCH] KomMitBewo: Heiligabend und Silvester auch im Urlaubskonto als halbe (Urlaubs-) Tage behandeln --- .../KomMitBewo/Service/CustomVacationService.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ReportImp/KomMitBewo/Service/CustomVacationService.cs b/ReportImp/KomMitBewo/Service/CustomVacationService.cs index 733a9b77b..2a6657a74 100644 --- a/ReportImp/KomMitBewo/Service/CustomVacationService.cs +++ b/ReportImp/KomMitBewo/Service/CustomVacationService.cs @@ -26,6 +26,19 @@ namespace KommMit.Service } return list; - } + } + + public override decimal GetFeiertagsFaktor(DateTime start) + { + if (start.Year >= 2024 && start.Month == 12 && (start.Day == 24 || start.Day == 31)) + { + return 0.5m; + } + else if (IstFeiertag(start)) + { + return 1; + } + return 0; + } } }