From e0b250ab30e27dcec82e3c4db6fa55ed00b12764 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 24 Mar 2026 14:44:10 +0100 Subject: [PATCH] =?UTF-8?q?Pusteblume=20=C3=84nderungen=20der=20Abbrechnun?= =?UTF-8?q?g=20von=20"Team=20extern"=20in=20Sammelrechnung=20f=C3=BCr=20de?= =?UTF-8?q?n=20Bezirk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Invoicing/IFSSammelInvoiceCreation.cs | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/ReportImp/PraxisPusteblume/Invoicing/IFSSammelInvoiceCreation.cs b/ReportImp/PraxisPusteblume/Invoicing/IFSSammelInvoiceCreation.cs index 258ef794b..a954e6d05 100644 --- a/ReportImp/PraxisPusteblume/Invoicing/IFSSammelInvoiceCreation.cs +++ b/ReportImp/PraxisPusteblume/Invoicing/IFSSammelInvoiceCreation.cs @@ -93,6 +93,29 @@ namespace PraxisPusteblume.Invoicing } List vernetzung = new List { 2, 3, 5, 9, 12 }; + if (invoicePeriod.StartDate.Year >= 2026) + { + //Ab 2026 erste 5 Monate des Jahres bzw. ersten 5 Monate des HPs, wenn HP erst im laufenden Jahr beginnt + vernetzung.Clear(); + if (scap.StartDate.HasValue && scap.StartDate.Value.Year < invoicePeriod.StartDate.Year) // HP begann schon im letzten Jahr + { + vernetzung = new List { 1, 2, 3, 4, 5 }; + } + else + { + int monat = scap.StartDate.Value.Month; + int anzahl = 1; + + while (anzahl <= 5) + { + vernetzung.Add(monat); + anzahl++; + } + + } + + } + if (invoicePeriod.StartDateTime >= new DateTime(2025, 09, 01) && vernetzung.Contains(invoicePeriod.EndDate.Month)) { var itemVernetzung = CreateVernetzungInvoiceItem(scap, invoicePeriod);