From e156f9bcc242e495551a40ec3cbe586f78200790 Mon Sep 17 00:00:00 2001 From: Dominic NEED Date: Mon, 20 Nov 2023 14:38:24 +0000 Subject: [PATCH] Logic updated as current year will always be current or last academic year --- .../Dfe.PrepareConversions/Utils/KeyStageDataStatusHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions/Utils/KeyStageDataStatusHelper.cs b/Dfe.PrepareConversions/Dfe.PrepareConversions/Utils/KeyStageDataStatusHelper.cs index ece66bc99..2a0ed367a 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions/Utils/KeyStageDataStatusHelper.cs +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions/Utils/KeyStageDataStatusHelper.cs @@ -50,7 +50,7 @@ public static string KeyStage4DataTag(DateTime date) public static string DetermineKeyStageDataStatus(DateTime date, KeyStages keyStage) { bool isItCurrentOrLastAcademicYear = - (date.Month >= 9 && date.Year == DateTime.Now.Year) || + (date.Year == DateTime.Now.Year) || (date.Month < 9 && date.Year == DateTime.Now.Year - 1) || (date.Month >= 9 && date.Year == DateTime.Now.Year - 2); StatusType statusType = isItCurrentOrLastAcademicYear ? DetermineStatusType(date, keyStage) : StatusType.Final;