Module: Workarea::Pricing::Discount::FlatOrPercentOff
- Extended by:
- ActiveSupport::Concern
- Included in:
- Category, OrderTotal, Product, ProductAttribute
- Defined in:
- app/models/workarea/pricing/discount/flat_or_percent_off.rb
Constant Summary collapse
- AMOUNT_TYPES =
%i(percent flat)
Instance Method Summary collapse
-
#amount_calculator ⇒ AmountCalculator
The calculator used to calculate how much this discount should apply to the order.
Instance Method Details
#amount_calculator ⇒ AmountCalculator
The calculator used to calculate how much this discount should apply to the order.
41 42 43 |
# File 'app/models/workarea/pricing/discount/flat_or_percent_off.rb', line 41 def amount_calculator @amount_calculator ||= AmountCalculator.new(self) end |