You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
909 B
24 lines
909 B
class Form::Sales::Subsections::OutrightSale < ::Form::Subsection |
|
def initialize(id, hsh, section) |
|
super |
|
@id = "outright_sale" |
|
@label = "Outright sale" |
|
@section = section |
|
@depends_on = [{ "ownershipsch" => 3, "setup_completed?" => true }] |
|
end |
|
|
|
def pages |
|
@pages ||= [ |
|
Form::Sales::Pages::PurchasePrice.new(nil, nil, self), |
|
Form::Sales::Pages::Mortgageused.new("mortgage_used_outright_sale", nil, self), |
|
Form::Sales::Pages::MortgageAmount.new("mortgage_amount_outright_sale", nil, self), |
|
Form::Sales::Pages::AboutDepositWithoutDiscount.new("about_deposit_outright_sale", nil, self), |
|
Form::Sales::Pages::DepositValueCheck.new("outright_sale_deposit_value_check", nil, self), |
|
Form::Sales::Pages::LeaseholdCharges.new("leasehold_charges_outright_sale", nil, self), |
|
] |
|
end |
|
|
|
def displayed_in_tasklist?(log) |
|
log.ownershipsch == 3 |
|
end |
|
end
|
|
|