From 96aefde2d273559ed25b8f67ae71a4760fbd2eef Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Wed, 7 Sep 2022 15:02:18 +0200 Subject: [PATCH] =?UTF-8?q?MH:=20Liste=20mit=20Krankenkassen=20f=C3=BCr=20?= =?UTF-8?q?Bl=C3=B6meling=20und=20Teckhaus,=20die=20Hauspauschalen=20zahle?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Invoicing/SoziotherapieInvoiceCreation.cs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/ReportImp/BloemelingUndTeckhaus/Invoicing/SoziotherapieInvoiceCreation.cs b/ReportImp/BloemelingUndTeckhaus/Invoicing/SoziotherapieInvoiceCreation.cs index eb14ee6e7..050b7b8ba 100644 --- a/ReportImp/BloemelingUndTeckhaus/Invoicing/SoziotherapieInvoiceCreation.cs +++ b/ReportImp/BloemelingUndTeckhaus/Invoicing/SoziotherapieInvoiceCreation.cs @@ -15,16 +15,22 @@ namespace BloemelingUndTeckhaus.Invoicing public override IList CreateSummaryInvoiceItems(IList itemList, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap, Calculations calc) { + var kostenträgerMitHausbesuchspauschale = new List{ "Barmer", "DAK Fachzentrum ambulante Leistungen in Saarbrücken", + "KK - Kaufmännische Krankenkasse", "Techniker Krankenkasse" }; bool enthaeltHausbesuche = false; - foreach (var item in itemList) + if (kostenträgerMitHausbesuchspauschale.Contains(scap.CostBearer2SupportConcept.CostBearer.Organisation.Name)) { - if (item.ItemDescription.ToLower().Contains("hausbesuch")) + foreach (var item in itemList) { - item.GrossAmountTotal += _FAHRTKOSTENPAUSCHALE; - if (!enthaeltHausbesuche) - enthaeltHausbesuche = true; + if (item.ItemDescription.ToLower().Contains("hausbesuch")) + { + item.GrossAmountTotal += _FAHRTKOSTENPAUSCHALE; + if (!enthaeltHausbesuche) + enthaeltHausbesuche = true; + } } - } + } + if (enthaeltHausbesuche) itemList.Add(new InvoiceItem() { AmountPerUnit = _FAHRTKOSTENPAUSCHALE, ItemPeriodStart = new System.DateTime(), ItemPeriodEnd = new System.DateTime() });