Class: Spree::OrderPromotion

Inherits:
Object
  • Object
show all
Extended by:
DisplayMoney
Defined in:
app/models/spree/order_promotion.rb

Instance Method Summary collapse

Methods included from DisplayMoney

money_methods

Instance Method Details

#amountObject



15
16
17
# File 'app/models/spree/order_promotion.rb', line 15

def amount
  order.all_adjustments.promotion.where(source: promotion.actions).sum(:amount)
end