Browse Source

Add obvious question numberings to sales

CLDC-1864-question-numbering
Kat 2 years ago
parent
commit
283bce8465
  1. 2
      app/models/form/sales/pages/privacy_notice.rb
  2. 2
      app/models/form/sales/questions/armed_forces.rb
  3. 2
      app/models/form/sales/questions/armed_forces_spouse.rb
  4. 2
      app/models/form/sales/questions/buyer1_age_known.rb
  5. 2
      app/models/form/sales/questions/buyer1_ethnic_background_arab.rb
  6. 2
      app/models/form/sales/questions/buyer1_ethnic_background_asian.rb
  7. 2
      app/models/form/sales/questions/buyer1_ethnic_background_black.rb
  8. 2
      app/models/form/sales/questions/buyer1_ethnic_background_mixed.rb
  9. 2
      app/models/form/sales/questions/buyer1_ethnic_background_white.rb
  10. 2
      app/models/form/sales/questions/buyer1_ethnic_group.rb
  11. 2
      app/models/form/sales/questions/buyer1_income_known.rb
  12. 2
      app/models/form/sales/questions/buyer1_live_in_property.rb
  13. 2
      app/models/form/sales/questions/buyer1_mortgage.rb
  14. 2
      app/models/form/sales/questions/buyer1_previous_tenure.rb
  15. 2
      app/models/form/sales/questions/buyer1_working_situation.rb
  16. 2
      app/models/form/sales/questions/buyer2_age_known.rb
  17. 2
      app/models/form/sales/questions/buyer2_ethnic_background_arab.rb
  18. 2
      app/models/form/sales/questions/buyer2_ethnic_background_asian.rb
  19. 2
      app/models/form/sales/questions/buyer2_ethnic_background_black.rb
  20. 2
      app/models/form/sales/questions/buyer2_ethnic_background_mixed.rb
  21. 2
      app/models/form/sales/questions/buyer2_ethnic_background_white.rb
  22. 2
      app/models/form/sales/questions/buyer2_ethnic_group.rb
  23. 2
      app/models/form/sales/questions/buyer2_income_known.rb
  24. 2
      app/models/form/sales/questions/buyer2_live_in_property.rb
  25. 2
      app/models/form/sales/questions/buyer2_mortgage.rb
  26. 2
      app/models/form/sales/questions/buyer2_relationship_to_buyer1.rb
  27. 2
      app/models/form/sales/questions/buyer2_working_situation.rb
  28. 2
      app/models/form/sales/questions/buyer_company.rb
  29. 2
      app/models/form/sales/questions/buyer_interview.rb
  30. 2
      app/models/form/sales/questions/buyer_live.rb
  31. 2
      app/models/form/sales/questions/buyer_previous.rb
  32. 2
      app/models/form/sales/questions/buyer_still_serving.rb
  33. 2
      app/models/form/sales/questions/buyers_organisations.rb
  34. 2
      app/models/form/sales/questions/deposit_discount.rb
  35. 2
      app/models/form/sales/questions/discount.rb
  36. 2
      app/models/form/sales/questions/discounted_ownership_type.rb
  37. 2
      app/models/form/sales/questions/equity.rb
  38. 2
      app/models/form/sales/questions/exchange_date.rb
  39. 2
      app/models/form/sales/questions/fromprop.rb
  40. 2
      app/models/form/sales/questions/gender_identity1.rb
  41. 2
      app/models/form/sales/questions/gender_identity2.rb
  42. 2
      app/models/form/sales/questions/grant.rb
  43. 2
      app/models/form/sales/questions/handover_date.rb
  44. 2
      app/models/form/sales/questions/household_disability.rb
  45. 2
      app/models/form/sales/questions/household_wheelchair.rb
  46. 2
      app/models/form/sales/questions/housing_benefits.rb
  47. 2
      app/models/form/sales/questions/joint_purchase.rb
  48. 2
      app/models/form/sales/questions/la_nominations.rb
  49. 2
      app/models/form/sales/questions/monthly_rent.rb
  50. 2
      app/models/form/sales/questions/nationality1.rb
  51. 2
      app/models/form/sales/questions/number_joint_buyers.rb
  52. 2
      app/models/form/sales/questions/number_of_others_in_property.rb
  53. 2
      app/models/form/sales/questions/outright_ownership_type.rb
  54. 2
      app/models/form/sales/questions/ownership_scheme.rb
  55. 2
      app/models/form/sales/questions/postcode.rb
  56. 2
      app/models/form/sales/questions/previous_bedrooms.rb
  57. 2
      app/models/form/sales/questions/previous_postcode_known.rb
  58. 2
      app/models/form/sales/questions/previous_tenure.rb
  59. 2
      app/models/form/sales/questions/prevloc.rb
  60. 2
      app/models/form/sales/questions/prevown.rb
  61. 2
      app/models/form/sales/questions/prevshared.rb
  62. 2
      app/models/form/sales/questions/property_building_type.rb
  63. 2
      app/models/form/sales/questions/property_local_authority.rb
  64. 2
      app/models/form/sales/questions/property_number_of_bedrooms.rb
  65. 2
      app/models/form/sales/questions/property_unit_type.rb
  66. 2
      app/models/form/sales/questions/property_wheelchair_accessible.rb
  67. 2
      app/models/form/sales/questions/purchaser_code.rb
  68. 2
      app/models/form/sales/questions/resale.rb
  69. 2
      app/models/form/sales/questions/sale_date.rb
  70. 2
      app/models/form/sales/questions/savings_nk.rb
  71. 2
      app/models/form/sales/questions/shared_ownership_type.rb
  72. 2
      app/models/form/sales/questions/staircase.rb
  73. 2
      app/models/form/sales/questions/staircase_bought.rb
  74. 2
      app/models/form/sales/questions/staircase_owned.rb
  75. 2
      app/models/form/sales/questions/staircase_sale.rb
  76. 12
      db/schema.rb
  77. 2
      spec/models/form/sales/questions/armed_forces_spec.rb
  78. 2
      spec/models/form/sales/questions/armed_forces_spouse_spec.rb
  79. 2
      spec/models/form/sales/questions/buyer1_age_known_spec.rb
  80. 2
      spec/models/form/sales/questions/buyer1_ethnic_background_arab_spec.rb
  81. 2
      spec/models/form/sales/questions/buyer1_ethnic_background_asian_spec.rb
  82. 2
      spec/models/form/sales/questions/buyer1_ethnic_background_black_spec.rb
  83. 2
      spec/models/form/sales/questions/buyer1_ethnic_background_mixed_spec.rb
  84. 2
      spec/models/form/sales/questions/buyer1_ethnic_background_white_spec.rb
  85. 2
      spec/models/form/sales/questions/buyer1_ethnic_group_spec.rb
  86. 2
      spec/models/form/sales/questions/buyer1_income_known_spec.rb
  87. 2
      spec/models/form/sales/questions/buyer1_live_in_property_spec.rb
  88. 2
      spec/models/form/sales/questions/buyer1_mortgage_spec.rb
  89. 2
      spec/models/form/sales/questions/buyer1_previous_tenure_spec.rb
  90. 2
      spec/models/form/sales/questions/buyer1_working_situation_spec.rb
  91. 2
      spec/models/form/sales/questions/buyer2_age_known_spec.rb
  92. 2
      spec/models/form/sales/questions/buyer2_ethnic_background_arab_spec.rb
  93. 2
      spec/models/form/sales/questions/buyer2_ethnic_background_asian_spec.rb
  94. 2
      spec/models/form/sales/questions/buyer2_ethnic_background_black_spec.rb
  95. 2
      spec/models/form/sales/questions/buyer2_ethnic_background_mixed_spec.rb
  96. 2
      spec/models/form/sales/questions/buyer2_ethnic_background_white_spec.rb
  97. 2
      spec/models/form/sales/questions/buyer2_ethnic_group_spec.rb
  98. 2
      spec/models/form/sales/questions/buyer2_income_known_spec.rb
  99. 2
      spec/models/form/sales/questions/buyer2_live_in_property_spec.rb
  100. 2
      spec/models/form/sales/questions/buyer2_mortgage_spec.rb
  101. Some files were not shown because too many files have changed in this diff Show More

