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;