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. 5
      config/forms/2021_2022.json
  4. 5
      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?

5
config/forms/2021_2022.json

@ -6209,12 +6209,7 @@
} }
} }
} }
},
"depends_on": [
{
"renewal": 0
} }
]
}, },
"previous_postcode": { "previous_postcode": {
"header": "", "header": "",

5
config/forms/2022_2023.json

@ -6168,12 +6168,7 @@
} }
} }
} }
},
"depends_on": [
{
"renewal": 0
} }
]
}, },
"previous_postcode": { "previous_postcode": {
"header": "", "header": "",

Loading…
Cancel
Save