From 240a70cd985be9054c18d047a13176d2b2073edd Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 24 Jul 2024 16:18:38 +0200 Subject: [PATCH] CaritasverbandKelheim/Service/CustomSaveInterceptor - Bug Arbeitszeit Erfassung gefixt --- .../CaritasverbandKelheim/Service/CustomSaveInterceptor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReportImp/CaritasverbandKelheim/Service/CustomSaveInterceptor.cs b/ReportImp/CaritasverbandKelheim/Service/CustomSaveInterceptor.cs index 80a1bad57..bb5c0989a 100644 --- a/ReportImp/CaritasverbandKelheim/Service/CustomSaveInterceptor.cs +++ b/ReportImp/CaritasverbandKelheim/Service/CustomSaveInterceptor.cs @@ -13,7 +13,7 @@ namespace CaritasverbandKelheim.Service public override void BeforeSaveServiceRecord(ServiceRecord sr) { // Vor 7 Minuten soll abgerundet, danach 15 aufgerundet werden, wenn bei KT 15 Min eingestellt ist und es Bezirk Niederbayern ist - if (sr.CostBearer2SupportConcept.CostBearer.Organisation.Name.ToLower().Contains("bezirk niederbayern") && sr.Start.HasValue && sr.End.HasValue) + if (sr.CostBearer2SupportConcept != null && sr.CostBearer2SupportConcept.CostBearer.Organisation.Name.ToLower().Contains("bezirk niederbayern") && sr.Start.HasValue && sr.End.HasValue) { if (sr.DurationMinutes <= 7) {