diff --git a/ReportImp/CaritasverbandOstvest/Invoicing/CustomInvoiceCreation.cs b/ReportImp/CaritasverbandOstvest/Invoicing/CustomInvoiceCreation.cs index d4d35cc6b..14da2dd2b 100644 --- a/ReportImp/CaritasverbandOstvest/Invoicing/CustomInvoiceCreation.cs +++ b/ReportImp/CaritasverbandOstvest/Invoicing/CustomInvoiceCreation.cs @@ -17,9 +17,9 @@ namespace CaritasOstvest.Invoicing { public class CustomInvoiceCreation : InvoiceCreation { - public override ServiceInvoice CreateSingleInvoice(int invoiceCounter, CostBearer costBearer, DateTimeSpan invoicePeriod, CompactSupportConceptDC supportConcept, List serviceRecords) - { - if (!supportConcept.IsDeleted && !supportConcept.IsArchived) // Standard, außer dass auch nicht bewilligte abgerechnet werden + public override ServiceInvoice CreateSingleInvoice(int invoiceCounter, CostBearer costBearer, DateTimeSpan invoicePeriod, CompactSupportConceptDC supportConcept, List serviceRecords) + { + if (supportConcept.IsApproved || !supportConcept.IsDeleted && !supportConcept.IsArchived) // Standard, außer dass auch nicht bewilligte abgerechnet werden { var invoice = new ServiceInvoice(); var supportConceptList = new List { supportConcept }; @@ -42,7 +42,7 @@ namespace CaritasOstvest.Invoicing return invoice; } - return null; - } - } + return null; + } + } }