Sha256: 7b2be3ac6619a44c92fb65ea52a2caa55c1027b2edc71859ccbda9d7d79bc8f0
Contents?: true
Size: 754 Bytes
Versions: 34
Compression:
Stored size: 754 Bytes
Contents
module Workarea module Admin module Discounts class OrderTotalViewModel < DiscountViewModel def condition_options [ [ t('workarea.admin.pricing_discounts.options.for_everyone'), nil ], [ t('workarea.admin.pricing_discounts.options.when_order_total'), 'order_total' ], [ t('workarea.admin.pricing_discounts.options.when_user_is_tagged'), 'user_tag' ] ] end def selected_condition_option if order_total? 'order_total' elsif user_tag? 'user_tag' end end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems