diff --git a/ReportImp/AsSozialeDienstleistungenEV/CustomReportCreator.cs b/ReportImp/AsSozialeDienstleistungenEV/CustomReportCreator.cs index b228a0018..328d8beb1 100644 --- a/ReportImp/AsSozialeDienstleistungenEV/CustomReportCreator.cs +++ b/ReportImp/AsSozialeDienstleistungenEV/CustomReportCreator.cs @@ -61,12 +61,17 @@ namespace AsSozialeDienstleistungenEV long cOid = iDC.InvoiceBase.SupportConceptCostBearerRelDc.SupportConcept.Customer.CustomerOid; long oOid = iDC.InvoiceBase.RecipientOrganisationOid ?? 0; - var qb = CreateServiceOverviewSingleCustomerReport(cOid, month, year, oOid, 0, null, 1, DateTime.DaysInMonth(year, month)); - qb.CreateDocument(); + while (month <= iDC.InvoiceBase.AccountingPeriodEnd.Value.Month) + { + var qb = CreateServiceOverviewSingleCustomerReport(cOid, month, year, oOid, 0, null, 1, DateTime.DaysInMonth(year, month)); + qb.CreateDocument(); - seite1.Pages.AddRange(qb.Pages); - invoiceReport = seite1; + seite1.Pages.AddRange(qb.Pages); + invoiceReport = seite1; + month++; + + } } else {