Browse Source

Move sales staircasing question (#2777)

* Change order

* Update test
pull/2783/head
Manny Dinssa 1 month ago committed by GitHub
parent
commit
c8a36fd3a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/models/form/sales/subsections/setup.rb
  2. 2
      spec/models/form/sales/subsections/setup_spec.rb

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

@ -13,8 +13,8 @@ class Form::Sales::Subsections::Setup < ::Form::Subsection
Form::Sales::Pages::CreatedBy.new(nil, nil, self),
Form::Sales::Pages::PurchaserCode.new(nil, nil, self),
Form::Sales::Pages::OwnershipScheme.new(nil, nil, self),
(Form::Sales::Pages::Staircase.new(nil, nil, self) if form.start_year_2025_or_later?),
Form::Sales::Pages::SharedOwnershipType.new(nil, nil, self),
(Form::Sales::Pages::Staircase.new(nil, nil, self) if form.start_year_2025_or_later?),
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::BuyerCompany.new(nil, nil, self) unless form.start_year_2025_or_later?),

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

@ -93,8 +93,8 @@ RSpec.describe Form::Sales::Subsections::Setup, type: :model do
assigned_to
purchaser_code
ownership_scheme
staircasing
shared_ownership_type
staircasing
discounted_ownership_type
joint_purchase
number_joint_buyers

Loading…
Cancel
Save