Browse Source

fix rebase conflicts

pull/1214/head
Arthur Campbell 3 years ago
parent
commit
3a436a5e4e
  1. 6
      app/models/validations/sales/soft_validations.rb
  2. 1
      spec/models/form/sales/subsections/outright_sale_spec.rb
  3. 1
      spec/models/form/sales/subsections/shared_ownership_scheme_spec.rb

6
app/models/validations/sales/soft_validations.rb

@ -64,4 +64,10 @@ module Validations::Sales::SoftValidations
!grant.between?(9_000, 16_000) !grant.between?(9_000, 16_000)
end end
def extra_borrowing_expected?
return unless extrabor && mortgage && deposit && value && cashdis
mortgage + deposit > value - value * discount / 100
end
end end

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

@ -21,6 +21,7 @@ RSpec.describe Form::Sales::Subsections::OutrightSale, type: :model do
mortgage_lender_other_outright_sale mortgage_lender_other_outright_sale
mortgage_length_outright_sale mortgage_length_outright_sale
extra_borrowing_outright_sale extra_borrowing_outright_sale
extra_borrowing_value_check_outright_sale
about_deposit_outright_sale about_deposit_outright_sale
outright_sale_deposit_value_check outright_sale_deposit_value_check
leasehold_charges_outright_sale leasehold_charges_outright_sale

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

@ -35,6 +35,7 @@ RSpec.describe Form::Sales::Subsections::SharedOwnershipScheme, type: :model do
mortgage_lender_other_shared_ownership mortgage_lender_other_shared_ownership
mortgage_length_shared_ownership mortgage_length_shared_ownership
extra_borrowing_shared_ownership extra_borrowing_shared_ownership
extra_borrowing_value_check_shared_ownership
about_deposit_with_discount about_deposit_with_discount
about_deposit_shared_ownership about_deposit_shared_ownership
deposit_value_check deposit_value_check

Loading…
Cancel
Save