|
|
|
|
@ -5,7 +5,7 @@ class Form::Sales::Questions::Buyer2RelationshipToBuyer1 < ::Form::Question
|
|
|
|
|
@check_answer_label = "Buyer 2's relationship to buyer 1" |
|
|
|
|
@header = "What is buyer 2's relationship to buyer 1?" |
|
|
|
|
@type = "radio" |
|
|
|
|
@answer_options = ANSWER_OPTIONS |
|
|
|
|
@answer_options = answer_options |
|
|
|
|
@check_answers_card_number = 2 |
|
|
|
|
@inferred_check_answers_value = [{ |
|
|
|
|
"condition" => { |
|
|
|
|
@ -16,12 +16,24 @@ class Form::Sales::Questions::Buyer2RelationshipToBuyer1 < ::Form::Question
|
|
|
|
|
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
ANSWER_OPTIONS = { |
|
|
|
|
"P" => { "value" => "Partner" }, |
|
|
|
|
"C" => { "value" => "Child", "hint" => "Must be eligible for child benefit, aged under 16 or under 20 if still in full-time education." }, |
|
|
|
|
"X" => { "value" => "Other" }, |
|
|
|
|
"R" => { "value" => "Buyer prefers not to say" }, |
|
|
|
|
}.freeze |
|
|
|
|
def answer_options |
|
|
|
|
if form.start_year_after_2024? |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
"P" => { "value" => "Partner" }, |
|
|
|
|
"C" => { "value" => "Child" }, |
|
|
|
|
"X" => { "value" => "Other" }, |
|
|
|
|
"R" => { "value" => "Buyer prefers not to say" }, |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
"P" => { "value" => "Partner" }, |
|
|
|
|
"C" => { "value" => "Child", "hint" => "Must be eligible for child benefit, aged under 16 or under 20 if still in full-time education." }, |
|
|
|
|
"X" => { "value" => "Other" }, |
|
|
|
|
"R" => { "value" => "Buyer prefers not to say" }, |
|
|
|
|
} |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
QUESTION_NUMBER_FROM_YEAR = { 2023 => 27, 2024 => 29 }.freeze |
|
|
|
|
end |
|
|
|
|
|