MH: Bugfix im Urlaubskonto bzgl. Sonderurlaub

SupportOID=159040
This commit is contained in:
2026-03-31 15:57:42 +02:00
parent 44556695d9
commit c4522c4944

View File

@@ -527,7 +527,7 @@ namespace BeWo.Service.Plugins
// Standardmäßig Sonderurlaub bei Schwerbehinderung, aber modifizierbar
List<UrlaubskontoDarstellungDC> sonderurlaubItems = CreateSonderurlaubItems(emp, contract, es.GetSonderurlaubForEmployee(emp.EmployeeOid.Value, year), dcs);
//List<UrlaubskontoDarstellungDC> sonderurlaubItems = AddSonderurlaub(emp, contract, year);
if (sonderurlaubItems.Count > 0)
if (sonderurlaubItems.Count > 0 && !dcs.Any(d => d.Erlaeuterung == "Sonderurlaub aufgrund von Behinderungsgrad über 50"))
{
dcs.AddRange(sonderurlaubItems);
sonderurlaub += sonderurlaubItems.Sum(s => Convert.ToDecimal(s.AnzahlTage));