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

Instance Method Details

#amount_calculatorAmountCalculator

The calculator used to calculate how much this discount should apply to the order.

Returns:



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