From 71bd2fa2c696bdfeffbf36cb43b44fce35f8d74d Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Fri, 6 Sep 2024 12:44:27 +0200 Subject: [PATCH] MH: AS Soziale Dienste mehrere Belege bei Rechnung --- .../CustomReportCreator.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 {