CaritasverbandOstvest/Invoicing/CustomInvoiceCreation.cs - Fix für Finanzauswertung

This commit is contained in:
2025-10-30 13:17:12 +01:00
parent 61cb5b46b9
commit 61c62f1aff

View File

@@ -17,9 +17,9 @@ namespace CaritasOstvest.Invoicing
{
public class CustomInvoiceCreation : InvoiceCreation
{
public override ServiceInvoice CreateSingleInvoice(int invoiceCounter, CostBearer costBearer, DateTimeSpan invoicePeriod, CompactSupportConceptDC supportConcept, List<ServiceRecordDC> 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<ServiceRecordDC> 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<CompactSupportConceptDC> { supportConcept };
@@ -42,7 +42,7 @@ namespace CaritasOstvest.Invoicing
return invoice;
}
return null;
}
}
return null;
}
}
}