diff --git a/ReportImp/CaritasverbandKelheim/LeistungsnachweisAnlage5.cs b/ReportImp/CaritasverbandKelheim/LeistungsnachweisAnlage5.cs index 559c8b00e..0333f6403 100644 --- a/ReportImp/CaritasverbandKelheim/LeistungsnachweisAnlage5.cs +++ b/ReportImp/CaritasverbandKelheim/LeistungsnachweisAnlage5.cs @@ -21,18 +21,6 @@ namespace CaritasverbandKelheim public void SetReportDataSource(ServicesOverviewRO pRO) { - - // Get calling method name - //StackTrace stackTrace = new StackTrace(); - //Debug.WriteLine(stackTrace.GetFrame(1).GetMethod().Name); - - bool hatGruppen = false; - - - - //if (pRO == null) - // return; - if (pRO.Services != null) { if (pRO.SupportConceptCostBearer == null) @@ -57,13 +45,13 @@ namespace CaritasverbandKelheim } } } - else if (pRO.SupportConceptCostBearer.ApprovalPeriodList.Count > 0) + else if (pRO.SupportConceptCostBearer != null && pRO.SupportConceptCostBearer.ApprovalPeriodList.Count > 0) { foreach (var item in pRO.SupportConceptCostBearer.ApprovalPeriodList) { if (item.ServiceCategory != null) { - if (item.ServiceCategory.Name.ToLower().Contains("fachkraft")) + if (item.ServiceCategory.Name.ToLower().Contains("fachkraft") || item.ServiceCategory.Name.ToLower().Contains("direkte leistung abw")) lblApprovedFLS.Text = string.Format("{0:0.00}", item.ApprovedBEPerInterval); else if (item.ServiceCategory.Name.ToLower().Contains("hilfskraft")) lblApprovedASS.Text = string.Format("{0:0.00}", item.ApprovedBEPerInterval);