From 1dd7b23263606645b61c77bbe7fc67dfd8b49ec4 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 19 Aug 2024 17:09:12 +0200 Subject: [PATCH] =?UTF-8?q?SHKService/Invoicing/CollectiveInvoiceCreation?= =?UTF-8?q?=20-=20Filter=20auf=20String=20(ka)=20etwas=20gener=C3=B6ser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReportImp/SHKService/Invoicing/CollectiveInvoiceCreation.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ReportImp/SHKService/Invoicing/CollectiveInvoiceCreation.cs b/ReportImp/SHKService/Invoicing/CollectiveInvoiceCreation.cs index 1b69db3e5..5f5604353 100644 --- a/ReportImp/SHKService/Invoicing/CollectiveInvoiceCreation.cs +++ b/ReportImp/SHKService/Invoicing/CollectiveInvoiceCreation.cs @@ -94,7 +94,7 @@ namespace SHKService.Invoicing }; if (supportConceptApprovalPeriod.ServiceCategory.Name == "Fahrzeit") { - if (cb2sc.SupportConcept.Customer.Person.LastNameFirstName.Contains("(ka)")) + if (cb2sc.SupportConcept.Customer.Person.LastNameFirstName.ToLower().Contains("(ka")) { ii.AmountPerUnit = supportConceptApprovalPeriod.ApprovedBEPerInterval * AMOUNT_PER_KMKA; ii.ItemDescription = "Fahrzeiten KA"; @@ -108,7 +108,7 @@ namespace SHKService.Invoicing else { ii.AmountPerUnit = supportConceptApprovalPeriod.ApprovedBEPerInterval * (decimal)Math.Round((double)data[0].AmountTotal / 60, 4, MidpointRounding.AwayFromZero); - if (!cb2sc.SupportConcept.Customer.Person.LastNameFirstName.Contains("(ka)")) + if (!cb2sc.SupportConcept.Customer.Person.LastNameFirstName.ToLower().Contains("(ka")) { var LG = (decimal)GetLeistungsgruppe(supportConceptApprovalPeriod.ApprovedBEPerInterval); if (data.Count > 0 && data[0].AmountTotal != null) @@ -119,7 +119,7 @@ namespace SHKService.Invoicing ii.ItemDescription = "Qualifizierte Assistenz"; ii.Notice = LG.ToString(); } - if (cb2sc.SupportConcept.Customer.Person.LastNameFirstName.Contains("(ka)")) + if (cb2sc.SupportConcept.Customer.Person.LastNameFirstName.ToLower().Contains("(ka")) { ii.ItemDescription = "Kompensatorische Assistenz"; }