2
app/models/form/sales/pages/privacy_notice.rb

@ -2,7 +2,7 @@ class Form::Sales::Pages::PrivacyNotice < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "privacy_notice" @id = "privacy_notice"
@header = "Department for Levelling Up, Housing and Communities privacy notice" @header = "Q19 - Department for Levelling Up, Housing and Communities privacy notice"
@depends_on = [{ @depends_on = [{
"noint" => 2, "noint" => 2,
}] }]

2
app/models/form/sales/questions/armed_forces.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::ArmedForces < ::Form::Question
super super
@id = "hhregres" @id = "hhregres"
@check_answer_label = "Have any of the buyers ever served as a regular in the UK armed forces?" @check_answer_label = "Have any of the buyers ever served as a regular in the UK armed forces?"
@header = "Have any of the buyers ever served as a regular in the UK armed forces?" @header = "Q62 - Have any of the buyers ever served as a regular in the UK armed forces?"
@type = "radio" @type = "radio"
@hint_text = "A regular is somebody who has served in the Royal Navy, the Royal Marines, the Royal Airforce or Army full time and does not include reserve forces" @hint_text = "A regular is somebody who has served in the Royal Navy, the Royal Marines, the Royal Airforce or Army full time and does not include reserve forces"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS

2
app/models/form/sales/questions/armed_forces_spouse.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::ArmedForcesSpouse < ::Form::Question
super super
@id = "armedforcesspouse" @id = "armedforcesspouse"
@check_answer_label = "Are any of the buyers a spouse or civil partner of a UK armed forces regular who died in service within the last 2 years?" @check_answer_label = "Are any of the buyers a spouse or civil partner of a UK armed forces regular who died in service within the last 2 years?"
@header = "Are any of the buyers a spouse or civil partner of a UK armed forces regular who died in service within the last 2 years?" @header = "Q64 - Are any of the buyers a spouse or civil partner of a UK armed forces regular who died in service within the last 2 years?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

2
app/models/form/sales/questions/buyer1_age_known.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer1AgeKnown < ::Form::Question
super super
@id = "age1_known" @id = "age1_known"
@check_answer_label = "Lead buyer’s age" @check_answer_label = "Lead buyer’s age"
@header = "Do you know buyer 1’s age?" @header = "Q20 - Do you know buyer 1’s age?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."

2
app/models/form/sales/questions/buyer1_ethnic_background_arab.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundArab < ::Form::Question
super super
@id = "ethnic" @id = "ethnic"
@check_answer_label = "Buyer 1’s ethnic background" @check_answer_label = "Buyer 1’s ethnic background"
@header = "Which of the following best describes the buyer 1’s Arab background?" @header = "Q23 - Which of the following best describes the buyer 1’s Arab background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."

2
app/models/form/sales/questions/buyer1_ethnic_background_asian.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundAsian < ::Form::Question
super super
@id = "ethnic" @id = "ethnic"
@check_answer_label = "Buyer 1’s ethnic background" @check_answer_label = "Buyer 1’s ethnic background"
@header = "Which of the following best describes the buyer 1’s Asian or Asian British background?" @header = "Q23 - Which of the following best describes the buyer 1’s Asian or Asian British background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."

2
app/models/form/sales/questions/buyer1_ethnic_background_black.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundBlack < ::Form::Question
super super
@id = "ethnic" @id = "ethnic"
@check_answer_label = "Buyer 1’s ethnic background" @check_answer_label = "Buyer 1’s ethnic background"
@header = "Which of the following best describes the buyer 1’s Black, African, Caribbean or Black British background?" @header = "Q23 - Which of the following best describes the buyer 1’s Black, African, Caribbean or Black British background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."

2
app/models/form/sales/questions/buyer1_ethnic_background_mixed.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundMixed < ::Form::Question
super super
@id = "ethnic" @id = "ethnic"
@check_answer_label = "Buyer 1’s ethnic background" @check_answer_label = "Buyer 1’s ethnic background"
@header = "Which of the following best describes the buyer 1’s Mixed or Multiple ethnic groups background?" @header = "Q23 - Which of the following best describes the buyer 1’s Mixed or Multiple ethnic groups background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."

