Browse Source

feat: shared ownership scheme numbering

pull/1381/head
natdeanlewissoftwire 3 years ago
parent
commit
5eee6e47ed
  1. 1
      app/models/form/sales/questions/buyer_previous.rb
  2. 1
      app/models/form/sales/questions/deposit_amount.rb
  3. 1
      app/models/form/sales/questions/deposit_discount.rb
  4. 1
      app/models/form/sales/questions/equity.rb
  5. 1
      app/models/form/sales/questions/exchange_date.rb
  6. 1
      app/models/form/sales/questions/extra_borrowing.rb
  7. 1
      app/models/form/sales/questions/fromprop.rb
  8. 1
      app/models/form/sales/questions/handover_date.rb
  9. 1
      app/models/form/sales/questions/la_nominations.rb
  10. 1
      app/models/form/sales/questions/leasehold_charges.rb
  11. 1
      app/models/form/sales/questions/leasehold_charges_known.rb
  12. 1
      app/models/form/sales/questions/living_before_purchase.rb
  13. 1
      app/models/form/sales/questions/living_before_purchase_years.rb
  14. 1
      app/models/form/sales/questions/monthly_rent.rb
  15. 1
      app/models/form/sales/questions/mortgage_amount.rb
  16. 1
      app/models/form/sales/questions/mortgage_lender.rb
  17. 1
      app/models/form/sales/questions/mortgage_lender_other.rb
  18. 1
      app/models/form/sales/questions/mortgage_length.rb
  19. 1
      app/models/form/sales/questions/mortgageused.rb
  20. 1
      app/models/form/sales/questions/previous_bedrooms.rb
  21. 1
      app/models/form/sales/questions/previous_tenure.rb
  22. 1
      app/models/form/sales/questions/resale.rb
  23. 1
      app/models/form/sales/questions/staircase.rb
  24. 1
      app/models/form/sales/questions/staircase_bought.rb
  25. 1
      app/models/form/sales/questions/staircase_owned.rb
  26. 1
      app/models/form/sales/questions/staircase_sale.rb
  27. 1
      app/models/form/sales/questions/value.rb

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

