Module: Spree::AdjustmentSource

Included in:
Promotion::Actions::CreateAdjustment, Promotion::Actions::CreateItemAdjustments, TaxRate
Defined in:
app/models/concerns/spree/adjustment_source.rb

Instance Method Summary collapse

Instance Method Details

#remove_adjustments_from_incomplete_ordersObject



5
6
7
8
9
10
# File 'app/models/concerns/spree/adjustment_source.rb', line 5

def remove_adjustments_from_incomplete_orders
  adjustments.
    joins(:order).
    merge(Spree::Order.incomplete).
    destroy_all
end