2
app/models/form/sales/questions/buyer1_ethnic_background_white.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundWhite < ::Form::Question
super super
@id = "ethnic" @id = "ethnic"
@check_answer_label = "Buyer 1’s ethnic background" @check_answer_label = "Buyer 1’s ethnic background"
@header = "Which of the following best describes the buyer 1’s White background?" @header = "Q23 - Which of the following best describes the buyer 1’s White background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."

2
app/models/form/sales/questions/buyer1_ethnic_group.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer1EthnicGroup < ::Form::Question
super super
@id = "ethnic_group" @id = "ethnic_group"
@check_answer_label = "Buyer 1’s ethnic group" @check_answer_label = "Buyer 1’s ethnic group"
@header = "What is buyer 1’s ethnic group?" @header = "Q22 - What is buyer 1’s ethnic group?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."

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

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer1IncomeKnown < ::Form::Question
super super
@id = "income1nk" @id = "income1nk"
@check_answer_label = "Buyer 1’s gross annual income" @check_answer_label = "Buyer 1’s gross annual income"
@header = "Do you know buyer 1’s annual income?" @header = "Q67 - Do you know buyer 1’s annual income?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@conditional_for = { @conditional_for = {

2
app/models/form/sales/questions/buyer1_live_in_property.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer1LiveInProperty < ::Form::Question
super super
@id = "buy1livein" @id = "buy1livein"
@check_answer_label = "Will buyer 1 live in the property?" @check_answer_label = "Will buyer 1 live in the property?"
@header = "Will buyer 1 live in the property?" @header = "Q26 - Will buyer 1 live in the property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."

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

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer1Mortgage < ::Form::Question
super super
@id = "inc1mort" @id = "inc1mort"
@check_answer_label = "Buyer 1's income used for mortgage application" @check_answer_label = "Buyer 1's income used for mortgage application"
@header = "Was buyer 1's income used for a mortgage application?" @header = "Q68 - Was buyer 1's income used for a mortgage application?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 1 @check_answers_card_number = 1

2
app/models/form/sales/questions/buyer1_previous_tenure.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer1PreviousTenure < ::Form::Question
super super
@id = "prevten" @id = "prevten"
@check_answer_label = "Buyer 1's previous tenure" @check_answer_label = "Buyer 1's previous tenure"
@header = "What was buyer 1's previous tenure?" @header = "Q56 - What was buyer 1's previous tenure?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

2
app/models/form/sales/questions/buyer1_working_situation.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer1WorkingSituation < ::Form::Question
super super
@id = "ecstat1" @id = "ecstat1"
@check_answer_label = "Buyer 1's working situation" @check_answer_label = "Buyer 1's working situation"
@header = "Which of these best describes buyer 1's working situation?" @header = "Q25 - Which of these best describes buyer 1's working situation?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it's a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it's a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."

2
app/models/form/sales/questions/buyer2_age_known.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer2AgeKnown < ::Form::Question
super super
@id = "age2_known" @id = "age2_known"
@check_answer_label = "Buyer 2’s age" @check_answer_label = "Buyer 2’s age"
@header = "Do you know buyer 2’s age?" @header = "Q28 - Do you know buyer 2’s age?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@conditional_for = { @conditional_for = {

2
app/models/form/sales/questions/buyer2_ethnic_background_arab.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer2EthnicBackgroundArab < ::Form::Question
super super
@id = "ethnicbuy2" @id = "ethnicbuy2"
@check_answer_label = "Buyer 2’s ethnic background" @check_answer_label = "Buyer 2’s ethnic background"
@header = "Which of the following best describes the buyer 2’s Arab background?" @header = "Q31 - Which of the following best describes the buyer 2’s Arab background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2

2
app/models/form/sales/questions/buyer2_ethnic_background_asian.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer2EthnicBackgroundAsian < ::Form::Question
super super
@id = "ethnicbuy2" @id = "ethnicbuy2"
@check_answer_label = "Buyer 2’s ethnic background" @check_answer_label = "Buyer 2’s ethnic background"
@header = "Which of the following best describes the buyer 2’s Asian or Asian British background?" @header = "Q31 - Which of the following best describes the buyer 2’s Asian or Asian British background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2

2
app/models/form/sales/questions/buyer2_ethnic_background_black.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer2EthnicBackgroundBlack < ::Form::Question
super super
@id = "ethnicbuy2" @id = "ethnicbuy2"
@check_answer_label = "Buyer 2’s ethnic background" @check_answer_label = "Buyer 2’s ethnic background"
@header = "Which of the following best describes the buyer 2’s Black, African, Caribbean or Black British background?" @header = "Q31 - Which of the following best describes the buyer 2’s Black, African, Caribbean or Black British background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2

2
app/models/form/sales/questions/buyer2_ethnic_background_mixed.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer2EthnicBackgroundMixed < ::Form::Question
super super
@id = "ethnicbuy2" @id = "ethnicbuy2"
@check_answer_label = "Buyer 2’s ethnic background" @check_answer_label = "Buyer 2’s ethnic background"
@header = "Which of the following best describes the buyer 2’s Mixed or Multiple ethnic groups background?" @header = "Q31 - Which of the following best describes the buyer 2’s Mixed or Multiple ethnic groups background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2

2
app/models/form/sales/questions/buyer2_ethnic_background_white.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer2EthnicBackgroundWhite < ::Form::Question
super super
@id = "ethnicbuy2" @id = "ethnicbuy2"
@check_answer_label = "Buyer 2’s ethnic background" @check_answer_label = "Buyer 2’s ethnic background"
@header = "Which of the following best describes the buyer 2’s White background?" @header = "Q31 - Which of the following best describes the buyer 2’s White background?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2

