Browse Source

Correct logic for void/renewal/handover dates

pull/316/head
Paul Robert Lloyd 3 years ago
parent
commit
d6a4d5d528
  1. 31
      config/forms/2021_2022.json

31
config/forms/2021_2022.json

@ -73,11 +73,11 @@
"hint_text": "A renewal is a letting to the same tenant in the same property.", "hint_text": "A renewal is a letting to the same tenant in the same property.",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": {
"value": "No"
},
"1": { "1": {
"value": "Yes" "value": "Yes"
},
"0": {
"value": "No"
} }
} }
} }
@ -883,8 +883,11 @@
}, },
"depends_on": [ "depends_on": [
{ {
"rsnvac": "First let of new-build property", "renewal": "No",
"renewal": "No" "rsnvac": [
"First let of conversion, rehabilitation or acquired property",
"First let of leased property"
]
} }
] ]
}, },
@ -902,10 +905,7 @@
"depends_on": [ "depends_on": [
{ {
"renewal": "No", "renewal": "No",
"rsnvac": [ "rsnvac": "First let of new-build property"
"First let of conversion, rehabilitation or acquired property?",
"First let of leased property"
]
} }
] ]
}, },
@ -919,11 +919,11 @@
"hint_text": "Major repairs are works that could not be reasonably carried out with a tenant living at the property. For example, structural repairs.", "hint_text": "Major repairs are works that could not be reasonably carried out with a tenant living at the property. For example, structural repairs.",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": {
"value": "No"
},
"1": { "1": {
"value": "Yes" "value": "Yes"
},
"0": {
"value": "No"
} }
}, },
"conditional_for": { "conditional_for": {
@ -939,8 +939,11 @@
}, },
"depends_on": [ "depends_on": [
{ {
"rsnvac": "First let of new-build property", "renewal": "No",
"renewal": "No" "rsnvac": [
"First let of conversion, rehabilitation or acquired property",
"First let of leased property"
]
} }
] ]
} }

Loading…
Cancel
Save