LWLDiggaBerechnung - Bugfix wenn Preise in der Zukunft eingetragen sind
This commit is contained in:
@@ -144,6 +144,10 @@ namespace BeWo.Service.Invoicing
|
||||
if (!cr.EndDate.HasValue)
|
||||
{
|
||||
cr.EndDate = this.BewilligtEnde.AddDays(1);
|
||||
if (cr.StartDate.HasValue && cr.StartDate.Value > cr.EndDate.Value) //manchmal werden schon aberwitzige Preise in der Zukunft hinterlegt
|
||||
{
|
||||
cr.EndDate = cr.StartDate.Value.AddMonths(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user