2
app/models/form/sales/questions/buyer2_ethnic_group.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer2EthnicGroup < ::Form::Question
super super
@id = "ethnic_group2" @id = "ethnic_group2"
@check_answer_label = "Buyer 2’s ethnic group" @check_answer_label = "Buyer 2’s ethnic group"
@header = "What is buyer 2’s ethnic group?" @header = "Q30 - What is buyer 2’s ethnic group?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@inferred_check_answers_value = [{ @inferred_check_answers_value = [{

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

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer2IncomeKnown < ::Form::Question
super super
@id = "income2nk" @id = "income2nk"
@check_answer_label = "Buyer 2’s gross annual income" @check_answer_label = "Buyer 2’s gross annual income"
@header = "Do you know buyer 2’s annual income?" @header = "Q69 - Do you know buyer 2’s annual income?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@conditional_for = { @conditional_for = {

2
app/models/form/sales/questions/buyer2_live_in_property.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer2LiveInProperty < ::Form::Question
super super
@id = "buy2livein" @id = "buy2livein"
@check_answer_label = "Will buyer 2 live in the property?" @check_answer_label = "Will buyer 2 live in the property?"
@header = "Will buyer 2 live in the property?" @header = "Q34 - Will buyer 2 live in the property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2

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

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer2Mortgage < ::Form::Question
super super
@id = "inc2mort" @id = "inc2mort"
@check_answer_label = "Buyer 2's income used for mortgage application" @check_answer_label = "Buyer 2's income used for mortgage application"
@header = "Was buyer 2's income used for a mortgage application?" @header = "Q70 - Was buyer 2's income used for a mortgage application?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2

2
app/models/form/sales/questions/buyer2_relationship_to_buyer1.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer2RelationshipToBuyer1 < ::Form::Question
super super
@id = "relat2" @id = "relat2"
@check_answer_label = "Buyer 2's relationship to buyer 1" @check_answer_label = "Buyer 2's relationship to buyer 1"
@header = "What is buyer 2's relationship to buyer 1?" @header = "Q27 - What is buyer 2's relationship to buyer 1?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2

2
app/models/form/sales/questions/buyer2_working_situation.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Buyer2WorkingSituation < ::Form::Question
super super
@id = "ecstat2" @id = "ecstat2"
@check_answer_label = "Buyer 2's working situation" @check_answer_label = "Buyer 2's working situation"
@header = "Which of these best describes buyer 2's working situation?" @header = "Q33 - Which of these best describes buyer 2's working situation?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2

2
app/models/form/sales/questions/buyer_company.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::BuyerCompany < ::Form::Question
super super
@id = "companybuy" @id = "companybuy"
@check_answer_label = "Company buyer" @check_answer_label = "Company buyer"
@header = "Is the buyer a company?" @header = "Q7 - Is the buyer a company?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

2
app/models/form/sales/questions/buyer_interview.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::BuyerInterview < ::Form::Question
super super
@id = "noint" @id = "noint"
@check_answer_label = "Buyer interviewed in person?" @check_answer_label = "Buyer interviewed in person?"
@header = "Was the buyer interviewed for any of the answers you will provide on this log?" @header = "Q18 -Was the buyer interviewed for any of the answers you will provide on this log?"
@type = "radio" @type = "radio"
@hint_text = "You should still try to answer all questions even if the buyer wasn't interviewed in person" @hint_text = "You should still try to answer all questions even if the buyer wasn't interviewed in person"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS

2
app/models/form/sales/questions/buyer_live.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::BuyerLive < ::Form::Question
super super
@id = "buylivein" @id = "buylivein"
@check_answer_label = "Buyers living in property" @check_answer_label = "Buyers living in property"
@header = "Will the buyers live in the property?" @header = "Q8 - Will the buyers live in the property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

2
app/models/form/sales/questions/buyer_previous.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::BuyerPrevious < ::Form::Question
super super
@id = "soctenant" @id = "soctenant"
@check_answer_label = "Buyer was a registered provider, housing association or local authority tenant immediately before this sale?" @check_answer_label = "Buyer was a registered provider, housing association or local authority tenant immediately before this sale?"
@header = "Was the buyer a private registered provider, housing association or local authority tenant immediately before this sale?" @header = "Q84 - Was the buyer a private registered provider, housing association or local authority tenant immediately before this sale?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

2
app/models/form/sales/questions/buyer_still_serving.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::BuyerStillServing < ::Form::Question
super super
@id = "hhregresstill" @id = "hhregresstill"
@check_answer_label = "Are they still serving in the UK armed forces?" @check_answer_label = "Are they still serving in the UK armed forces?"
@header = "Is the buyer still serving in the UK armed forces?" @header = "Q63 - Is the buyer still serving in the UK armed forces?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

2
app/models/form/sales/questions/buyers_organisations.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::BuyersOrganisations < ::Form::Question
super super
@id = "buyers_organisations" @id = "buyers_organisations"
@check_answer_label = "Organisations buyers were registered with" @check_answer_label = "Organisations buyers were registered with"
@header = "What organisations were the buyers registered with?" @header = "Q59 - What organisations were the buyers registered with?"
@type = "checkbox" @type = "checkbox"
@hint_text = "Select all that apply" @hint_text = "Select all that apply"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS

2
app/models/form/sales/questions/deposit_discount.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::DepositDiscount < ::Form::Question
super super
@id = "cashdis" @id = "cashdis"
@check_answer_label = "Cash discount through SocialHomeBuy" @check_answer_label = "Cash discount through SocialHomeBuy"
@header = "How much cash discount was given through Social HomeBuy?" @header = "Q96 - How much cash discount was given through Social HomeBuy?"
@type = "numeric" @type = "numeric"
@min = 0 @min = 0
@max = 999_999 @max = 999_999

2
app/models/form/sales/questions/discount.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Discount < ::Form::Question
super super
@id = "discount" @id = "discount"
@check_answer_label = "Percentage discount" @check_answer_label = "Percentage discount"
@header = "What was the percentage discount?" @header = "Q102 - What was the percentage discount?"
@type = "numeric" @type = "numeric"
@min = 0 @min = 0
@max = 100 @max = 100

2
app/models/form/sales/questions/discounted_ownership_type.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::DiscountedOwnershipType < ::Form::Question
super super
@id = "type" @id = "type"
@check_answer_label = "Type of discounted ownership sale" @check_answer_label = "Type of discounted ownership sale"
@header = "What is the type of discounted ownership sale?" @header = "Q5 - What is the type of discounted ownership sale?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

