MH: RosterRO Bugfix

This commit is contained in:
2024-01-31 16:45:28 +01:00
parent c1f72ffbcc
commit c868d25334

View File

@@ -225,12 +225,12 @@ namespace BeWo.Report.ReportObjects
{
if (c.ContractEndDate.HasValue)
{
if (c.EntryDate.Value <= reportDate && c.ContractEndDate.Value >= reportDate)
if (c.EntryDate.HasValue && c.EntryDate.Value <= reportDate && c.ContractEndDate.Value >= reportDate)
currentContract = c;
}
else
{
if (c.EntryDate.Value <= reportDate)
if (c.EntryDate.HasValue && c.EntryDate.Value <= reportDate)
currentContract = c;
}
}