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() });