Class: Spree::OrderStockLocation
- Defined in:
- app/models/spree/order_stock_location.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#initialize_preference_defaults, page, preference
Methods included from Preferences::Preferable
#default_preferences, #defined_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_type, #set_preference
Class Method Details
.fulfill_for_order_with_stock_location(order, stock_location) ⇒ Object
7 8 9 |
# File 'app/models/spree/order_stock_location.rb', line 7 def self.fulfill_for_order_with_stock_location(order, stock_location) where(order_id: order.id, stock_location_id: stock_location.id).each(&:fulfill_shipment!) end |
Instance Method Details
#fulfill_shipment! ⇒ Object
11 12 13 |
# File 'app/models/spree/order_stock_location.rb', line 11 def fulfill_shipment! update_attributes!(shipment_fulfilled: true) end |