|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
class Form::Sales::Pages::PercentageDiscountValueCheck < ::Form::Page |
|
|
|
|
def initialize(id, hsh, subsection) |
|
|
|
|
super |
|
|
|
|
@depends_on = [{ "percentage_discount_invalid?" => true }] |
|
|
|
|
@copy_key = "sales.soft_validations.percentage_discount_value_check" |
|
|
|
|
@title_text = { |
|
|
|
|
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.title_text", |
|
|
|
|
"arguments" => [{ "key" => "discount", "label" => true, "i18n_template" => "discount" }], |
|
|
|
@ -9,7 +11,6 @@ class Form::Sales::Pages::PercentageDiscountValueCheck < ::Form::Page
|
|
|
|
|
"translation" => "forms.#{form.start_date.year}.#{@copy_key}.hint_text", |
|
|
|
|
"arguments" => [], |
|
|
|
|
} |
|
|
|
|
@depends_on = [{ "percentage_discount_invalid?" => true }] |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def questions |
|
|
|
|