Browse Source

Remove "No - this is an outright or other sale" from sales Q5 in 25/26

pull/2752/head
Manny Dinssa 8 months ago
parent
commit
6e63a248cc
  1. 7
      app/models/form/sales/questions/ownership_scheme.rb
  2. 1
      spec/models/form/sales/questions/ownership_scheme_spec.rb

7
app/models/form/sales/questions/ownership_scheme.rb

@ -7,7 +7,12 @@ class Form::Sales::Questions::OwnershipScheme < ::Form::Question
end
def answer_options
if form.start_year_2024_or_later?
if form.start_year_2025_or_later?
{
"1" => { "value" => "Yes - a shared ownership scheme", "hint" => "When the purchaser buys an initial share of up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion, or a subsequent staircasing transaction" },
"2" => { "value" => "Yes - a discounted ownership scheme" },
}.freeze
elsif form.start_year_2024_or_later?
{
"1" => { "value" => "Yes - a shared ownership scheme", "hint" => "When the purchaser buys an initial share of up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion, or a subsequent staircasing transaction" },
"2" => { "value" => "Yes - a discounted ownership scheme" },

1
spec/models/form/sales/questions/ownership_scheme_spec.rb

@ -11,6 +11,7 @@ RSpec.describe Form::Sales::Questions::OwnershipScheme, type: :model do
before do
allow(form).to receive(:start_year_2024_or_later?).and_return(false)
allow(form).to receive(:start_year_2025_or_later?).and_return(false)
allow(page).to receive(:subsection).and_return(subsection)
allow(subsection).to receive(:form).and_return(form)
end

Loading…
Cancel
Save