Another fix for late reports

This commit is contained in:
Rick Falkvinge
2019-02-16 13:10:02 +01:00
parent e1f58b00c1
commit d10c06333e
+7
View File
@@ -139,6 +139,13 @@ namespace Swarmops.Logic.Financial
return ReportRequirement.Required; // if there was a "VeryRequired" option it would be appropriate here
}
// If the next report was due last year, it's even more required
if (nextReportDue.Year < nowUtc.Year)
{
return ReportRequirement.Required;
}
// Otherwise not required
return ReportRequirement.NotRequired;