Browse Source

put rsnvac as array of possibilities dependson

pull/95/head
magicmilo 3 years ago
parent
commit
b1c3cae3be
  1. 2
      app/constants/db_enums.rb
  2. 3
      config/forms/2021_2022.json
  3. 9
      spec/fixtures/complete_case_log.json

2
app/constants/db_enums.rb

@ -192,7 +192,7 @@ module DbEnums
"Tenant moved to other social housing provider" => 12,
"Tenant abandoned property" => 6,
"Tenant moved to private sector or other accommodation" => 8,
"Relet wdto tenant who occupied same property as temporary accommodation" => 9,
"Relet to tenant who occupied same property as temporary accommodation" => 9,
"Internal transfer (excluding renewals of a fixed-term tenancy)" => 13,
"Renewal of fixed-term tenancy" => 14,
"Tenant moved to care home" => 18,

3
config/forms/2021_2022.json

@ -1736,8 +1736,7 @@
},
"depends_on": {
"renewal": "No",
"rsnvac": "First let of conversion, rehabilitation or acquired property?",
"rsnvac": "First let of leased property"
"rsnvac": ["First let of conversion, rehabilitation or acquired property?", "First let of leased property"]
}
}
}

9
spec/fixtures/complete_case_log.json vendored

@ -57,13 +57,13 @@
"la": "Barnet",
"property_postcode": "NW1 5TY",
"property_relet": "No",
"rsnvac": "Renewal of fixed-term tenancy",
"rsnvac": "First let of newbuild property",
"property_reference": "P9876",
"unittype_gn": "House",
"property_building_type": "dummy",
"beds": 3,
"property_void_date": "03/11/2019",
"majorrepairs": "Yes",
"majorrepairs": "No",
"mrcdate": "05/05/2020",
"mrcday": 5,
"mrcmonth": 5,
@ -139,11 +139,10 @@
"do_you_know_the_local_authority": "No",
"why_dont_you_know_la": "Forgot",
"first_time_property_let_as_social_housing": "Yes",
"type_property_most_recently_let_as": "",
"type_property_most_recently_let_as": "Affordable rent basis",
"property_number_of_times_relet_social_let": "1",
"builtype": "",
"builtype": "Purpose built",
"property_wheelchair_accessible": "Yes",
"property_number_of_bedrooms": 2,
"void_or_renewal_date": "05/05/2020",
"new_build_handover_date": "01/01/2019"
}

Loading…
Cancel
Save