From bff2d30bc7ae16c8a9dc44de42cbf33a950ab99e Mon Sep 17 00:00:00 2001 From: Sam Dudley Date: Tue, 28 May 2024 10:31:19 +0100 Subject: [PATCH] wip --- forecast/management/commands/new_financial_year.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forecast/management/commands/new_financial_year.py b/forecast/management/commands/new_financial_year.py index 754ba5e0..bdf40e09 100644 --- a/forecast/management/commands/new_financial_year.py +++ b/forecast/management/commands/new_financial_year.py @@ -87,8 +87,9 @@ def pre_new_financial_year_checks() -> None: This function will raise `NewFinancialYearError` if any issues are found. Checks: - - Look for NACs with invalid economic budget codes. + - Look for used NACs with invalid economic budget codes. """ + # It's possible this needs to be scoped to a financial year in the future. problem_nacs = FinancialCode.objects.exclude( natural_account_code__economic_budget_code__in=VALID_ECONOMIC_CODE_LIST )