Browse Source

feat: income, benefits and outgoings numbering

pull/1381/head
natdeanlewissoftwire 3 years ago
parent
commit
ef2e3fed77
  1. 1
      app/models/form/sales/questions/buyer1_income.rb
  2. 1
      app/models/form/sales/questions/buyer1_income_known.rb
  3. 1
      app/models/form/sales/questions/buyer1_mortgage.rb
  4. 1
      app/models/form/sales/questions/buyer2_income.rb
  5. 1
      app/models/form/sales/questions/buyer2_income_known.rb
  6. 1
      app/models/form/sales/questions/buyer2_mortgage.rb
  7. 1
      app/models/form/sales/questions/housing_benefits.rb
  8. 1
      app/models/form/sales/questions/prevown.rb
  9. 1
      app/models/form/sales/questions/prevshared.rb
  10. 1
      app/models/form/sales/questions/savings.rb
  11. 1
      app/models/form/sales/questions/savings_nk.rb

1
app/models/form/sales/questions/buyer1_income.rb

@ -12,5 +12,6 @@ class Form::Sales::Questions::Buyer1Income < ::Form::Question
@width = 5 @width = 5
@prefix = "£" @prefix = "£"
@check_answers_card_number = 1 @check_answers_card_number = 1
@question_number = 67
end end
end end

1
app/models/form/sales/questions/buyer1_income_known.rb

@ -10,6 +10,7 @@ class Form::Sales::Questions::Buyer1IncomeKnown < ::Form::Question
"income1" => [0], "income1" => [0],
} }
@check_answers_card_number = 1 @check_answers_card_number = 1
@question_number = 67
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer1_mortgage.rb

@ -7,6 +7,7 @@ class Form::Sales::Questions::Buyer1Mortgage < ::Form::Question
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 1 @check_answers_card_number = 1
@question_number = 68
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer2_income.rb

@ -12,5 +12,6 @@ class Form::Sales::Questions::Buyer2Income < ::Form::Question
@width = 5 @width = 5
@prefix = "£" @prefix = "£"
@check_answers_card_number = 2 @check_answers_card_number = 2
@question_number = 69
end end
end end

1
app/models/form/sales/questions/buyer2_income_known.rb

@ -10,6 +10,7 @@ class Form::Sales::Questions::Buyer2IncomeKnown < ::Form::Question
"income2" => [0], "income2" => [0],
} }
@check_answers_card_number = 2 @check_answers_card_number = 2
@question_number = 69
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

1
app/models/form/sales/questions/buyer2_mortgage.rb

@ -7,6 +7,7 @@ class Form::Sales::Questions::Buyer2Mortgage < ::Form::Question
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2
@question_number = 70
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

1
app/models/form/sales/questions/housing_benefits.rb

@ -6,6 +6,7 @@ class Form::Sales::Questions::HousingBenefits < ::Form::Question
@header = "#{joint_purchase ? 'Were the buyers' : 'Was the buyer'} receiving any of these housing-related benefits immediately before buying this property?" @header = "#{joint_purchase ? 'Were the buyers' : 'Was the buyer'} receiving any of these housing-related benefits immediately before buying this property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@question_number = 71
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

1
app/models/form/sales/questions/prevown.rb

@ -6,6 +6,7 @@ class Form::Sales::Questions::Prevown < ::Form::Question
@header = "Has the buyer previously owned a property?" @header = "Has the buyer previously owned a property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@question_number = 73
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

1
app/models/form/sales/questions/prevshared.rb

@ -7,6 +7,7 @@ class Form::Sales::Questions::Prevshared < ::Form::Question
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint = "For any buyer" @hint = "For any buyer"
@question_number = 74
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

1
app/models/form/sales/questions/savings.rb

@ -9,5 +9,6 @@ class Form::Sales::Questions::Savings < ::Form::Question
@prefix = "£" @prefix = "£"
@step = 1 @step = 1
@min = 0 @min = 0
@question_number = 72
end end
end end

1
app/models/form/sales/questions/savings_nk.rb

@ -16,6 +16,7 @@ class Form::Sales::Questions::SavingsNk < ::Form::Question
}, },
], ],
} }
@question_number = 72
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {

Loading…
Cancel
Save