From 50a244b44ea5c7ddfe346ce76db729205ec62747 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 14 Jan 2025 16:12:45 +0100 Subject: [PATCH] =?UTF-8?q?Wabe/Invoicing/CollectiveInvoiceCreation.cs=20-?= =?UTF-8?q?=20Korrektur=20f=C3=BCr=20Eintritt/Austritt=20unterhalb=20des?= =?UTF-8?q?=20Quartals?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReportImp/Wabe/Invoicing/CollectiveInvoiceCreation.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ReportImp/Wabe/Invoicing/CollectiveInvoiceCreation.cs b/ReportImp/Wabe/Invoicing/CollectiveInvoiceCreation.cs index df8c230ec..3b85c2552 100644 --- a/ReportImp/Wabe/Invoicing/CollectiveInvoiceCreation.cs +++ b/ReportImp/Wabe/Invoicing/CollectiveInvoiceCreation.cs @@ -137,8 +137,9 @@ namespace Wabe.Invoicing while (start <= ende) { DateTime monatStart = start; //new DateTime(start.Year, start.Month, 1); - DateTime monatEnde = monatStart.AddMonths(1); //ende.AddDays(1); - if (ende.AddDays(2) < monatStart.AddMonths(1)) + DateTime monatEnde = monatStart.AddMonths(1); //new DateTime(start.Year, start.AddMonths(1).Month, 1); //ende.AddDays(1); + monatEnde = new DateTime(monatEnde.Year, monatEnde.Month, 1); + if (ende.AddDays(1) < monatStart.AddMonths(1)) { monatEnde = ende.AddDays(1); }