Class: SpreeCmCommissioner::PricingActions::CreateGuestAdjustments
- Inherits:
-
SpreeCmCommissioner::PricingAction
- Object
- Spree::Base
- Base
- SpreeCmCommissioner::PricingAction
- SpreeCmCommissioner::PricingActions::CreateGuestAdjustments
- Defined in:
- app/models/spree_cm_commissioner/pricing_actions/create_guest_adjustments.rb
Instance Method Summary collapse
Methods inherited from SpreeCmCommissioner::PricingAction
available_calculator_types, #compute_amount
Instance Method Details
#perform(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'app/models/spree_cm_commissioner/pricing_actions/create_guest_adjustments.rb', line 4 def perform( = {}) line_items = extract_line_items() return if pricing_rule_group.pricing_rules.blank? return if line_items.blank? line_items.each do |line_item| perform_for_line_item(line_item) end end |