MH: WendepunktVelbert Urlaubskonto Bugfix

This commit is contained in:
2025-11-19 15:00:16 +01:00
parent 57789cc2ce
commit 3c7ea71b7a

View File

@@ -14,7 +14,7 @@ namespace WendepunktVelbert.Service
{
var sonderurlaubsItems = base.CreateSonderurlaubItems(emp, contract, sonderurlaubDict, darstellungDCs);
if (emp.Notice2.Contains("SD") && !darstellungDCs.Any(dc => dc.Erlaeuterung.Contains("Regenerationstage")))
if (emp.Notice2 != null && emp.Notice2.Contains("SD") && darstellungDCs != null && !darstellungDCs.Any(dc => dc.Erlaeuterung.Contains("Regenerationstage")))
{
sonderurlaubsItems.Add(new UrlaubskontoDarstellungDC()
{