Browse Source

Update duplicate page id

pull/2549/head
Kat 2 years ago committed by kosiakkatrina
parent
commit
47745dc833
  1. 4
      app/models/form/sales/subsections/shared_ownership_scheme.rb
  2. 2
      spec/models/form/sales/subsections/shared_ownership_scheme_spec.rb

4
app/models/form/sales/subsections/shared_ownership_scheme.rb

@ -43,8 +43,8 @@ class Form::Sales::Subsections::SharedOwnershipScheme < ::Form::Subsection
(Form::Sales::Pages::Deposit.new("deposit_shared_ownership_optional", nil, self, ownershipsch: 1, optional: true) if form.start_year_after_2024?),
Form::Sales::Pages::DepositValueCheck.new("deposit_joint_purchase_value_check", nil, self, joint_purchase: true),
Form::Sales::Pages::DepositValueCheck.new("deposit_value_check", nil, self, joint_purchase: false),
Form::Sales::Pages::DepositDiscount.new("discount", nil, self, optional: false),
(Form::Sales::Pages::DepositDiscount.new("discount_optional", nil, self, optional: true) if form.start_year_after_2024?),
Form::Sales::Pages::DepositDiscount.new("deposit_discount", nil, self, optional: false),
(Form::Sales::Pages::DepositDiscount.new("deposit_discount_optional", nil, self, optional: true) if form.start_year_after_2024?),
Form::Sales::Pages::SharedOwnershipDepositValueCheck.new("shared_ownership_deposit_value_check", nil, self),
Form::Sales::Pages::MonthlyRent.new(nil, nil, self),
Form::Sales::Pages::LeaseholdCharges.new("leasehold_charges_shared_ownership", nil, self, ownershipsch: 1),

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

@ -52,7 +52,7 @@ RSpec.describe Form::Sales::Subsections::SharedOwnershipScheme, type: :model do
deposit_shared_ownership
deposit_joint_purchase_value_check
deposit_value_check
discount
deposit_discount
shared_ownership_deposit_value_check
monthly_rent
leasehold_charges_shared_ownership

Loading…
Cancel
Save