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
718 B
24 lines
718 B
class Form::Sales::Questions::PurchasePrice < ::Form::Question |
|
def initialize(id, hsh, page, ownershipsch:) |
|
super(id, hsh, page) |
|
@id = "value" |
|
@check_answer_label = "Purchase price" |
|
@header = "What is the full purchase price?" |
|
@type = "numeric" |
|
@min = 0 |
|
@width = 5 |
|
@prefix = "£" |
|
@hint_text = "For all schemes, including Right to Acquire (RTA), Right to Buy (RTB), Voluntary Right to Buy (VRTB) or Preserved Right to Buy (PRTB) sales, enter the full price of the property without any discount" |
|
@ownership_sch = ownershipsch |
|
@question_number = question_number |
|
end |
|
|
|
def question_number |
|
case @ownership_sch |
|
when 2 |
|
100 |
|
when 3 |
|
110 |
|
end |
|
end |
|
end
|
|
|