From 289be64bd9bf15dd86dab013b030736994fb67a7 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Tue, 14 Nov 2023 09:15:00 +0000 Subject: [PATCH] TEST FOR PO TO BE REVERTED (set back to dec 31) --- app/models/form.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/form.rb b/app/models/form.rb index be727bbe3..2151eaf4c 100644 --- a/app/models/form.rb +++ b/app/models/form.rb @@ -6,7 +6,7 @@ class Form def initialize(form_path, start_year = "", sections_in_form = [], type = "lettings") if sales_or_start_year_after_2022?(type, start_year) @start_date = Time.zone.local(start_year, 4, 1) - @new_logs_end_date = Time.zone.local(start_year + 1, 11, 15) # this is to be manually updated each year when we want to stop users from creating new logs + @new_logs_end_date = Time.zone.local(start_year + 1, 11, 1) # this is to be manually updated each year when we want to stop users from creating new logs @submission_deadline = if start_year && start_year.to_i > 2022 Time.zone.local(start_year + 1, 6, 7) else @@ -26,7 +26,7 @@ class Form "sections" => sections, } @unresolved_log_redirect_page_id = "tenancy_start_date" if type == "lettings" - @edit_end_date = Time.zone.local(start_year + 1, 11, 15) # this is to be manually updated each year when we want to stop users from editing logs + @edit_end_date = Time.zone.local(start_year + 1, 11, 1) # this is to be manually updated each year when we want to stop users from editing logs else raise "No form definition file exists for given year".freeze unless File.exist?(form_path)