From 6038ecdbfb47684e4cf0d314c611ab187635adb6 Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Wed, 9 Aug 2023 14:22:23 +0200 Subject: [PATCH] =?UTF-8?q?MH:=20Autismus=20K=C3=B6ln=20Bonn=20QBs=20alpha?= =?UTF-8?q?betisch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReportImp/AutismusKoelnBonn/CustomReportCreator.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ReportImp/AutismusKoelnBonn/CustomReportCreator.cs b/ReportImp/AutismusKoelnBonn/CustomReportCreator.cs index 21d740382..e31d5dab2 100644 --- a/ReportImp/AutismusKoelnBonn/CustomReportCreator.cs +++ b/ReportImp/AutismusKoelnBonn/CustomReportCreator.cs @@ -24,7 +24,7 @@ namespace AutismusKoelnBonn public override XtraReport CreateServiceOverviewAllCustomersReport(int month, int year, long orgaOid, long empOid, long? serviceCategoryOid, int startDay, int endDay) { - List lROs = ServicesOverviewRO.Create(month, year, orgaOid, empOid, startDay, endDay); + List lROs = ServicesOverviewRO.Create(month, year, orgaOid, empOid, startDay, endDay).OrderBy(ro => ro.CustomerLastName).ToList(); if (lROs.Count > 0) { @@ -57,8 +57,10 @@ namespace AutismusKoelnBonn roList.Add(ro); } } - - if (roList.Count > 0) + + roList = roList.OrderBy(ro => ro.CustomerLastName).ToList(); + + if (roList.Count > 0) { var rootReport = CreateServicesOverviewReportForRo(roList[0], serviceCategoryOid); rootReport.CreateDocument();