Browse Source

CLDC-1550 Prevent homeless value being inferred when a letting is a renewal (#850)

pull/840/head
David May-Miller 2 years ago committed by GitHub
parent
commit
b06fd7c09b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/models/case_log.rb
  2. 1
      app/models/derived_variables/case_log_variables.rb
  3. 9
      config/forms/2021_2022.json
  4. 9
      config/forms/2022_2023.json

1
app/models/case_log.rb

@ -567,7 +567,6 @@ private
def reset_derived_questions def reset_derived_questions
dependent_questions = { waityear: [{ key: :renewal, value: 0 }], dependent_questions = { waityear: [{ key: :renewal, value: 0 }],
homeless: [{ key: :renewal, value: 0 }],
referral: [{ key: :renewal, value: 0 }], referral: [{ key: :renewal, value: 0 }],
underoccupation_benefitcap: [{ key: :renewal, value: 0 }], underoccupation_benefitcap: [{ key: :renewal, value: 0 }],
wchair: [{ key: :needstype, value: 1 }], wchair: [{ key: :needstype, value: 1 }],

1
app/models/derived_variables/case_log_variables.rb

@ -46,7 +46,6 @@ module DerivedVariables::CaseLogVariables
self.housingneeds = get_housingneeds self.housingneeds = get_housingneeds
if is_renewal? if is_renewal?
self.underoccupation_benefitcap = 2 if collection_start_year == 2021 self.underoccupation_benefitcap = 2 if collection_start_year == 2021
self.homeless = 1
self.referral = 0 self.referral = 0
self.waityear = 2 self.waityear = 2
if is_general_needs? if is_general_needs?

9
config/forms/2021_2022.json

@ -1242,7 +1242,7 @@
"description": "", "description": "",
"questions": { "questions": {
"age1_known": { "age1_known": {
"check_answers_card_number": 1, "check_answers_card_number": 1,
"header": "Do you know the lead tenant’s age?", "header": "Do you know the lead tenant’s age?",
"hint_text": "The ’lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.", "hint_text": "The ’lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type": "radio", "type": "radio",
@ -6209,12 +6209,7 @@
} }
} }
} }
}, }
"depends_on": [
{
"renewal": 0
}
]
}, },
"previous_postcode": { "previous_postcode": {
"header": "", "header": "",

9
config/forms/2022_2023.json

@ -1277,7 +1277,7 @@
"description": "", "description": "",
"questions": { "questions": {
"age1_known": { "age1_known": {
"check_answers_card_number": 1, "check_answers_card_number": 1,
"header": "Do you know the lead tenant’s age?", "header": "Do you know the lead tenant’s age?",
"hint_text": "The ’lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.", "hint_text": "The ’lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.",
"type": "radio", "type": "radio",
@ -6168,12 +6168,7 @@
} }
} }
} }
}, }
"depends_on": [
{
"renewal": 0
}
]
}, },
"previous_postcode": { "previous_postcode": {
"header": "", "header": "",

Loading…
Cancel
Save