StockItem
. This gives good performance for stores with large inventories. Back-ordered, sold, or shipped products are stored as individual InventoryUnit
objects so they can have relevant information attached to them.Spree::Config[:track_inventory_levels]
to false
and you never have to worry about it.StockLocation
has many stock_items
and stock_movements
.StockItem
will be added to the newly created StockLocation
for each variant in your application.