|
|
|
|
@ -5,7 +5,7 @@ class Form::Sales::Questions::DiscountedOwnershipType < ::Form::Question
|
|
|
|
|
@copy_key = "sales.setup.type.discounted_ownership" |
|
|
|
|
@type = "radio" |
|
|
|
|
@top_guidance_partial = guidance_partial |
|
|
|
|
@answer_options = ANSWER_OPTIONS |
|
|
|
|
@answer_options = form.start_year_2026_or_later? ? ANSWER_OPTIONS_2026_OR_LATER : ANSWER_OPTIONS |
|
|
|
|
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
@ -19,6 +19,15 @@ class Form::Sales::Questions::DiscountedOwnershipType < ::Form::Question
|
|
|
|
|
"22" => { "value" => "Any other equity loan scheme" }, |
|
|
|
|
}.freeze |
|
|
|
|
|
|
|
|
|
ANSWER_OPTIONS_2026_OR_LATER = { |
|
|
|
|
"8" => { "value" => "Right to Acquire (RTA)" }, |
|
|
|
|
"14" => { "value" => "Preserved Right to Buy (PRTB)" }, |
|
|
|
|
"9" => { "value" => "Right to Buy (RTB)" }, |
|
|
|
|
"29" => { "value" => "Rent to Buy - Full Ownership" }, |
|
|
|
|
"21" => { "value" => "Social HomeBuy for outright purchase" }, |
|
|
|
|
"22" => { "value" => "Any other equity loan scheme" }, |
|
|
|
|
}.freeze |
|
|
|
|
|
|
|
|
|
def guidance_partial |
|
|
|
|
"discounted_ownership_type_definitions" if form.start_date.year >= 2023 |
|
|
|
|
end |
|
|
|
|
|