diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index 8aac7ff8f..3cc0601e6 100644 --- a/config/forms/2021_2022.json +++ b/config/forms/2021_2022.json @@ -60,23 +60,6 @@ }, "depends_on": [{ "gdpr_acceptance": "Yes" }] }, - "sale_or_letting": { - "header": "", - "description": "", - "questions": { - "sale_or_letting": { - "check_answer_label": "Letting or sale", - "header": "Is this a letting or sale?", - "hint_text": "", - "type": "radio", - "answer_options": { - "1": "Letting", - "0": "Sale" - } - } - }, - "depends_on": [{ "gdpr_acceptance": "Yes" }] - }, "tenant_same_property_renewal": { "header": "", "description": "", @@ -93,8 +76,7 @@ } }, "depends_on": [{ - "gdpr_acceptance": "Yes", - "sale_or_letting": "Letting" + "gdpr_acceptance": "Yes" }] }, "startdate": { @@ -109,8 +91,7 @@ } }, "depends_on": [{ - "gdpr_acceptance": "Yes", - "sale_or_letting": "Letting" + "gdpr_acceptance": "Yes" }] }, "about_this_letting": { @@ -153,8 +134,7 @@ } }, "depends_on": [{ - "gdpr_acceptance": "Yes", - "sale_or_letting": "Letting" + "gdpr_acceptance": "Yes" }] }, "tenant_code": { @@ -170,8 +150,7 @@ } }, "depends_on": [{ - "gdpr_acceptance": "Yes", - "sale_or_letting": "Letting" + "gdpr_acceptance": "Yes" }] }, "property_reference": { @@ -187,39 +166,6 @@ } }, "depends_on": [{ "gdpr_acceptance": "Yes" }] - }, - "sale_completion_date": { - "header": "", - "description": "", - "questions": { - "sale_completion_date": { - "check_answer_label": "Sale completion date", - "header": "What is the sale completion date?", - "hint_text": "For example, 27 3 2021.", - "type": "date" - } - }, - "depends_on": [{ - "gdpr_acceptance": "Yes", - "sale_or_letting": "Sale" - }] - }, - "purchaser_code": { - "header": "", - "description": "", - "questions": { - "purchaser_code": { - "check_answer_label": "Purchaser code", - "header": "What is the purchaser code?", - "hint_text": "", - "type": "text", - "width": 10 - } - }, - "depends_on": [{ - "gdpr_acceptance": "Yes", - "sale_or_letting": "Sale" - }] } } } diff --git a/spec/factories/case_log.rb b/spec/factories/case_log.rb index 8fc0b4958..229760a38 100644 --- a/spec/factories/case_log.rb +++ b/spec/factories/case_log.rb @@ -4,7 +4,6 @@ FactoryBot.define do managing_organisation { FactoryBot.create(:organisation) } trait :about_completed do gdpr_acceptance { "Yes" } - sale_or_letting { "Letting" } tenant_same_property_renewal { "No" } needstype { 1 } rent_type { 1 } @@ -117,7 +116,6 @@ FactoryBot.define do gdpr_declined { "No" } property_owner_organisation { "Test" } property_manager_organisation { "Test" } - sale_or_letting { "Letting" } tenant_same_property_renewal { 1 } rent_type { 1 } intermediate_rent_product_name { 2 } diff --git a/spec/fixtures/complete_case_log.json b/spec/fixtures/complete_case_log.json index 29b926456..4b8d2105c 100644 --- a/spec/fixtures/complete_case_log.json +++ b/spec/fixtures/complete_case_log.json @@ -126,7 +126,6 @@ "gdpr_declined": "", "property_owner_organisation": "", "property_manager_organisation": "", - "sale_or_letting": "", "rent_type": "Social Rent", "intermediate_rent_product_name": "", "needstype": "General needs", diff --git a/spec/fixtures/forms/2022_2023.json b/spec/fixtures/forms/2022_2023.json index 602742c26..b375f0982 100644 --- a/spec/fixtures/forms/2022_2023.json +++ b/spec/fixtures/forms/2022_2023.json @@ -31,23 +31,6 @@ }, "depends_on": [{ "gdpr_acceptance": "No" }] }, - "sale_or_letting": { - "header": "", - "description": "", - "questions": { - "sale_or_letting": { - "check_answer_label": "Letting or sale", - "header": "Is this a letting or sale?", - "hint_text": "", - "type": "radio", - "answer_options": { - "1": "Letting", - "0": "Sale" - } - } - }, - "depends_on": [{ "gdpr_acceptance": "Yes" }] - }, "tenant_same_property_renewal": { "header": "", "description": "", @@ -63,7 +46,9 @@ } } }, - "depends_on": [{ "gdpr_acceptance": "Yes", "sale_or_letting": "Letting" }] + "depends_on": [{ + "gdpr_acceptance": "Yes" + }] }, "startdate": { "header": "", @@ -76,7 +61,9 @@ "type": "date" } }, - "depends_on": [{ "gdpr_acceptance": "Yes", "sale_or_letting": "Letting" }] + "depends_on": [{ + "gdpr_acceptance": "Yes" + }] }, "about_this_letting": { "header": "Tell us about this letting", @@ -115,34 +102,9 @@ } } }, - "depends_on": [{ "gdpr_acceptance": "Yes", "sale_or_letting": "Letting" }] - }, - "sale_completion_date": { - "header": "", - "description": "", - "questions": { - "sale_completion_date": { - "check_answer_label": "Sale completion date", - "header": "What is the sale completion date?", - "hint_text": "For example, 27 3 2007", - "type": "date" - } - }, - "depends_on": [{ "gdpr_acceptance": "Yes", "sale_or_letting": "Sale" }] - }, - "purchaser_code": { - "header": "", - "description": "", - "questions": { - "purchaser_code": { - "check_answer_label": "Purchaser code", - "header": "What is the purchaser code?", - "hint_text": "", - "type": "text", - "width": 10 - } - }, - "depends_on": [{ "gdpr_acceptance": "Yes", "sale_or_letting": "Sale" }] + "depends_on": [{ + "gdpr_acceptance": "Yes" + }] } } }