2
app/models/form/sales/questions/equity.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Equity < ::Form::Question
super super
@id = "equity" @id = "equity"
@check_answer_label = "Initial percentage equity stake" @check_answer_label = "Initial percentage equity stake"
@header = "What was the initial percentage equity stake purchased?" @header = "Q89 - What was the initial percentage equity stake purchased?"
@type = "numeric" @type = "numeric"
@min = 0 @min = 0
@max = 100 @max = 100

2
app/models/form/sales/questions/exchange_date.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::ExchangeDate < ::Form::Question
super super
@id = "exdate" @id = "exdate"
@check_answer_label = "Exchange of contracts date" @check_answer_label = "Exchange of contracts date"
@header = "What is the exchange of contracts date?" @header = "Q81 - What is the exchange of contracts date?"
@type = "date" @type = "date"
end end
end end

2
app/models/form/sales/questions/fromprop.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Fromprop < ::Form::Question
super super
@id = "fromprop" @id = "fromprop"
@check_answer_label = "Previous property type" @check_answer_label = "Previous property type"
@header = "What was the previous property type?" @header = "Q86 - What was the previous property type?"
@type = "radio" @type = "radio"
@hint_text = "" @hint_text = ""
@page = page @page = page

2
app/models/form/sales/questions/gender_identity1.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::GenderIdentity1 < ::Form::Question
super super
@id = "sex1" @id = "sex1"
@check_answer_label = "Buyer 1’s gender identity" @check_answer_label = "Buyer 1’s gender identity"
@header = "Which of these best describes buyer 1’s gender identity?" @header = "Q21 - Which of these best describes buyer 1’s gender identity?"
@type = "radio" @type = "radio"
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS

2
app/models/form/sales/questions/gender_identity2.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::GenderIdentity2 < ::Form::Question
super super
@id = "sex2" @id = "sex2"
@check_answer_label = "Buyer 2’s gender identity" @check_answer_label = "Buyer 2’s gender identity"
@header = "Which of these best describes buyer 2’s gender identity?" @header = "Q29 - Which of these best describes buyer 2’s gender identity?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2 @check_answers_card_number = 2

2
app/models/form/sales/questions/grant.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Grant < ::Form::Question
super super
@id = "grant" @id = "grant"
@check_answer_label = "Amount of any loan, grant or subsidy" @check_answer_label = "Amount of any loan, grant or subsidy"
@header = "What was the amount of any loan, grant, discount or subsidy given?" @header = "Q101 - What was the amount of any loan, grant, discount or subsidy given?"
@type = "numeric" @type = "numeric"
@min = 0 @min = 0
@max = 999_999 @max = 999_999

2
app/models/form/sales/questions/handover_date.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::HandoverDate < ::Form::Question
super super
@id = "hodate" @id = "hodate"
@check_answer_label = "Practical completion or handover date" @check_answer_label = "Practical completion or handover date"
@header = "What is the practical completion or handover date?" @header = "Q82 - What is the practical completion or handover date?"
@type = "date" @type = "date"
@hint_text = "This is the date on which the building contractor hands over responsibility for the completed property to the private registered provider (PRP)" @hint_text = "This is the date on which the building contractor hands over responsibility for the completed property to the private registered provider (PRP)"
end end

2
app/models/form/sales/questions/household_disability.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::HouseholdDisability < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "disabled" @id = "disabled"
@header = "Does anyone in the household consider themselves to have a disability?" @header = "Q65 - Does anyone in the household consider themselves to have a disability?"
@check_answer_label = "Does anyone in the household have a disability?" @check_answer_label = "Does anyone in the household have a disability?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS

2
app/models/form/sales/questions/household_wheelchair.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::HouseholdWheelchair < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "wheel" @id = "wheel"
@header = "Does anyone in the household use a wheelchair?" @header = "Q66 - Does anyone in the household use a wheelchair?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "This can be inside or outside the home" @hint_text = "This can be inside or outside the home"

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

@ -3,7 +3,7 @@ class Form::Sales::Questions::HousingBenefits < ::Form::Question
super super
@id = "hb" @id = "hb"
@check_answer_label = "Housing-related benefits buyer received before buying this property" @check_answer_label = "Housing-related benefits buyer received before buying this property"
@header = "Was the buyer receiving any of these housing-related benefits immediately before buying this property?" @header = "Q71 - 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
end end

2
app/models/form/sales/questions/joint_purchase.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::JointPurchase < ::Form::Question
super super
@id = "jointpur" @id = "jointpur"
@check_answer_label = "Joint purchase" @check_answer_label = "Joint purchase"
@header = "Is this a joint purchase?" @header = "Q9 - Is this a joint purchase?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

2
app/models/form/sales/questions/la_nominations.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::LaNominations < ::Form::Question
super super
@id = "lanomagr" @id = "lanomagr"
@check_answer_label = "Household rehoused under a local authority nominations agreement?" @check_answer_label = "Household rehoused under a local authority nominations agreement?"
@header = "Was the household rehoused under a 'local authority nominations agreement'?" @header = "Q83 - Was the household rehoused under a 'local authority nominations agreement'?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "A local authority nominations agreement is a written agreement between a local authority and private registered provider (PRP) that some or all of its sales vacancies are offered to local authorities for rehousing" @hint_text = "A local authority nominations agreement is a written agreement between a local authority and private registered provider (PRP) that some or all of its sales vacancies are offered to local authorities for rehousing"

2
app/models/form/sales/questions/monthly_rent.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::MonthlyRent < ::Form::Question
super super
@id = "mrent" @id = "mrent"
@check_answer_label = "Monthly rent" @check_answer_label = "Monthly rent"
@header = "What is the basic monthly rent?" @header = "Q97 - What is the basic monthly rent?"
@type = "numeric" @type = "numeric"
@min = 0 @min = 0
@width = 5 @width = 5

2
app/models/form/sales/questions/nationality1.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Nationality1 < ::Form::Question
super super
@id = "national" @id = "national"
@check_answer_label = "Buyer 1’s nationality" @check_answer_label = "Buyer 1’s nationality"
@header = "What is buyer 1’s nationality?" @header = "Q24 - What is buyer 1’s nationality?"
@type = "radio" @type = "radio"
@hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest." @hint_text = "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS

