Browse Source

Cldc 1235 conditional shortfall (#824)

* Add outstanding amount conditionally and update check-answers

* Duplicate changes on 2021_2022.json

* Fix mis-commit
pull/825/head
natdeanlewissoftwire 2 years ago committed by GitHub
parent
commit
1b6e6938ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      config/forms/2021_2022.json
  2. 25
      config/forms/2022_2023.json

25
config/forms/2021_2022.json

@ -7887,17 +7887,15 @@
}
]
},
"outstanding_amount_known": {
"outstanding_amount": {
"header": "",
"description": "",
"questions": {
"tshortfall_known": {
"check_answer_label": "",
"header": "",
"hint_text": "",
"hidden_in_check_answers": true,
"check_answer_label": "Do you know the outstanding amount?",
"header": "Can you estimate the outstanding amount?",
"hint_text": "You only need to give an approximate figure.",
"type": "radio",
"derived": true,
"answer_options": {
"0": {
"value": "Yes"
@ -7905,19 +7903,14 @@
"1": {
"value": "No"
}
},
"conditional_for": {
"tshortfall": [0]
}
}
},
"depends_on": [false]
},
"outstanding_amount": {
"header": "",
"description": "",
"questions": {
},
"tshortfall": {
"check_answer_label": "Estimated outstanding amount",
"header": "What do you expect the outstanding amount to be?",
"hint_text": "Give an estimated amount if you don’t know the exact figure.",
"header": "Estimated outstanding amount",
"type": "numeric",
"min": 0,
"step": 0.01,

25
config/forms/2022_2023.json

@ -7819,17 +7819,15 @@
}
]
},
"outstanding_amount_known": {
"outstanding_amount": {
"header": "",
"description": "",
"questions": {
"tshortfall_known": {
"check_answer_label": "",
"header": "",
"hint_text": "",
"hidden_in_check_answers": true,
"check_answer_label": "Do you know the outstanding amount?",
"header": "Can you estimate the outstanding amount?",
"hint_text": "You only need to give an approximate figure.",
"type": "radio",
"derived": true,
"answer_options": {
"0": {
"value": "Yes"
@ -7837,19 +7835,14 @@
"1": {
"value": "No"
}
},
"conditional_for": {
"tshortfall": [0]
}
}
},
"depends_on": [false]
},
"outstanding_amount": {
"header": "",
"description": "",
"questions": {
},
"tshortfall": {
"check_answer_label": "Estimated outstanding amount",
"header": "What do you expect the outstanding amount to be?",
"hint_text": "Give an estimated amount if you don’t know the exact figure.",
"header": "Estimated outstanding amount",
"type": "numeric",
"min": 0,
"step": 0.01,

Loading…
Cancel
Save