From 3f97bf30094e0d5f83ef0789eb7d96a56c1f7be2 Mon Sep 17 00:00:00 2001 From: Jack S Date: Wed, 2 Aug 2023 11:26:02 +0100 Subject: [PATCH] bring back optional field --- app/models/lettings_log.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/lettings_log.rb b/app/models/lettings_log.rb index 7a8eec6d6..0ac0e4bf5 100644 --- a/app/models/lettings_log.rb +++ b/app/models/lettings_log.rb @@ -73,7 +73,7 @@ class LettingsLog < Log } AUTOGENERATED_FIELDS = %w[id status created_at updated_at discarded_at].freeze - OPTIONAL_FIELDS = %w[tenancycode propcode chcharge].freeze + OPTIONAL_FIELDS = %w[first_time_property_let_as_social_housing tenancycode propcode chcharge].freeze RENT_TYPE_MAPPING_LABELS = { 1 => "Social Rent", 2 => "Affordable Rent", 3 => "Intermediate Rent" }.freeze HAS_BENEFITS_OPTIONS = [1, 6, 8, 7].freeze NUM_OF_WEEKS_FROM_PERIOD = { 2 => 26, 3 => 13, 4 => 12, 5 => 50, 6 => 49, 7 => 48, 8 => 47, 9 => 46, 1 => 52, 10 => 53 }.freeze