9 changed files with 1 additions and 65 deletions
@ -1,23 +0,0 @@ |
|||||||
class Form::Sales::Pages::ExtraBorrowingValueCheck < Form::Page |
|
||||||
def initialize(id, hsh, subsection) |
|
||||||
super |
|
||||||
@depends_on = [ |
|
||||||
{ |
|
||||||
"extra_borrowing_expected?" => true, |
|
||||||
}, |
|
||||||
] |
|
||||||
@title_text = { |
|
||||||
"translation" => "soft_validations.extra_borrowing.title", |
|
||||||
} |
|
||||||
@informative_text = { |
|
||||||
"translation" => "soft_validations.extra_borrowing.hint_text", |
|
||||||
"arguments" => [], |
|
||||||
} |
|
||||||
end |
|
||||||
|
|
||||||
def questions |
|
||||||
@questions ||= [ |
|
||||||
Form::Sales::Questions::ExtraBorrowingValueCheck.new(nil, nil, self), |
|
||||||
] |
|
||||||
end |
|
||||||
end |
|
||||||
@ -1,23 +0,0 @@ |
|||||||
class Form::Sales::Questions::ExtraBorrowingValueCheck < ::Form::Question |
|
||||||
def initialize(id, hsh, page) |
|
||||||
super(id, hsh, page) |
|
||||||
@id = "extrabor_value_check" |
|
||||||
@check_answer_label = "Extra borrowing confirmation" |
|
||||||
@type = "interruption_screen" |
|
||||||
@answer_options = { |
|
||||||
"0" => { "value" => "Yes" }, |
|
||||||
"1" => { "value" => "No" }, |
|
||||||
} |
|
||||||
@hidden_in_check_answers = { |
|
||||||
"depends_on" => [ |
|
||||||
{ |
|
||||||
"extrabor_value_check" => 0, |
|
||||||
}, |
|
||||||
{ |
|
||||||
"extrabor_value_check" => 1, |
|
||||||
}, |
|
||||||
], |
|
||||||
} |
|
||||||
@header = "Are you sure this there is no extra borrowing?" |
|
||||||
end |
|
||||||
end |
|
||||||
@ -1,7 +0,0 @@ |
|||||||
class AddExtraBorrowingValueCheckToSales < ActiveRecord::Migration[7.0] |
|
||||||
def change |
|
||||||
change_table :sales_logs, bulk: true do |t| |
|
||||||
t.column :extrabor_value_check, :integer |
|
||||||
end |
|
||||||
end |
|
||||||
end |
|
||||||
Loading…
Reference in new issue