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) {