From d17e76e1604a1e3950c68d2d8cd5d8e054d6b03c Mon Sep 17 00:00:00 2001 From: HirschleM Date: Wed, 1 Jul 2026 07:59:33 +0200 Subject: [PATCH] =?UTF-8?q?MH:=20AachenerLaienhelfer=20Bugfix=20Urlaubskon?= =?UTF-8?q?to=20befristete=20Vertr=C3=A4ge=20SupportOID=3D166546?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AachenerLaienhelfer/Service/CustomVacationService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ReportImp/AachenerLaienhelfer/Service/CustomVacationService.cs b/ReportImp/AachenerLaienhelfer/Service/CustomVacationService.cs index 849371ded..47b640977 100644 --- a/ReportImp/AachenerLaienhelfer/Service/CustomVacationService.cs +++ b/ReportImp/AachenerLaienhelfer/Service/CustomVacationService.cs @@ -35,6 +35,7 @@ namespace AachenerLaienhelfer.Service public override decimal CalcCorrectNumberOfLeaveDaysForSpecialContractSituation(DateTime entryDate, DateTime? endDate, int anzahlArbeitstage, int restlicheTageImJahr, decimal? urlaubstageProJahr) { decimal urlaubstage = 0; + if (urlaubstageProJahr == null) urlaubstageProJahr = 0m; @@ -45,9 +46,10 @@ namespace AachenerLaienhelfer.Service { if (endDate == null) urlaubstage = (decimal)urlaubstageProJahr; - else if (endDate.Value.Day == 31 && endDate.Value.Month == 12) urlaubstage = (decimal)urlaubstageProJahr; + else + urlaubstage = (decimal)urlaubstageProJahr / 365m * restlicheTageImJahr; } else {