Class: Spree::OrderStockLocation
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Spree::OrderStockLocation
- Defined in:
- app/models/spree/order_stock_location.rb
Class Method Summary collapse
Instance Method Summary collapse
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) self.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! self.update_attributes!(shipment_fulfilled: true) end |