DomizielAnsbach/Invoicing/InvoiceHelper - Monatsenddatum korrigiert
This commit is contained in:
@@ -39,7 +39,7 @@ namespace DomizielAnsbach.Invoicing
|
||||
while (start <= ende)
|
||||
{
|
||||
DateTime monatStart = start; //new DateTime(start.Year, start.Month, 1);
|
||||
DateTime monatEnde = ende.AddDays(1); // monatStart.AddMonths(1);
|
||||
DateTime monatEnde = new DateTime(start.Year, start.AddMonths(1).Month, 1); //ende.AddDays(1); // monatStart.AddMonths(1);
|
||||
if (ende.AddDays(2) < monatStart.AddMonths(1))
|
||||
{
|
||||
monatEnde = ende.AddDays(1);
|
||||
|
||||
Reference in New Issue
Block a user