@ -6,6 +6,7 @@ class Form::Sales::Questions::BuyerPrevious < ::Form::Question
@header = "Was the buyer a private registered provider, housing association or local authority tenant immediately before this sale?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@question_number = 84
end
ANSWER_OPTIONS = {

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

@ -11,6 +11,7 @@ class Form::Sales::Questions::DepositAmount < ::Form::Question
@prefix = "£"
@hint_text = "Enter the total cash sum paid by the buyer towards the property that was not funded by the mortgage"
@derived = true
@question_number = 95
end
def selected_answer_option_is_derived?(_log)

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

@ -10,5 +10,6 @@ class Form::Sales::Questions::DepositDiscount < ::Form::Question
@width = 5
@prefix = "£"
@hint_text = "Enter the total cash discount given on the property being purchased through the Social HomeBuy scheme"
@question_number = 96
end
end

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

@ -10,5 +10,6 @@ class Form::Sales::Questions::Equity < ::Form::Question
@width = 5
@suffix = "%"
@hint_text = "Enter the amount of initial equity held by the purchaser (for example, 25% or 50%)"
@question_number = 89
end
end

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

@ -5,5 +5,6 @@ class Form::Sales::Questions::ExchangeDate < ::Form::Question
@check_answer_label = "Exchange of contracts date"
@header = "What is the exchange of contracts date?"
@type = "date"
@question_number = 81
end
end

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

@ -8,6 +8,7 @@ class Form::Sales::Questions::ExtraBorrowing < ::Form::Question
@answer_options = ANSWER_OPTIONS
@page = page
@hint_text = ""
@question_number = 94
end
ANSWER_OPTIONS = {

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

@ -8,6 +8,7 @@ class Form::Sales::Questions::Fromprop < ::Form::Question
@hint_text = ""
@page = page
@answer_options = ANSWER_OPTIONS
@question_number = 86
end
ANSWER_OPTIONS = {

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

@ -6,5 +6,6 @@ class Form::Sales::Questions::HandoverDate < ::Form::Question
@header = "What is the practical completion or handover 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)"
@question_number = 82
end
end

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

@ -7,6 +7,7 @@ class Form::Sales::Questions::LaNominations < ::Form::Question
@type = "radio"
@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"
@question_number = 83
end
ANSWER_OPTIONS = {

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

@ -8,5 +8,6 @@ class Form::Sales::Questions::LeaseholdCharges < ::Form::Question
@min = 0
@width = 5
@prefix = "£"
@question_number = 98
end
end

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

@ -17,6 +17,7 @@ class Form::Sales::Questions::LeaseholdChargesKnown < ::Form::Question
},
],
}
@question_number = 98
end
ANSWER_OPTIONS = {

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

@ -17,6 +17,7 @@ class Form::Sales::Questions::LivingBeforePurchase < ::Form::Question
},
],
}
@question_number = 75
end
ANSWER_OPTIONS = {

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

@ -11,6 +11,7 @@ class Form::Sales::Questions::LivingBeforePurchaseYears < ::Form::Question
@step = 1
@width = 5
@suffix = " years"
@question_number = 75
end
def header_text

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

@ -9,5 +9,6 @@ class Form::Sales::Questions::MonthlyRent < ::Form::Question
@width = 5
@prefix = "£"
@hint_text = "Amount paid before any charges"
@question_number = 97
end
end

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

@ -9,5 +9,6 @@ class Form::Sales::Questions::MortgageAmount < ::Form::Question
@width = 5
@prefix = "£"
@hint_text = "Enter the amount of mortgage agreed with the mortgage lender. Exclude any deposits or cash payments. Numeric in pounds. Rounded to the nearest pound."
@question_number = 91
end
end

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

@ -10,6 +10,7 @@ class Form::Sales::Questions::MortgageLender < ::Form::Question
@answer_options = ANSWER_OPTIONS
@guidance_position = GuidancePosition::BOTTOM
@guidance_partial = "mortgage_lender"
@question_number = 92
end
ANSWER_OPTIONS = {

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

@ -6,5 +6,6 @@ class Form::Sales::Questions::MortgageLenderOther < ::Form::Question
@header = "What is the other mortgage lender?"
@type = "text"
@page = page
@question_number = 92
end
end

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

@ -10,5 +10,6 @@ class Form::Sales::Questions::MortgageLength < ::Form::Question
@width = 5
@suffix = " years"
@hint_text = "You should round up to the nearest year. Value should not exceed 60 years."
@question_number = 93
end
end

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

@ -6,6 +6,7 @@ class Form::Sales::Questions::Mortgageused < ::Form::Question
@header = "Was a mortgage used for the purchase of this property?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@question_number = 90
end
ANSWER_OPTIONS = {

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

@ -9,5 +9,6 @@ class Form::Sales::Questions::PreviousBedrooms < ::Form::Question
@min = 1
@max = 6
@hint_text = "For bedsits enter 1"
@question_number = 85
end
end

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

@ -8,6 +8,7 @@ class Form::Sales::Questions::PreviousTenure < ::Form::Question
@hint_text = ""
@page = page
@answer_options = ANSWER_OPTIONS
@question_number = 87
end
ANSWER_OPTIONS = {

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

@ -7,6 +7,7 @@ class Form::Sales::Questions::Resale < ::Form::Question
@type = "radio"
@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'."
@question_number = 80
end
ANSWER_OPTIONS = {

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

@ -7,6 +7,7 @@ class Form::Sales::Questions::Staircase < ::Form::Question
@type = "radio"
@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"
@question_number = 76
end
ANSWER_OPTIONS = {

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

@ -9,5 +9,6 @@ class Form::Sales::Questions::StaircaseBought < ::Form::Question
@min = 0
@max = 100
@suffix = "%"
@question_number = 77
end
end

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

@ -9,5 +9,6 @@ class Form::Sales::Questions::StaircaseOwned < ::Form::Question
@min = 0
@max = 100
@suffix = "%"
@question_number = 78
end
end

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

@ -6,6 +6,7 @@ class Form::Sales::Questions::StaircaseSale < ::Form::Question
@header = "Is this transaction part of a back-to-back staircasing transaction to facilitate sale of the home on the open market?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@question_number = 79
end
ANSWER_OPTIONS = {

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

@ -9,5 +9,6 @@ class Form::Sales::Questions::Value < ::Form::Question
@width = 5
@prefix = "£"
@hint_text = "Enter the full purchase price of the property before any discounts are applied. For shared ownership, enter the full purchase price paid for 100% equity (this is equal to the value of the share owned by the PRP plus the value bought by the purchaser)"
@question_number = 88
end
end

Loading…
Cancel
Save