From cb8ce79311381a9818b8ed6bd55e481fbbfd710d Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 9 Oct 2025 14:22:43 +0200 Subject: [PATCH] =?UTF-8?q?FeidPartnerReports/Invoicing/CollectiveInvoiceC?= =?UTF-8?q?reation=20-=20Ber=C3=BCcksichtigung=20falls=20Bew=20nicht=20vol?= =?UTF-8?q?ler=20Monat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Invoicing/CollectiveInvoiceCreation.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ReportImp/FeidPartnerReports/Invoicing/CollectiveInvoiceCreation.cs b/ReportImp/FeidPartnerReports/Invoicing/CollectiveInvoiceCreation.cs index 6159e068d..56c65a307 100644 --- a/ReportImp/FeidPartnerReports/Invoicing/CollectiveInvoiceCreation.cs +++ b/ReportImp/FeidPartnerReports/Invoicing/CollectiveInvoiceCreation.cs @@ -67,6 +67,14 @@ namespace FeidPartnerReports.Invoicing if (supportConceptApprovalPeriod.ServiceCategory != null && data != null && data.Count > 0) { + if (supportConceptApprovalPeriod.StartDate.HasValue && supportConceptApprovalPeriod.StartDate.Value > start) + { + start = supportConceptApprovalPeriod.StartDate.Value; + } + if (supportConceptApprovalPeriod.EndDate.HasValue && supportConceptApprovalPeriod.EndDate.Value < end) + { + end = supportConceptApprovalPeriod.EndDate.Value; + } decimal preis = (decimal)Math.Round((double)data[0].AmountTotal, 2, MidpointRounding.AwayFromZero); decimal days = (decimal)(end - start).TotalDays + 1;