Browse Source

feat: remove offered form 24 onwards

pull/2162/head
natdeanlewissoftwire 2 years ago
parent
commit
b9665bec86
  1. 6
      app/models/form/lettings/subsections/property_information.rb

6
app/models/form/lettings/subsections/property_information.rb

@ -16,7 +16,7 @@ class Form::Lettings::Subsections::PropertyInformation < ::Form::Subsection
Form::Lettings::Pages::PropertyLetType.new(nil, nil, self),
Form::Lettings::Pages::PropertyVacancyReasonNotFirstLet.new(nil, nil, self),
Form::Lettings::Pages::PropertyVacancyReasonFirstLet.new(nil, nil, self),
Form::Lettings::Pages::PropertyNumberOfTimesRelet.new(nil, nil, self),
number_of_times_relet,
Form::Lettings::Pages::PropertyUnitType.new(nil, nil, self),
Form::Lettings::Pages::PropertyBuildingType.new(nil, nil, self),
Form::Lettings::Pages::PropertyWheelchairAccessible.new(nil, nil, self),
@ -44,6 +44,10 @@ class Form::Lettings::Subsections::PropertyInformation < ::Form::Subsection
end
end
def number_of_times_relet
Form::Lettings::Pages::PropertyNumberOfTimesRelet.new(nil, nil, self) unless form.start_year_after_2024?
end
def displayed_in_tasklist?(log)
!(log.is_supported_housing? && log.is_renewal?)
end

Loading…
Cancel
Save