From d10c06333ee223df5b3f6452a64c582d71424e0b Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 16 Feb 2019 13:10:02 +0100 Subject: [PATCH] Another fix for late reports --- Logic/Financial/VatReport.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Logic/Financial/VatReport.cs b/Logic/Financial/VatReport.cs index 8ddc6141..bf634f46 100644 --- a/Logic/Financial/VatReport.cs +++ b/Logic/Financial/VatReport.cs @@ -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;