|
|
|
@ -114,7 +114,8 @@ class CaseLog < ApplicationRecord
|
|
|
|
|
enum unitletas: DbEnums.unitletas, _suffix: true |
|
|
|
|
|
|
|
|
|
AUTOGENERATED_FIELDS = %w[id status created_at updated_at discarded_at].freeze |
|
|
|
|
OPTIONAL_FIELDS = %w[do_you_know_the_postcode do_you_know_the_local_authority].freeze |
|
|
|
|
OPTIONAL_FIELDS = %w[do_you_know_the_postcode do_you_know_the_local_authority |
|
|
|
|
first_time_property_let_as_social_housing].freeze |
|
|
|
|
|
|
|
|
|
def self.editable_fields |
|
|
|
|
attribute_names - AUTOGENERATED_FIELDS |
|
|
|
@ -240,6 +241,10 @@ private
|
|
|
|
|
dynamically_not_required << "sale_completion_date" |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
if la.present? |
|
|
|
|
dynamically_not_required << "why_dont_you_know_la" |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
if tenancy == "Secure (including flexible)" |
|
|
|
|
dynamically_not_required << "tenancylength" |
|
|
|
|
end |
|
|
|
|