|
|
|
@ -4,7 +4,7 @@ class Form::Sales::Questions::Buyer2WorkingSituation < ::Form::Question
|
|
|
|
|
@id = "ecstat2" |
|
|
|
|
@copy_key = "sales.household_characteristics.ecstat2.buyer" |
|
|
|
|
@type = "radio" |
|
|
|
|
@answer_options = ANSWER_OPTIONS |
|
|
|
|
@answer_options = answer_options |
|
|
|
|
@check_answers_card_number = 2 |
|
|
|
|
@inferred_check_answers_value = [{ |
|
|
|
|
"condition" => { |
|
|
|
@ -15,7 +15,22 @@ class Form::Sales::Questions::Buyer2WorkingSituation < ::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 = { |
|
|
|
|
def answer_options |
|
|
|
|
if form.start_year_2025_or_later? |
|
|
|
|
{ |
|
|
|
|
"1" => { "value" => "Full-time - 30 hours or more" }, |
|
|
|
|
"2" => { "value" => "Part-time - Less than 30 hours" }, |
|
|
|
|
"3" => { "value" => "In government training into work" }, |
|
|
|
|
"4" => { "value" => "Jobseeker" }, |
|
|
|
|
"5" => { "value" => "Retired" }, |
|
|
|
|
"6" => { "value" => "Not seeking work" }, |
|
|
|
|
"7" => { "value" => "Full-time student" }, |
|
|
|
|
"8" => { "value" => "Unable to work due to long term sick or disability" }, |
|
|
|
|
"0" => { "value" => "Other" }, |
|
|
|
|
"10" => { "value" => "Buyer prefers not to say" }, |
|
|
|
|
}.freeze |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
"1" => { "value" => "Full-time - 30 hours or more" }, |
|
|
|
|
"2" => { "value" => "Part-time - Less than 30 hours" }, |
|
|
|
|
"3" => { "value" => "In government training into work" }, |
|
|
|
@ -27,6 +42,8 @@ class Form::Sales::Questions::Buyer2WorkingSituation < ::Form::Question
|
|
|
|
|
"10" => { "value" => "Buyer prefers not to say" }, |
|
|
|
|
"7" => { "value" => "Full-time student" }, |
|
|
|
|
}.freeze |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
QUESTION_NUMBER_FROM_YEAR = { 2023 => 33, 2024 => 35 }.freeze |
|
|
|
|
end |
|
|
|
|