2
app/models/form/sales/questions/number_joint_buyers.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::NumberJointBuyers < ::Form::Question
super super
@id = "jointmore" @id = "jointmore"
@check_answer_label = "More than 2 joint buyers" @check_answer_label = "More than 2 joint buyers"
@header = "Are there more than 2 joint buyers of this property?" @header = "Q10 - Are there more than 2 joint buyers of this property?"
@hint_text = "You should still try to answer all questions even if the buyer wasn't interviewed in person" @hint_text = "You should still try to answer all questions even if the buyer wasn't interviewed in person"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS

2
app/models/form/sales/questions/number_of_others_in_property.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::NumberOfOthersInProperty < ::Form::Question
super super
@id = "hholdcount" @id = "hholdcount"
@check_answer_label = "Number of other people living in the property" @check_answer_label = "Number of other people living in the property"
@header = "Besides the buyer(s), how many other people live or will live in the property?" @header = "Q35 - Besides the buyer(s), how many other people live or will live in the property?"
@type = "numeric" @type = "numeric"
@hint_text = "You can provide details for a maximum of 4 other people." @hint_text = "You can provide details for a maximum of 4 other people."
@width = 2 @width = 2

2
app/models/form/sales/questions/outright_ownership_type.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::OutrightOwnershipType < ::Form::Question
super super
@id = "type" @id = "type"
@check_answer_label = "Type of outright sale" @check_answer_label = "Type of outright sale"
@header = "What is the type of outright sale?" @header = "Q6 - What is the type of outright sale?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@conditional_for = { @conditional_for = {

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

@ -3,7 +3,7 @@ class Form::Sales::Questions::OwnershipScheme < ::Form::Question
super super
@id = "ownershipsch" @id = "ownershipsch"
@check_answer_label = "Purchase made under ownership scheme" @check_answer_label = "Purchase made under ownership scheme"
@header = "Was this purchase made through an ownership scheme?" @header = "Q3 - Was this purchase made through an ownership scheme?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

