WendepunktVelbert/Invoicing/CustomInvoiceCreation.cs - nochmal nachgebessert
This commit is contained in:
@@ -20,7 +20,7 @@ namespace WendepunktVelbert.Invoicing
|
||||
// Abschlagszahlungen müssen berücksichtigt werden
|
||||
public override ServiceInvoice CreateSingleInvoice(int invoiceCounter, CostBearer costBearer, DateTimeSpan invoicePeriod, CompactSupportConceptDC supportConcept, List<ServiceRecordDC> serviceRecords)
|
||||
{
|
||||
if (!supportConcept.IsDeleted && !supportConcept.IsArchived)
|
||||
if (supportConcept.IsApproved)
|
||||
{
|
||||
var invoice = new ServiceInvoice();
|
||||
|
||||
@@ -33,17 +33,13 @@ namespace WendepunktVelbert.Invoicing
|
||||
|
||||
SetRecipientInformation(invoice, costBearer);
|
||||
|
||||
SetServiceInvoicePeriods(invoice, invoice.InvoiceBase.CostBearer2SupportConcept, invoicePeriod,
|
||||
serviceRecords);
|
||||
SetServiceInvoicePeriods(invoice, invoice.InvoiceBase.CostBearer2SupportConcept, invoicePeriod, serviceRecords);
|
||||
|
||||
SetServiceInvoicePeriodAmounts(invoice);
|
||||
SetAmountAdvancePayments(invoice);
|
||||
SetAmountEquityContribution(invoice);
|
||||
|
||||
|
||||
return invoice;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user