diff --git a/ReportImp/HausDuelken/Validation/ServiceRecordValidator.cs b/ReportImp/HausDuelken/Validation/ServiceRecordValidator.cs index 5a91893d2..e77e20a61 100644 --- a/ReportImp/HausDuelken/Validation/ServiceRecordValidator.cs +++ b/ReportImp/HausDuelken/Validation/ServiceRecordValidator.cs @@ -179,10 +179,15 @@ namespace KetteReports.Validation // Bei neuen Einträgen soll immer geprüft werden AUßER die Leistung wird angelegt VON "Georg Hoeren" UND Leistung enthält LT24 if (!editServiceRecord.ServiceRecordOid.HasValue) { + // Wenn jemand anderes außer Hoeren eintragen will: prüfen if (!user.Person.LastName.Contains("Hoeren")) return true; - else if (editServiceRecord.ServiceDescription.CategoryName.Trim().ToLower().Contains("lt24")) + // Wenn Hoeren LT24 eintragen will: nicht prüfen + else if (user.Person.LastName.Contains("Hoeren") && editServiceRecord.ServiceDescription.CategoryName.Trim().ToLower().Contains("lt24")) return false; + // Wenn er was anderes eintragen will: prüfen + else + return true; }