Browse Source

update period mappings

pull/388/head
Kat 3 years ago
parent
commit
6f96cedea6
  1. 126
      config/forms/2021_2022.json
  2. 2
      spec/factories/case_log.rb
  3. 2
      spec/fixtures/complete_case_log.json
  4. 2
      spec/fixtures/exports/case_logs.xml
  5. 4
      spec/fixtures/forms/2021_2022.json

126
config/forms/2021_2022.json

@ -4702,31 +4702,31 @@
"hint_text": "", "hint_text": "",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": { "2": {
"value": "Every 2 weeks" "value": "Every 2 weeks"
}, },
"1": { "3": {
"value": "Every 4 weeks" "value": "Every 4 weeks"
}, },
"2": { "4": {
"value": "Every calendar month" "value": "Every calendar month"
}, },
"3": { "5": {
"value": "Weekly for 50 weeks" "value": "Weekly for 50 weeks"
}, },
"4": { "6": {
"value": "Weekly for 49 weeks" "value": "Weekly for 49 weeks"
}, },
"5": { "7": {
"value": "Weekly for 48 weeks" "value": "Weekly for 48 weeks"
}, },
"6": { "8": {
"value": "Weekly for 47 weeks" "value": "Weekly for 47 weeks"
}, },
"7": { "9": {
"value": "Weekly for 46 weeks" "value": "Weekly for 46 weeks"
}, },
"8": { "1": {
"value": "Weekly for 52 weeks" "value": "Weekly for 52 weeks"
} }
} }
@ -4777,62 +4777,62 @@
}, },
"depends_on": [ "depends_on": [
{ {
"period": 8, "period": 1,
"needstype": 0, "needstype": 0,
"household_charge": 0 "household_charge": 0
}, },
{ {
"period": 8, "period": 1,
"needstype": 0, "needstype": 0,
"household_charge": null "household_charge": null
}, },
{ {
"period": 3, "period": 5,
"needstype": 0, "needstype": 0,
"household_charge": 0 "household_charge": 0
}, },
{ {
"period": 3, "period": 5,
"needstype": 0, "needstype": 0,
"household_charge": null "household_charge": null
}, },
{ {
"period": 4, "period": 6,
"needstype": 0, "needstype": 0,
"household_charge": 0 "household_charge": 0
}, },
{ {
"period": 4, "period": 6,
"needstype": 0, "needstype": 0,
"household_charge": null "household_charge": null
}, },
{ {
"period": 5, "period": 7,
"needstype": 0, "needstype": 0,
"household_charge": 0 "household_charge": 0
}, },
{ {
"period": 5, "period": 7,
"needstype": 0, "needstype": 0,
"household_charge": null "household_charge": null
}, },
{ {
"period": 6, "period": 8,
"needstype": 0, "needstype": 0,
"household_charge": 0 "household_charge": 0
}, },
{ {
"period": 6, "period": 8,
"needstype": 0, "needstype": 0,
"household_charge": null "household_charge": null
}, },
{ {
"period": 7, "period": 9,
"needstype": 0, "needstype": 0,
"household_charge": 0 "household_charge": 0
}, },
{ {
"period": 7, "period": 9,
"needstype": 0, "needstype": 0,
"household_charge": null "household_charge": null
} }
@ -4874,12 +4874,12 @@
}, },
"depends_on": [ "depends_on": [
{ {
"period": 0, "period": 2,
"needstype": 0, "needstype": 0,
"household_charge": 0 "household_charge": 0
}, },
{ {
"period": 0, "period": 2,
"needstype": 0, "needstype": 0,
"household_charge": null "household_charge": null
} }
@ -4921,12 +4921,12 @@
}, },
"depends_on": [ "depends_on": [
{ {
"period": 1, "period": 3,
"needstype": 0, "needstype": 0,
"household_charge": 0 "household_charge": 0
}, },
{ {
"period": 1, "period": 3,
"needstype": 0, "needstype": 0,
"household_charge": null "household_charge": null
} }
@ -4968,12 +4968,12 @@
}, },
"depends_on": [ "depends_on": [
{ {
"period": 2, "period": 4,
"needstype": 0, "needstype": 0,
"household_charge": 0 "household_charge": 0
}, },
{ {
"period": 2, "period": 4,
"needstype": 0, "needstype": 0,
"household_charge": null "household_charge": null
} }
@ -5081,122 +5081,122 @@
}, },
"depends_on": [ "depends_on": [
{ {
"period": 8, "period": 1,
"household_charge": 0, "household_charge": 0,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"period": 8, "period": 1,
"household_charge": null, "household_charge": null,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"period": 3, "period": 5,
"household_charge": 0, "household_charge": 0,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"period": 3, "period": 5,
"household_charge": null, "household_charge": null,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"period": 4, "period": 6,
"household_charge": 0, "household_charge": 0,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"period": 4, "period": 6,
"household_charge": null, "household_charge": null,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"period": 5, "period": 7,
"household_charge": 0, "household_charge": 0,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"period": 5, "period": 7,
"household_charge": null, "household_charge": null,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"period": 6, "period": 8,
"household_charge": 0, "household_charge": 0,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"period": 6, "period": 8,
"household_charge": null, "household_charge": null,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"period": 7, "period": 9,
"household_charge": 0, "household_charge": 0,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"period": 7, "period": 9,
"household_charge": null, "household_charge": null,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"period": 8, "period": 1,
"household_charge": 0, "household_charge": 0,
"is_carehome": null "is_carehome": null
}, },
{ {
"period": 8, "period": 1,
"household_charge": null, "household_charge": null,
"is_carehome": null "is_carehome": null
}, },
{ {
"period": 3, "period": 5,
"household_charge": 0, "household_charge": 0,
"is_carehome": null "is_carehome": null
}, },
{ {
"period": 3, "period": 5,
"household_charge": null, "household_charge": null,
"is_carehome": null "is_carehome": null
}, },
{ {
"period": 4, "period": 6,
"household_charge": 0, "household_charge": 0,
"is_carehome": null "is_carehome": null
}, },
{ {
"period": 4, "period": 6,
"household_charge": null, "household_charge": null,
"is_carehome": null "is_carehome": null
}, },
{ {
"period": 5, "period": 7,
"household_charge": 0, "household_charge": 0,
"is_carehome": null "is_carehome": null
}, },
{ {
"period": 5, "period": 7,
"household_charge": null, "household_charge": null,
"is_carehome": null "is_carehome": null
}, },
{ {
"period": 6, "period": 8,
"household_charge": 0, "household_charge": 0,
"is_carehome": null "is_carehome": null
}, },
{ {
"period": 6, "period": 8,
"household_charge": null, "household_charge": null,
"is_carehome": null "is_carehome": null
}, },
{ {
"period": 7, "period": 9,
"household_charge": 0, "household_charge": 0,
"is_carehome": null "is_carehome": null
}, },
{ {
"period": 7, "period": 9,
"household_charge": null, "household_charge": null,
"is_carehome": null "is_carehome": null
} }
@ -5305,22 +5305,22 @@
"depends_on": [ "depends_on": [
{ {
"household_charge": 0, "household_charge": 0,
"period": 0, "period": 2,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"household_charge": null, "household_charge": null,
"period": 0, "period": 2,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"household_charge": 0, "household_charge": 0,
"period": 0, "period": 2,
"is_carehome": null "is_carehome": null
}, },
{ {
"household_charge": null, "household_charge": null,
"period": 0, "period": 2,
"is_carehome": null "is_carehome": null
} }
] ]
@ -5428,22 +5428,22 @@
"depends_on": [ "depends_on": [
{ {
"household_charge": 0, "household_charge": 0,
"period": 1, "period": 3,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"household_charge": null, "household_charge": null,
"period": 1, "period": 3,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"household_charge": 0, "household_charge": 0,
"period": 1, "period": 3,
"is_carehome": null "is_carehome": null
}, },
{ {
"household_charge": null, "household_charge": null,
"period": 1, "period": 3,
"is_carehome": null "is_carehome": null
} }
] ]
@ -5551,22 +5551,22 @@
"depends_on": [ "depends_on": [
{ {
"household_charge": 0, "household_charge": 0,
"period": 2, "period": 4,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"household_charge": null, "household_charge": null,
"period": 2, "period": 4,
"is_carehome": 0 "is_carehome": 0
}, },
{ {
"household_charge": 0, "household_charge": 0,
"period": 2, "period": 4,
"is_carehome": null "is_carehome": null
}, },
{ {
"household_charge": null, "household_charge": null,
"period": 2, "period": 4,
"is_carehome": null "is_carehome": null
} }
] ]

2
spec/factories/case_log.rb

@ -68,7 +68,7 @@ FactoryBot.define do
earnings { 68 } earnings { 68 }
incfreq { 0 } incfreq { 0 }
benefits { 1 } benefits { 1 }
period { 0 } period { 2 }
brent { 200 } brent { 200 }
scharge { 50 } scharge { 50 }
pscharge { 40 } pscharge { 40 }

2
spec/fixtures/complete_case_log.json vendored

@ -76,7 +76,7 @@
"incfreq": 0, "incfreq": 0,
"benefits": 1, "benefits": 1,
"hb": 1, "hb": 1,
"period": 0, "period": 2,
"brent": 200, "brent": 200,
"scharge": 50, "scharge": 50,
"pscharge": 40, "pscharge": 40,

2
spec/fixtures/exports/case_logs.xml vendored

@ -54,7 +54,7 @@
<earnings>68</earnings> <earnings>68</earnings>
<incfreq>0</incfreq> <incfreq>0</incfreq>
<benefits>1</benefits> <benefits>1</benefits>
<period>0</period> <period>2</period>
<layear>2</layear> <layear>2</layear>
<lawaitlist>1</lawaitlist> <lawaitlist>1</lawaitlist>
<property_postcode>NW1 5TY</property_postcode> <property_postcode>NW1 5TY</property_postcode>

4
spec/fixtures/forms/2021_2022.json vendored

@ -641,10 +641,10 @@
"header": "Which period are rent and other charges due?", "header": "Which period are rent and other charges due?",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": { "2": {
"value": "Weekly for 52 weeks" "value": "Weekly for 52 weeks"
}, },
"1": { "3": {
"value": "Every 2 weeks" "value": "Every 2 weeks"
} }
} }

Loading…
Cancel
Save