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 }.freeze
NET_INCOME_KNOWN = { NET_INCOME_KNOWN = {
"Weekly" => 0, "Yes" => 0,
"Monthly" => 1, "No" => 1,
"Annually" => 2, "Tenant prefers not to say" => 2,
"Tenant prefers not to say" => 3, "Don’t know" => 3,
"Don’t know" => 4,
}.freeze }.freeze
HAS_BENEFITS_OPTIONS = ["Housing benefit", HAS_BENEFITS_OPTIONS = ["Housing benefit",

15
config/forms/2021_2022.json

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

2
spec/factories/case_log.rb

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

Loading…
Cancel
Save