Wabe/Invoicing/CollectiveInvoiceCreation.cs - Korrektur für Eintritt/Austritt unterhalb des Quartals
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user