From 139d5f867c3d17aec8f9fde66a1a25f2ff8bc52b Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 11 Oct 2024 12:49:21 +0200 Subject: [PATCH] MalteserJohanniterJohanneshaus/Invoicing/CollectiveInvoiceCreation - letzter Tag wird voll gerechnet --- .../Invoicing/CollectiveInvoiceCreation.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ReportImp/MalteserJohanniterJohanneshaus/Invoicing/CollectiveInvoiceCreation.cs b/ReportImp/MalteserJohanniterJohanneshaus/Invoicing/CollectiveInvoiceCreation.cs index 52b6ac77f..1b2228af4 100644 --- a/ReportImp/MalteserJohanniterJohanneshaus/Invoicing/CollectiveInvoiceCreation.cs +++ b/ReportImp/MalteserJohanniterJohanneshaus/Invoicing/CollectiveInvoiceCreation.cs @@ -138,14 +138,8 @@ namespace MalteserJohanniterJohanneshaus.Invoicing if (scap.StartDate <= serviceInvoicePeriod.Start) start = serviceInvoicePeriod.Start.Value; else - start = (DateTime)scap.StartDate; //Einzugstag wird mit abgerechnet + start = (DateTime)scap.StartDate; - if (cb2sc.SupportConcept.Customer.TerminationDate.HasValue && - cb2sc.SupportConcept.Customer.TerminationDate.Value <= scap.EndDate.Value - && cb2sc.SupportConcept.Customer.TerminationDate >= scap.StartDate.Value) - { - ende = cb2sc.SupportConcept.Customer.TerminationDate.Value.AddDays(-1); //Auszugstag wird NICHT abgerechnet - } if (scap.EndDate >= serviceInvoicePeriod.End) ende = serviceInvoicePeriod.End.Value; else