Browse Source

CLDC-3685: Copy changes lettings income and benefits (#2732)

pull/2743/head^2
Manny Dinssa 5 months ago committed by GitHub
parent
commit
fa83f3abc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      app/models/form/lettings/pages/care_home_weekly.rb
  2. 2
      app/models/form/lettings/pages/income_amount.rb
  3. 1
      app/models/form/lettings/pages/income_known.rb
  4. 2
      app/models/form/lettings/pages/rent_4_weekly.rb
  5. 2
      app/models/form/lettings/pages/rent_bi_weekly.rb
  6. 2
      app/models/form/lettings/pages/rent_monthly.rb
  7. 2
      app/models/form/lettings/pages/rent_weekly.rb
  8. 3
      app/models/form/lettings/questions/benefits.rb
  9. 4
      app/models/form/lettings/questions/brent_4_weekly.rb
  10. 4
      app/models/form/lettings/questions/brent_bi_weekly.rb
  11. 4
      app/models/form/lettings/questions/brent_monthly.rb
  12. 4
      app/models/form/lettings/questions/brent_weekly.rb
  13. 4
      app/models/form/lettings/questions/chcharge_4_weekly.rb
  14. 4
      app/models/form/lettings/questions/chcharge_bi_weekly.rb
  15. 4
      app/models/form/lettings/questions/chcharge_monthly.rb
  16. 4
      app/models/form/lettings/questions/chcharge_weekly.rb
  17. 4
      app/models/form/lettings/questions/earnings.rb
  18. 3
      app/models/form/lettings/questions/hb.rb
  19. 3
      app/models/form/lettings/questions/hbrentshortfall.rb
  20. 3
      app/models/form/lettings/questions/household_charge.rb
  21. 4
      app/models/form/lettings/questions/incfreq.rb
  22. 4
      app/models/form/lettings/questions/is_carehome.rb
  23. 3
      app/models/form/lettings/questions/net_income_known.rb
  24. 3
      app/models/form/lettings/questions/period.rb
  25. 4
      app/models/form/lettings/questions/pscharge_4_weekly.rb
  26. 4
      app/models/form/lettings/questions/pscharge_bi_weekly.rb
  27. 4
      app/models/form/lettings/questions/pscharge_monthly.rb
  28. 4
      app/models/form/lettings/questions/pscharge_weekly.rb
  29. 4
      app/models/form/lettings/questions/scharge_4_weekly.rb
  30. 4
      app/models/form/lettings/questions/scharge_bi_weekly.rb
  31. 4
      app/models/form/lettings/questions/scharge_monthly.rb
  32. 4
      app/models/form/lettings/questions/scharge_weekly.rb
  33. 4
      app/models/form/lettings/questions/supcharg_4_weekly.rb
  34. 4
      app/models/form/lettings/questions/supcharg_bi_weekly.rb
  35. 4
      app/models/form/lettings/questions/supcharg_monthly.rb
  36. 4
      app/models/form/lettings/questions/supcharg_weekly.rb
  37. 4
      app/models/form/lettings/questions/tcharge_4_weekly.rb
  38. 4
      app/models/form/lettings/questions/tcharge_bi_weekly.rb
  39. 4
      app/models/form/lettings/questions/tcharge_monthly.rb
  40. 4
      app/models/form/lettings/questions/tcharge_weekly.rb
  41. 3
      app/models/form/lettings/questions/tshortfall.rb
  42. 4
      app/models/form/lettings/questions/tshortfall_known.rb
  43. 108
      config/locales/forms/2023/lettings/income_and_benefits.en.yml
  44. 108
      config/locales/forms/2024/lettings/income_and_benefits.en.yml

1
app/models/form/lettings/pages/care_home_weekly.rb

@ -2,6 +2,7 @@ class Form::Lettings::Pages::CareHomeWeekly < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "care_home_weekly" @id = "care_home_weekly"
@copy_key = "lettings.income_and_benefits.care_home"
@depends_on = [ @depends_on = [
{ "rent_and_charges_paid_weekly?" => true, "is_supported_housing?" => true, "household_charge" => 0 }, { "rent_and_charges_paid_weekly?" => true, "is_supported_housing?" => true, "household_charge" => 0 },
{ "rent_and_charges_paid_weekly?" => true, "is_supported_housing?" => true, "household_charge" => nil }, { "rent_and_charges_paid_weekly?" => true, "is_supported_housing?" => true, "household_charge" => nil },

2
app/models/form/lettings/pages/income_amount.rb

@ -2,7 +2,7 @@ class Form::Lettings::Pages::IncomeAmount < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "income_amount" @id = "income_amount"
@header = "Total household income" @copy_key = "lettings.income_and_benefits.income_amount"
@depends_on = [{ "net_income_known" => 0 }] @depends_on = [{ "net_income_known" => 0 }]
end end

1
app/models/form/lettings/pages/income_known.rb

@ -2,7 +2,6 @@ class Form::Lettings::Pages::IncomeKnown < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "income_known" @id = "income_known"
@header = "Household’s combined income after tax"
end end
def questions def questions

2
app/models/form/lettings/pages/rent_4_weekly.rb

@ -2,7 +2,7 @@ class Form::Lettings::Pages::Rent4Weekly < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "rent_4_weekly" @id = "rent_4_weekly"
@header = "Household rent and charges" @copy_key = "lettings.income_and_benefits.rent_and_charges"
@depends_on = [ @depends_on = [
{ "household_charge" => 0, "rent_and_charges_paid_every_4_weeks?" => true, "is_carehome?" => false }, { "household_charge" => 0, "rent_and_charges_paid_every_4_weeks?" => true, "is_carehome?" => false },
{ "household_charge" => nil, "rent_and_charges_paid_every_4_weeks?" => true, "is_carehome?" => false }, { "household_charge" => nil, "rent_and_charges_paid_every_4_weeks?" => true, "is_carehome?" => false },

2
app/models/form/lettings/pages/rent_bi_weekly.rb

@ -2,7 +2,7 @@ class Form::Lettings::Pages::RentBiWeekly < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "rent_bi_weekly" @id = "rent_bi_weekly"
@header = "Household rent and charges" @copy_key = "lettings.income_and_benefits.rent_and_charges"
@depends_on = [ @depends_on = [
{ "household_charge" => nil, "rent_and_charges_paid_every_2_weeks?" => true, "is_carehome?" => false }, { "household_charge" => nil, "rent_and_charges_paid_every_2_weeks?" => true, "is_carehome?" => false },
{ "household_charge" => 0, "rent_and_charges_paid_every_2_weeks?" => true, "is_carehome?" => false }, { "household_charge" => 0, "rent_and_charges_paid_every_2_weeks?" => true, "is_carehome?" => false },

2
app/models/form/lettings/pages/rent_monthly.rb

@ -2,7 +2,7 @@ class Form::Lettings::Pages::RentMonthly < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "rent_monthly" @id = "rent_monthly"
@header = "Household rent and charges" @copy_key = "lettings.income_and_benefits.rent_and_charges"
@depends_on = [ @depends_on = [
{ "household_charge" => nil, "rent_and_charges_paid_monthly?" => true, "is_carehome?" => false }, { "household_charge" => nil, "rent_and_charges_paid_monthly?" => true, "is_carehome?" => false },
{ "household_charge" => 0, "rent_and_charges_paid_monthly?" => true, "is_carehome?" => false }, { "household_charge" => 0, "rent_and_charges_paid_monthly?" => true, "is_carehome?" => false },

2
app/models/form/lettings/pages/rent_weekly.rb

@ -2,7 +2,7 @@ class Form::Lettings::Pages::RentWeekly < ::Form::Page
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
super super
@id = "rent_weekly" @id = "rent_weekly"
@header = "Household rent and charges" @copy_key = "lettings.income_and_benefits.rent_and_charges"
@depends_on = [ @depends_on = [
{ "rent_and_charges_paid_weekly?" => true, "household_charge" => 0, "is_carehome?" => false }, { "rent_and_charges_paid_weekly?" => true, "household_charge" => 0, "is_carehome?" => false },
{ "rent_and_charges_paid_weekly?" => true, "household_charge" => nil, "is_carehome?" => false }, { "rent_and_charges_paid_weekly?" => true, "household_charge" => nil, "is_carehome?" => false },

3
app/models/form/lettings/questions/benefits.rb

@ -2,11 +2,8 @@ class Form::Lettings::Questions::Benefits < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "benefits" @id = "benefits"
@check_answer_label = "Household income from Universal Credit, state pension or benefits"
@header = "How much of the household’s income is from Universal Credit, state pensions or benefits?"
@type = "radio" @type = "radio"
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = "This excludes child and housing benefit, council tax support and tax credits."
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] @question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end end

4
app/models/form/lettings/questions/brent_4_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::Brent4Weekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "brent" @id = "brent"
@check_answer_label = "Basic rent" @copy_key = "lettings.income_and_benefits.rent_and_charges.brent"
@header = "What is the basic rent?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/brent_bi_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::BrentBiWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "brent" @id = "brent"
@check_answer_label = "Basic rent" @copy_key = "lettings.income_and_benefits.rent_and_charges.brent"
@header = "What is the basic rent?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/brent_monthly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::BrentMonthly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "brent" @id = "brent"
@check_answer_label = "Basic rent" @copy_key = "lettings.income_and_benefits.rent_and_charges.brent"
@header = "What is the basic rent?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/brent_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::BrentWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "brent" @id = "brent"
@check_answer_label = "Basic rent" @copy_key = "lettings.income_and_benefits.rent_and_charges.brent"
@header = "What is the basic rent?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/chcharge_4_weekly.rb

@ -2,12 +2,10 @@ class Form::Lettings::Questions::Chcharge4Weekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "chcharge" @id = "chcharge"
@check_answer_label = "Care home charges" @copy_key = "lettings.income_and_benefits.care_home.chcharge_4_weekly"
@header = "How much does the household pay every 4 weeks?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = ""
@step = 0.01 @step = 0.01
@prefix = "£" @prefix = "£"
@suffix = " every 4 weeks" @suffix = " every 4 weeks"

4
app/models/form/lettings/questions/chcharge_bi_weekly.rb

@ -2,12 +2,10 @@ class Form::Lettings::Questions::ChchargeBiWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "chcharge" @id = "chcharge"
@check_answer_label = "Care home charges" @copy_key = "lettings.income_and_benefits.care_home.chcharge_bi_weekly"
@header = "How much does the household pay every 2 weeks?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = ""
@step = 0.01 @step = 0.01
@prefix = "£" @prefix = "£"
@suffix = " every 2 weeks" @suffix = " every 2 weeks"

4
app/models/form/lettings/questions/chcharge_monthly.rb

@ -2,12 +2,10 @@ class Form::Lettings::Questions::ChchargeMonthly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "chcharge" @id = "chcharge"
@check_answer_label = "Care home charges" @copy_key = "lettings.income_and_benefits.care_home.chcharge_monthly"
@header = "How much does the household pay every month?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = ""
@step = 0.01 @step = 0.01
@prefix = "£" @prefix = "£"
@suffix = " every month" @suffix = " every month"

4
app/models/form/lettings/questions/chcharge_weekly.rb

@ -2,12 +2,10 @@ class Form::Lettings::Questions::ChchargeWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "chcharge" @id = "chcharge"
@check_answer_label = "Care home charges" @copy_key = "lettings.income_and_benefits.care_home.chcharge_weekly"
@header = "How much does the household pay every week?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = ""
@step = 0.01 @step = 0.01
@prefix = "£" @prefix = "£"
@suffix = " every week" @suffix = " every week"

4
app/models/form/lettings/questions/earnings.rb

@ -2,14 +2,12 @@ class Form::Lettings::Questions::Earnings < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "earnings" @id = "earnings"
@check_answer_label = "Total household income" @copy_key = "lettings.income_and_benefits.income_amount.earnings"
@header = "How much income does the household have in total?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@top_guidance_partial = "what_counts_as_income" @top_guidance_partial = "what_counts_as_income"
@hint_text = ""
@step = 0.01 @step = 0.01
@prefix = "£" @prefix = "£"
@suffix = [ @suffix = [

3
app/models/form/lettings/questions/hb.rb

@ -2,11 +2,8 @@ class Form::Lettings::Questions::Hb < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "hb" @id = "hb"
@check_answer_label = "Housing-related benefits received"
@header = "Is the household likely to be receiving any of these housing-related benefits?"
@type = "radio" @type = "radio"
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = form.start_year_after_2024? ? "This is about when the tenant is in their new let. If they are unsure about the situation for their new let and their financial and working situation hasn’t changed significantly, answer based on what housing-related benefits they currently receive." : ""
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] @question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end end

3
app/models/form/lettings/questions/hbrentshortfall.rb

@ -2,11 +2,8 @@ class Form::Lettings::Questions::Hbrentshortfall < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "hbrentshortfall" @id = "hbrentshortfall"
@check_answer_label = "Any outstanding amount for basic rent and charges"
@header = "After the household has received any housing-related benefits, will they still need to pay for rent and charges?"
@type = "radio" @type = "radio"
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = "Also known as the ‘outstanding amount’."
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] @question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end end

3
app/models/form/lettings/questions/household_charge.rb

@ -2,11 +2,8 @@ class Form::Lettings::Questions::HouseholdCharge < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "household_charge" @id = "household_charge"
@check_answer_label = "Does the household pay rent or charges?"
@header = "Does the household pay rent or other charges for the accommodation?"
@type = "radio" @type = "radio"
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = "If rent is charged on the property then answer Yes to this question, even if the tenants do not pay it themselves."
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] @question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end end

4
app/models/form/lettings/questions/incfreq.rb

@ -2,11 +2,9 @@ class Form::Lettings::Questions::Incfreq < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "incfreq" @id = "incfreq"
@check_answer_label = "How often does the household receive this amount?" @copy_key = "lettings.income_and_benefits.income_amount.incfreq"
@header = "How often does the household receive this amount?"
@type = "radio" @type = "radio"
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = ""
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@hidden_in_check_answers = true @hidden_in_check_answers = true
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] @question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]

4
app/models/form/lettings/questions/is_carehome.rb

@ -2,11 +2,9 @@ class Form::Lettings::Questions::IsCarehome < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "is_carehome" @id = "is_carehome"
@check_answer_label = "Care home accommodation" @copy_key = "lettings.income_and_benefits.care_home.is_carehome"
@header = "Is this accommodation a care home?"
@type = "radio" @type = "radio"
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = ""
@conditional_for = { "chcharge" => [1] } @conditional_for = { "chcharge" => [1] }
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] @question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end end

3
app/models/form/lettings/questions/net_income_known.rb

@ -2,12 +2,9 @@ class Form::Lettings::Questions::NetIncomeKnown < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "net_income_known" @id = "net_income_known"
@check_answer_label = "Do you know the household’s combined total income after tax?"
@header = "Do you know the household’s combined income after tax?"
@type = "radio" @type = "radio"
@check_answers_card_number = 0 @check_answers_card_number = 0
@top_guidance_partial = "what_counts_as_income" @top_guidance_partial = "what_counts_as_income"
@hint_text = ""
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] @question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end end

3
app/models/form/lettings/questions/period.rb

@ -2,11 +2,8 @@ class Form::Lettings::Questions::Period < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "period" @id = "period"
@check_answer_label = "Frequency of household rent and charges"
@header = "How often does the household pay rent and other charges?"
@type = "radio" @type = "radio"
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = "Select how often the household is charged. This may be different to how often they pay."
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] @question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]
end end

4
app/models/form/lettings/questions/pscharge_4_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::Pscharge4Weekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "pscharge" @id = "pscharge"
@check_answer_label = "Personal service charge" @copy_key = "lettings.income_and_benefits.rent_and_charges.pscharge"
@header = "What is the personal service charge?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/pscharge_bi_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::PschargeBiWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "pscharge" @id = "pscharge"
@check_answer_label = "Personal service charge" @copy_key = "lettings.income_and_benefits.rent_and_charges.pscharge"
@header = "What is the personal service charge?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/pscharge_monthly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::PschargeMonthly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "pscharge" @id = "pscharge"
@check_answer_label = "Personal service charge" @copy_key = "lettings.income_and_benefits.rent_and_charges.pscharge"
@header = "What is the personal service charge?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/pscharge_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::PschargeWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "pscharge" @id = "pscharge"
@check_answer_label = "Personal service charge" @copy_key = "lettings.income_and_benefits.rent_and_charges.pscharge"
@header = "What is the personal service charge?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/scharge_4_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::Scharge4Weekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "scharge" @id = "scharge"
@check_answer_label = "Service charge" @copy_key = "lettings.income_and_benefits.rent_and_charges.scharge"
@header = "What is the service charge?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/scharge_bi_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::SchargeBiWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "scharge" @id = "scharge"
@check_answer_label = "Service charge" @copy_key = "lettings.income_and_benefits.rent_and_charges.scharge"
@header = "What is the service charge?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/scharge_monthly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::SchargeMonthly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "scharge" @id = "scharge"
@check_answer_label = "Service charge" @copy_key = "lettings.income_and_benefits.rent_and_charges.scharge"
@header = "What is the service charge?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/scharge_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::SchargeWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "scharge" @id = "scharge"
@check_answer_label = "Service charge" @copy_key = "lettings.income_and_benefits.rent_and_charges.scharge"
@header = "What is the service charge?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/supcharg_4_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::Supcharg4Weekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "supcharg" @id = "supcharg"
@check_answer_label = "Support charge" @copy_key = "lettings.income_and_benefits.rent_and_charges.supcharg"
@header = "What is the support charge?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "Any charges made to fund support services included in tenancy agreement."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/supcharg_bi_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::SupchargBiWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "supcharg" @id = "supcharg"
@check_answer_label = "Support charge" @copy_key = "lettings.income_and_benefits.rent_and_charges.supcharg"
@header = "What is the support charge?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "Any charges made to fund support services included in tenancy agreement."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/supcharg_monthly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::SupchargMonthly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "supcharg" @id = "supcharg"
@check_answer_label = "Support charge" @copy_key = "lettings.income_and_benefits.rent_and_charges.supcharg"
@header = "What is the support charge?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "Any charges made to fund support services included in tenancy agreement."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/supcharg_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::SupchargWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "supcharg" @id = "supcharg"
@check_answer_label = "Support charge" @copy_key = "lettings.income_and_benefits.rent_and_charges.supcharg"
@header = "What is the support charge?"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "Any charges made to fund support services included in tenancy agreement."
@step = 0.01 @step = 0.01
@fields_to_add = %w[brent scharge pscharge supcharg] @fields_to_add = %w[brent scharge pscharge supcharg]
@result_field = "tcharge" @result_field = "tcharge"

4
app/models/form/lettings/questions/tcharge_4_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::Tcharge4Weekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "tcharge" @id = "tcharge"
@check_answer_label = "Household rent and charges" @copy_key = "lettings.income_and_benefits.rent_and_charges.tcharge"
@header = "Total charge"
@type = "numeric_output" @type = "numeric_output"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "This is the total for rent and all charges."
@step = 0.01 @step = 0.01
@readonly = true @readonly = true
@prefix = "£" @prefix = "£"

4
app/models/form/lettings/questions/tcharge_bi_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::TchargeBiWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "tcharge" @id = "tcharge"
@check_answer_label = "Household rent and charges" @copy_key = "lettings.income_and_benefits.rent_and_charges.tcharge"
@header = "Total charge"
@type = "numeric_output" @type = "numeric_output"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "This is the total for rent and all charges."
@step = 0.01 @step = 0.01
@readonly = true @readonly = true
@prefix = "£" @prefix = "£"

4
app/models/form/lettings/questions/tcharge_monthly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::TchargeMonthly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "tcharge" @id = "tcharge"
@check_answer_label = "Household rent and charges" @copy_key = "lettings.income_and_benefits.rent_and_charges.tcharge"
@header = "Total charge"
@type = "numeric_output" @type = "numeric_output"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "This is the total for rent and all charges."
@step = 0.01 @step = 0.01
@readonly = true @readonly = true
@prefix = "£" @prefix = "£"

4
app/models/form/lettings/questions/tcharge_weekly.rb

@ -2,13 +2,11 @@ class Form::Lettings::Questions::TchargeWeekly < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "tcharge" @id = "tcharge"
@check_answer_label = "Household rent and charges" @copy_key = "lettings.income_and_benefits.rent_and_charges.tcharge"
@header = "Total charge"
@type = "numeric_output" @type = "numeric_output"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0
@min = 0 @min = 0
@hint_text = "This is the total for rent and all charges."
@step = 0.01 @step = 0.01
@readonly = true @readonly = true
@prefix = "£" @prefix = "£"

3
app/models/form/lettings/questions/tshortfall.rb

@ -2,8 +2,7 @@ class Form::Lettings::Questions::Tshortfall < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "tshortfall" @id = "tshortfall"
@check_answer_label = "Estimated outstanding amount" @copy_key = "lettings.income_and_benefits.outstanding_amount.tshortfall"
@header = "Estimated outstanding amount"
@type = "numeric" @type = "numeric"
@width = 5 @width = 5
@check_answers_card_number = 0 @check_answers_card_number = 0

4
app/models/form/lettings/questions/tshortfall_known.rb

@ -2,11 +2,9 @@ class Form::Lettings::Questions::TshortfallKnown < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "tshortfall_known" @id = "tshortfall_known"
@check_answer_label = "Do you know the outstanding amount?" @copy_key = "lettings.income_and_benefits.outstanding_amount.tshortfall_known"
@header = "Can you estimate the outstanding amount?"
@type = "radio" @type = "radio"
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = "You only need to give an approximate figure."
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@conditional_for = { "tshortfall" => [0] } @conditional_for = { "tshortfall" => [0] }
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] @question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max]

108
config/locales/forms/2023/lettings/income_and_benefits.en.yml

@ -0,0 +1,108 @@
en:
forms:
2023:
lettings:
income_and_benefits:
net_income_known:
page_header: "Household’s combined income after tax"
check_answer_label: "Do you know the household’s combined total income after tax?"
hint_text: ""
question_text: "Do you know the household’s combined income after tax?"
income_amount:
page_header: "Total household income"
incfreq:
check_answer_label: "How often does the household receive this amount?"
hint_text: ""
question_text: "How often does the household receive this amount?"
earnings:
check_answer_label: "Total household income"
hint_text: ""
question_text: "How much income does the household have in total?"
hb:
page_header: ""
check_answer_label: "Housing-related benefits received"
hint_text: ""
question_text: "Is the household likely to be receiving any of these housing-related benefits?"
benefits:
page_header: ""
check_answer_label: "Household income from Universal Credit, state pension or benefit"
hint_text: "This excludes child and housing benefit, council tax support and tax credits."
question_text: "How much of the household’s income is from Universal Credit, state pensions or benefits?"
household_charge:
page_header: ""
check_answer_label: "Does the household pay rent or charges"
hint_text: "If rent is charged on the property then answer Yes to this question, even if the tenants do not pay it themselves."
question_text: "Does the household pay rent or other charges for the accommodation?"
period:
page_header: ""
check_answer_label: "Frequency of household rent and charges"
hint_text: "Select how often the household is charged. This may be different to how often they pay."
question_text: "How often does the household pay rent and other charges?"
care_home:
page_header: ""
is_carehome:
check_answer_label: "Care home accommodation"
hint_text: ""
question_text: "Is this accommodation a care home?"
chcharge_weekly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every week?"
chcharge_bi_weekly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every 2 weeks?"
chcharge_4_weekly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every 4 weeks?"
chcharge_monthly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every month?"
rent_and_charges:
page_header: "Household rent and charges"
brent:
check_answer_label: "Basic rent"
hint_text: "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
question_text: "What is the basic rent?"
scharge:
check_answer_label: "Service charge"
hint_text: "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
question_text: "What is the service charge?"
pscharge:
check_answer_label: "Personal service charge"
hint_text: "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
question_text: "What is the personal service charge?"
supcharg:
check_answer_label: "Support charge"
hint_text: "Any charges made to fund support services included in tenancy agreement."
question_text: "What is the support charge?"
tcharge:
check_answer_label: "Household rent and charges"
hint_text: "This is the total for rent and all charges."
question_text: "Total charge"
hbrentshortfall:
page_header: ""
check_answer_label: "Any outstanding amount for basic rent and charges"
hint_text: "Also known as the ‘outstanding amount’."
question_text: "After the household has received any housing-related benefits, will they still need to pay for rent and charges?"
outstanding_amount:
page_header: ""
tshortfall_known:
check_answer_label: "Do you know the outstanding amount?"
hint_text: "You only need to give an approximate figure."
question_text: "Can you estimate the outstanding amount?"
tshortfall:
check_answer_label: "Estimated outstanding amountt"
hint_text: "Also known as the ‘outstanding amount’."
question_text: "Estimated outstanding amount"

108
config/locales/forms/2024/lettings/income_and_benefits.en.yml

@ -0,0 +1,108 @@
en:
forms:
2024:
lettings:
income_and_benefits:
net_income_known:
page_header: "Household’s combined income after tax"
check_answer_label: "Do you know the household’s combined total income after tax?"
hint_text: ""
question_text: "Do you know the household’s combined income after tax?"
income_amount:
page_header: "Total household income"
incfreq:
check_answer_label: "How often does the household receive this amount?"
hint_text: ""
question_text: "How often does the household receive this amount?"
earnings:
check_answer_label: "Total household income"
hint_text: ""
question_text: "How much income does the household have in total?"
hb:
page_header: ""
check_answer_label: "Housing-related benefits received"
hint_text: "This is about when the tenant is in their new let. If they are unsure about the situation for their new let and their financial and working situation hasn’t changed significantly, answer based on what housing-related benefits they currently receive."
question_text: "Is the household likely to be receiving any of these housing-related benefits?"
benefits:
page_header: ""
check_answer_label: "Household income from Universal Credit, state pension or benefit"
hint_text: "This excludes child and housing benefit, council tax support and tax credits."
question_text: "How much of the household’s income is from Universal Credit, state pensions or benefits?"
household_charge:
page_header: ""
check_answer_label: "Does the household pay rent or charges"
hint_text: "If rent is charged on the property then answer Yes to this question, even if the tenants do not pay it themselves."
question_text: "Does the household pay rent or other charges for the accommodation?"
period:
page_header: ""
check_answer_label: "Frequency of household rent and charges"
hint_text: "Select how often the household is charged. This may be different to how often they pay."
question_text: "How often does the household pay rent and other charges?"
care_home:
page_header: ""
is_carehome:
check_answer_label: "Care home accommodation"
hint_text: ""
question_text: "Is this accommodation a care home?"
chcharge_weekly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every week?"
chcharge_bi_weekly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every 2 weeks?"
chcharge_4_weekly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every 4 weeks?"
chcharge_monthly:
check_answer_label: "Care home charges"
hint_text: ""
question_text: "How much does the household pay every month?"
rent_and_charges:
page_header: "Household rent and charges"
brent:
check_answer_label: "Basic rent"
hint_text: "This is the amount paid before any charges are added for services (for example, hot water or cleaning). Households may receive housing benefit or Universal Credit towards basic rent."
question_text: "What is the basic rent?"
scharge:
check_answer_label: "Service charge"
hint_text: "For example, for cleaning. Households may receive housing benefit or Universal Credit towards the service charge."
question_text: "What is the service charge?"
pscharge:
check_answer_label: "Personal service charge"
hint_text: "For example, for heating or hot water. This doesn’t include housing benefit or Universal Credit."
question_text: "What is the personal service charge?"
supcharg:
check_answer_label: "Support charge"
hint_text: "Any charges made to fund support services included in tenancy agreement."
question_text: "What is the support charge?"
tcharge:
check_answer_label: "Household rent and charges"
hint_text: "This is the total for rent and all charges."
question_text: "Total charge"
hbrentshortfall:
page_header: ""
check_answer_label: "Any outstanding amount for basic rent and charges"
hint_text: "Also known as the ‘outstanding amount’."
question_text: "After the household has received any housing-related benefits, will they still need to pay for rent and charges?"
outstanding_amount:
page_header: ""
tshortfall_known:
check_answer_label: "Do you know the outstanding amount?"
hint_text: "You only need to give an approximate figure."
question_text: "Can you estimate the outstanding amount?"
tshortfall:
check_answer_label: "Estimated outstanding amountt"
hint_text: "Also known as the ‘outstanding amount’."
question_text: "Estimated outstanding amount"
Loading…
Cancel
Save