From 3b74044fa2082e42448f7941327aa9b2ab25614a Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 22 Feb 2024 14:18:16 +0100 Subject: [PATCH] ChristopherusHaus/Export/LohnExporter - Filter auf Assistenz --- ReportImp/ChristopherusHaus/Export/LohnExporter.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ReportImp/ChristopherusHaus/Export/LohnExporter.cs b/ReportImp/ChristopherusHaus/Export/LohnExporter.cs index da21a483a..71989e457 100644 --- a/ReportImp/ChristopherusHaus/Export/LohnExporter.cs +++ b/ReportImp/ChristopherusHaus/Export/LohnExporter.cs @@ -44,12 +44,19 @@ namespace BeWo.ChristopherusHaus.Export edat.Personalnr = edt.Employee.PersonnelNumber; edat.Vorname = edt.FirstName; edat.Nachname = edt.LastName; + var contract = edt.Employee.GetValidContractForDate(monat); + bool fachkraft = true; + if (contract != null && contract.ContractTypeValueListEntry != null && contract.ContractTypeValueListEntry.Type == ValueListEntryType.ContractType + && contract.ContractTypeValueListEntry.Value.Contains("Assistenzkraft")) + { + fachkraft = false; + } decimal nachtarbeit = 0; decimal sonntag = 0; decimal feiertag = 0; - if (edt.Days != null) + if (edt.Days != null && fachkraft) { foreach (var dd in edt.Days) {