Class: Spree::OrderPromotion
- Inherits:
-
Object
- Object
- Spree::OrderPromotion
- Extended by:
- DisplayMoney
- Defined in:
- app/models/spree/order_promotion.rb
Instance Method Summary collapse
Methods included from DisplayMoney
Instance Method Details
#amount ⇒ Object
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 |