2
app/models/form/sales/questions/postcode.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Postcode < ::Form::Question
super super
@id = "postcode_full" @id = "postcode_full"
@check_answer_label = "Property’s postcode" @check_answer_label = "Property’s postcode"
@header = "Postcode" @header = "Q15 - Postcode"
@type = "text" @type = "text"
@width = 5 @width = 5
@inferred_check_answers_value = [{ @inferred_check_answers_value = [{

2
app/models/form/sales/questions/previous_bedrooms.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::PreviousBedrooms < ::Form::Question
super super
@id = "frombeds" @id = "frombeds"
@check_answer_label = "Number of bedrooms in previous property" @check_answer_label = "Number of bedrooms in previous property"
@header = "How many bedrooms did the property have?" @header = "Q85 - How many bedrooms did the property have?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@min = 1 @min = 1

2
app/models/form/sales/questions/previous_postcode_known.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::PreviousPostcodeKnown < ::Form::Question
super super
@id = "ppcodenk" @id = "ppcodenk"
@check_answer_label = "Buyer 1’s last settled accommodation" @check_answer_label = "Buyer 1’s last settled accommodation"
@header = "Do you know the postcode of buyer 1’s last settled accommodation?" @header = "Q57 - Do you know the postcode of buyer 1’s last settled accommodation?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@conditional_for = { @conditional_for = {

2
app/models/form/sales/questions/previous_tenure.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::PreviousTenure < ::Form::Question
super super
@id = "socprevten" @id = "socprevten"
@check_answer_label = "Previous property tenure" @check_answer_label = "Previous property tenure"
@header = "What was the previous tenure of the buyer?" @header = "Q87 - What was the previous tenure of the buyer?"
@type = "radio" @type = "radio"
@hint_text = "" @hint_text = ""
@page = page @page = page

2
app/models/form/sales/questions/prevloc.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Prevloc < ::Form::Question
super super
@id = "prevloc" @id = "prevloc"
@check_answer_label = "Local authority of buyer 1’s last settled accommodation" @check_answer_label = "Local authority of buyer 1’s last settled accommodation"
@header = "Select a local authority" @header = "Q58 - Select a local authority"
@type = "select" @type = "select"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@inferred_check_answers_value = [{ @inferred_check_answers_value = [{

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

@ -3,7 +3,7 @@ class Form::Sales::Questions::Prevown < ::Form::Question
super super
@id = "prevown" @id = "prevown"
@check_answer_label = "Buyers previously owned a property" @check_answer_label = "Buyers previously owned a property"
@header = "Has the buyer previously owned a property?" @header = "Q73 - Has the buyer previously owned a property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

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

@ -3,7 +3,7 @@ class Form::Sales::Questions::Prevshared < ::Form::Question
super super
@id = "prevshared" @id = "prevshared"
@check_answer_label = "Previous property shared ownership?" @check_answer_label = "Previous property shared ownership?"
@header = "Was the previous property a shared ownership property?" @header = "Q74 - Was the previous property a shared ownership property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint = "For any buyer" @hint = "For any buyer"

2
app/models/form/sales/questions/property_building_type.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::PropertyBuildingType < ::Form::Question
super super
@id = "builtype" @id = "builtype"
@check_answer_label = "Type of building" @check_answer_label = "Type of building"
@header = "What type of building is the property?" @header = "Q13 - What type of building is the property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

2
app/models/form/sales/questions/property_local_authority.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::PropertyLocalAuthority < ::Form::Question
super super
@id = "la" @id = "la"
@check_answer_label = "Local authority" @check_answer_label = "Local authority"
@header = "What is the local authority of the property?" @header = "Q16 - What is the local authority of the property?"
@type = "select" @type = "select"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

2
app/models/form/sales/questions/property_number_of_bedrooms.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::PropertyNumberOfBedrooms < ::Form::Question
super super
@id = "beds" @id = "beds"
@check_answer_label = "Number of bedrooms" @check_answer_label = "Number of bedrooms"
@header = "How many bedrooms does the property have?" @header = "Q11 - How many bedrooms does the property have?"
@hint_text = "A bedsit has 1 bedroom" @hint_text = "A bedsit has 1 bedroom"
@type = "numeric" @type = "numeric"
@width = 10 @width = 10

2
app/models/form/sales/questions/property_unit_type.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::PropertyUnitType < ::Form::Question
super super
@id = "proptype" @id = "proptype"
@check_answer_label = "Type of unit" @check_answer_label = "Type of unit"
@header = "What type of unit is the property?" @header = "Q12 - What type of unit is the property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

2
app/models/form/sales/questions/property_wheelchair_accessible.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::PropertyWheelchairAccessible < ::Form::Question
super super
@id = "wchair" @id = "wchair"
@check_answer_label = "Property build or adapted to wheelchair-user standards" @check_answer_label = "Property build or adapted to wheelchair-user standards"
@header = "Is the property build or adapted to wheelchair-user standards?" @header = "Q17 -Is the property build or adapted to wheelchair-user standards?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

2
app/models/form/sales/questions/purchaser_code.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::PurchaserCode < ::Form::Question
super super
@id = "purchid" @id = "purchid"
@check_answer_label = "Purchaser code" @check_answer_label = "Purchaser code"
@header = "What is the purchaser code?" @header = "Q2 - What is the purchaser code?"
@hint_text = "This is how you usually refer to the purchaser on your own systems." @hint_text = "This is how you usually refer to the purchaser on your own systems."
@type = "text" @type = "text"
@width = 10 @width = 10

2
app/models/form/sales/questions/resale.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Resale < ::Form::Question
super super
@id = "resale" @id = "resale"
@check_answer_label = "Is this a resale?" @check_answer_label = "Is this a resale?"
@header = "Is this a resale?" @header = "Q80 - Is this a resale?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "If the social landlord has previously sold the property to another buyer and is now reselling the property, select 'yes'. If this is the first time the property has been sold, select 'no'." @hint_text = "If the social landlord has previously sold the property to another buyer and is now reselling the property, select 'yes'. If this is the first time the property has been sold, select 'no'."

2
app/models/form/sales/questions/sale_date.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::SaleDate < ::Form::Question
super super
@id = "saledate" @id = "saledate"
@check_answer_label = "Sale completion date" @check_answer_label = "Sale completion date"
@header = "What is the sale completion date?" @header = "Q1 - What is the sale completion date?"
@type = "date" @type = "date"
end end
end end

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

@ -3,7 +3,7 @@ class Form::Sales::Questions::SavingsNk < ::Form::Question
super super
@id = "savingsnk" @id = "savingsnk"
@check_answer_label = "Buyer’s total savings known?" @check_answer_label = "Buyer’s total savings known?"
@header = "Do you know how much the buyer had in savings before they paid any deposit for the property?" @header = "Q72 - Do you know how much the buyer had in savings before they paid any deposit for the property?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@conditional_for = { @conditional_for = {

2
app/models/form/sales/questions/shared_ownership_type.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::SharedOwnershipType < ::Form::Question
super super
@id = "type" @id = "type"
@check_answer_label = "Type of shared ownership sale" @check_answer_label = "Type of shared ownership sale"
@header = "What is the type of shared ownership sale?" @header = "Q4 - What is the type of shared ownership sale?"
@hint_text = "A shared ownership sale is when the purchaser buys up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion" @hint_text = "A shared ownership sale is when the purchaser buys up to 75% of the property value and pays rent to the Private Registered Provider (PRP) on the remaining portion"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS

2
app/models/form/sales/questions/staircase.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::Staircase < ::Form::Question
super super
@id = "staircase" @id = "staircase"
@check_answer_label = "Staircasing transaction" @check_answer_label = "Staircasing transaction"
@header = "Is this a staircasing transaction?" @header = "Q76 - Is this a staircasing transaction?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hint_text = "A staircasing transaction is when the household purchases more shares in their property, increasing the proportion they own and decreasing the proportion the housing association owns. Once the household purchases 100% of the shares, they own the property" @hint_text = "A staircasing transaction is when the household purchases more shares in their property, increasing the proportion they own and decreasing the proportion the housing association owns. Once the household purchases 100% of the shares, they own the property"

2
app/models/form/sales/questions/staircase_bought.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::StaircaseBought < ::Form::Question
super super
@id = "stairbought" @id = "stairbought"
@check_answer_label = "Percentage bought in this staircasing transaction" @check_answer_label = "Percentage bought in this staircasing transaction"
@header = "What percentage of the property has been bought in this staircasing transaction?" @header = "Q77 - What percentage of the property has been bought in this staircasing transaction?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@min = 0 @min = 0

2
app/models/form/sales/questions/staircase_owned.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::StaircaseOwned < ::Form::Question
super super
@id = "stairowned" @id = "stairowned"
@check_answer_label = "Percentage the buyer now owns in total" @check_answer_label = "Percentage the buyer now owns in total"
@header = "What percentage of the property does the buyer now own in total?" @header = "Q78 - What percentage of the property does the buyer now own in total?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@min = 0 @min = 0

2
app/models/form/sales/questions/staircase_sale.rb

@ -3,7 +3,7 @@ class Form::Sales::Questions::StaircaseSale < ::Form::Question
super super
@id = "staircasesale" @id = "staircasesale"
@check_answer_label = "Part of a back-to-back staircasing transaction" @check_answer_label = "Part of a back-to-back staircasing transaction"
@header = "Is this transaction part of a back-to-back staircasing transaction to facilitate sale of the home on the open market?" @header = "Q79 - Is this transaction part of a back-to-back staircasing transaction to facilitate sale of the home on the open market?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
end end

12
db/schema.rb

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_02_13_140932) do ActiveRecord::Schema[7.0].define(version: 2023_02_15_112932) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -490,7 +490,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_02_13_140932) do
t.integer "prevten" t.integer "prevten"
t.integer "mortgageused" t.integer "mortgageused"
t.integer "wchair" t.integer "wchair"
t.integer "income2_value_check"
t.integer "armedforcesspouse" t.integer "armedforcesspouse"
t.datetime "hodate", precision: nil t.datetime "hodate", precision: nil
t.integer "hoday" t.integer "hoday"
@ -522,16 +521,19 @@ ActiveRecord::Schema[7.0].define(version: 2023_02_13_140932) do
t.integer "old_persons_shared_ownership_value_check" t.integer "old_persons_shared_ownership_value_check"
t.integer "staircase_bought_value_check" t.integer "staircase_bought_value_check"
t.integer "monthly_charges_value_check" t.integer "monthly_charges_value_check"
t.integer "saledate_check"
t.integer "details_known_5" t.integer "details_known_5"
t.integer "details_known_6" t.integer "details_known_6"
t.integer "saledate_check"
t.integer "prevshared"
t.integer "staircasesale"
t.integer "ethnic_group2" t.integer "ethnic_group2"
t.integer "ethnicbuy2" t.integer "ethnicbuy2"
t.integer "prevshared"
t.integer "staircasesale"
t.string "old_id"
t.integer "income2_value_check"
t.integer "proplen_asked" t.integer "proplen_asked"
t.index ["bulk_upload_id"], name: "index_sales_logs_on_bulk_upload_id" t.index ["bulk_upload_id"], name: "index_sales_logs_on_bulk_upload_id"
t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id" t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id"
t.index ["old_id"], name: "index_sales_logs_on_old_id", unique: true
t.index ["owning_organisation_id"], name: "index_sales_logs_on_owning_organisation_id" t.index ["owning_organisation_id"], name: "index_sales_logs_on_owning_organisation_id"
t.index ["updated_by_id"], name: "index_sales_logs_on_updated_by_id" t.index ["updated_by_id"], name: "index_sales_logs_on_updated_by_id"
end end

2
spec/models/form/sales/questions/armed_forces_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::ArmedForces, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Have any of the buyers ever served as a regular in the UK armed forces?") expect(question.header).to eq("Q62 - Have any of the buyers ever served as a regular in the UK armed forces?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/armed_forces_spouse_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::ArmedForcesSpouse, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Are any of the buyers a spouse or civil partner of a UK armed forces regular who died in service within the last 2 years?") expect(question.header).to eq("Q64 - Are any of the buyers a spouse or civil partner of a UK armed forces regular who died in service within the last 2 years?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer1_age_known_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1AgeKnown, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Do you know buyer 1’s age?") expect(question.header).to eq("Q20 - Do you know buyer 1’s age?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer1_ethnic_background_arab_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundArab, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 1’s Arab background?") expect(question.header).to eq("Q23 - Which of the following best describes the buyer 1’s Arab background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer1_ethnic_background_asian_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundAsian, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 1’s Asian or Asian British background?") expect(question.header).to eq("Q23 - Which of the following best describes the buyer 1’s Asian or Asian British background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer1_ethnic_background_black_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundBlack, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 1’s Black, African, Caribbean or Black British background?") expect(question.header).to eq("Q23 - Which of the following best describes the buyer 1’s Black, African, Caribbean or Black British background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer1_ethnic_background_mixed_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundMixed, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 1’s Mixed or Multiple ethnic groups background?") expect(question.header).to eq("Q23 - Which of the following best describes the buyer 1’s Mixed or Multiple ethnic groups background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer1_ethnic_background_white_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundWhite, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 1’s White background?") expect(question.header).to eq("Q23 - Which of the following best describes the buyer 1’s White background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer1_ethnic_group_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicGroup, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("What is buyer 1’s ethnic group?") expect(question.header).to eq("Q22 - What is buyer 1’s ethnic group?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer1_income_known_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1IncomeKnown, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Do you know buyer 1’s annual income?") expect(question.header).to eq("Q67 - Do you know buyer 1’s annual income?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer1_live_in_property_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1LiveInProperty, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Will buyer 1 live in the property?") expect(question.header).to eq("Q26 - Will buyer 1 live in the property?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer1_mortgage_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1Mortgage, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Was buyer 1's income used for a mortgage application?") expect(question.header).to eq("Q68 - Was buyer 1's income used for a mortgage application?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer1_previous_tenure_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1PreviousTenure, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("What was buyer 1's previous tenure?") expect(question.header).to eq("Q56 - What was buyer 1's previous tenure?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer1_working_situation_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer1WorkingSituation, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of these best describes buyer 1's working situation?") expect(question.header).to eq("Q25 - Which of these best describes buyer 1's working situation?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_age_known_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2AgeKnown, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Do you know buyer 2’s age?") expect(question.header).to eq("Q28 - Do you know buyer 2’s age?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_ethnic_background_arab_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicBackgroundArab, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 2’s Arab background?") expect(question.header).to eq("Q31 - Which of the following best describes the buyer 2’s Arab background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_ethnic_background_asian_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicBackgroundAsian, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 2’s Asian or Asian British background?") expect(question.header).to eq("Q31 - Which of the following best describes the buyer 2’s Asian or Asian British background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_ethnic_background_black_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicBackgroundBlack, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 2’s Black, African, Caribbean or Black British background?") expect(question.header).to eq("Q31 - Which of the following best describes the buyer 2’s Black, African, Caribbean or Black British background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_ethnic_background_mixed_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicBackgroundMixed, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 2’s Mixed or Multiple ethnic groups background?") expect(question.header).to eq("Q31 - Which of the following best describes the buyer 2’s Mixed or Multiple ethnic groups background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_ethnic_background_white_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicBackgroundWhite, type: :model
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Which of the following best describes the buyer 2’s White background?") expect(question.header).to eq("Q31 - Which of the following best describes the buyer 2’s White background?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_ethnic_group_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicGroup, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("What is buyer 2’s ethnic group?") expect(question.header).to eq("Q30 - What is buyer 2’s ethnic group?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_income_known_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2IncomeKnown, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Do you know buyer 2’s annual income?") expect(question.header).to eq("Q69 - Do you know buyer 2’s annual income?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_live_in_property_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2LiveInProperty, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Will buyer 2 live in the property?") expect(question.header).to eq("Q34 - Will buyer 2 live in the property?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

2
spec/models/form/sales/questions/buyer2_mortgage_spec.rb

@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Buyer2Mortgage, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Was buyer 2's income used for a mortgage application?") expect(question.header).to eq("Q70 - Was buyer 2's income used for a mortgage application?")
end end
it "has the correct check_answer_label" do it "has the correct check_answer_label" do

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save