Browse Source

CLDC-3718: Sales - Remove Q10 (Will any buyers live in the property?) (25/26) (#2757)

pull/2751/head^2
Manny Dinssa 1 month ago committed by GitHub
parent
commit
3125171edf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/models/form/sales/subsections/setup.rb
  2. 6
      config/locales/forms/2025/sales/setup.en.yml
  3. 1
      spec/models/form/sales/subsections/setup_spec.rb

2
app/models/form/sales/subsections/setup.rb

@ -17,7 +17,7 @@ class Form::Sales::Subsections::Setup < ::Form::Subsection
Form::Sales::Pages::DiscountedOwnershipType.new(nil, nil, self), Form::Sales::Pages::DiscountedOwnershipType.new(nil, nil, self),
(Form::Sales::Pages::OutrightOwnershipType.new(nil, nil, self) unless form.start_year_2025_or_later?), (Form::Sales::Pages::OutrightOwnershipType.new(nil, nil, self) unless form.start_year_2025_or_later?),
Form::Sales::Pages::BuyerCompany.new(nil, nil, self), Form::Sales::Pages::BuyerCompany.new(nil, nil, self),
Form::Sales::Pages::BuyerLive.new(nil, nil, self), (Form::Sales::Pages::BuyerLive.new(nil, nil, self) unless form.start_year_2025_or_later?),
Form::Sales::Pages::JointPurchase.new(nil, nil, self), Form::Sales::Pages::JointPurchase.new(nil, nil, self),
Form::Sales::Pages::NumberJointBuyers.new(nil, nil, self), Form::Sales::Pages::NumberJointBuyers.new(nil, nil, self),
(Form::Sales::Pages::BuyerInterview.new("buyer_interview_joint_purchase", nil, self, joint_purchase: true) if form.start_year_2024_or_later?), (Form::Sales::Pages::BuyerInterview.new("buyer_interview_joint_purchase", nil, self, joint_purchase: true) if form.start_year_2024_or_later?),

6
config/locales/forms/2025/sales/setup.en.yml

@ -57,12 +57,6 @@ en:
hint_text: "" hint_text: ""
question_text: "Is the buyer a company?" question_text: "Is the buyer a company?"
buylivein:
page_header: ""
check_answer_label: "Buyers living in property"
hint_text: ""
question_text: "Will any buyers live in the property?"
jointpur: jointpur:
page_header: "" page_header: ""
check_answer_label: "Joint purchase" check_answer_label: "Joint purchase"

1
spec/models/form/sales/subsections/setup_spec.rb

@ -96,7 +96,6 @@ RSpec.describe Form::Sales::Subsections::Setup, type: :model do
shared_ownership_type shared_ownership_type
discounted_ownership_type discounted_ownership_type
buyer_company buyer_company
buyer_live
joint_purchase joint_purchase
number_joint_buyers number_joint_buyers
buyer_interview_joint_purchase buyer_interview_joint_purchase

Loading…
Cancel
Save