Browse Source

Change net income known question

pull/273/head
MadeTech Dushan 3 years ago
parent
commit
cb7ba3d968
  1. 9
      app/models/constants/case_log.rb
  2. 15
      config/forms/2021_2022.json
  3. 2
      spec/factories/case_log.rb

9
app/models/constants/case_log.rb

@ -1071,11 +1071,10 @@ module Constants::CaseLog
}.freeze
NET_INCOME_KNOWN = {
"Weekly" => 0,
"Monthly" => 1,
"Annually" => 2,
"Tenant prefers not to say" => 3,
"Don’t know" => 4,
"Yes" => 0,
"No" => 1,
"Tenant prefers not to say" => 2,
"Don’t know" => 3,
}.freeze
HAS_BENEFITS_OPTIONS = ["Housing benefit",

15
config/forms/2021_2022.json

@ -2292,22 +2292,21 @@
"depends_on": [{ "setup": "completed" }],
"pages": {
"net_income_known": {
"header": "Household’s combined income",
"header": "Do you know the household’s combined income?",
"description": "",
"questions": {
"net_income_known": {
"check_answer_label": "How often household receives income",
"header": "How often does the household receive income?",
"check_answer_label": "Do you know the household’s combined income?",
"header": "Do you know the household’s combined income?",
"guidance_partial": "what_counts_as_income",
"hint_text": "",
"type": "radio",
"answer_options": {
"0": "Weekly",
"1": "Monthly",
"2": "Annually",
"0": "Yes",
"1": "No",
"divider_a": true,
"3": "Don’t know",
"4": "Tenant prefers not to say"
"2": "Don’t know",
"3": "Tenant prefers not to say"
}
}
}

2
spec/factories/case_log.rb

@ -110,7 +110,7 @@ FactoryBot.define do
discarded_at { nil }
tenancyother { nil }
override_net_income_validation { nil }
net_income_known { "Weekly" }
net_income_known { "Yes" }
property_owner_organisation { "Test" }
property_manager_organisation { "Test" }
renewal { 1 }

Loading…
Cancel
Save