Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

55 lines
1.7 KiB

# added in 2026
class Form::Lettings::Questions::ReferralRegister < ::Form::Question
def initialize(id, hsh, page, provider_type)
super(id, hsh, page)
@id = "referral_register"
@copy_key = "lettings.household_situation.referral.register"
@type = "radio"
@check_answers_card_number = 0
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
@provider_type = provider_type
end
def answer_options
if @provider_type == :la
{
"1" => {
"value" => "Renewal to the same tenant in the same property",
},
"2" => {
"value" => "Internal transfer from another property owned by the same local authority - for existing social tenants only",
},
"3" => {
"value" => "From a housing register (waiting list)",
},
"4" => {
"value" => "Tenant applied directly (not via a nomination or housing register)",
},
}.freeze
else
{
"5" => {
"value" => "Renewal to the same tenant in the same property",
},
"6" => {
"value" => "From a local authority housing register (waiting list) or a register with local authority involvement",
},
"7" => {
"value" => "From a housing register (waiting list) with no local authority involvement",
},
"8" => {
"value" => "Tenant applied directly (not via a nomination or waiting list)",
},
"9" => {
"value" => "Don't know",
},
}.freeze
end
end
def derived?(log)
log.is_renewal?
end
QUESTION_NUMBER_FROM_YEAR = { 2026 => 84 }.freeze
end