MalteserJohanniterJohanneshaus/Invoicing/CollectiveInvoiceCreation - letzter Tag wird voll gerechnet

This commit is contained in:
2024-10-11 12:49:21 +02:00
parent cc9460e7b4
commit 139d5f867c

View File

@@ -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