StockMovement
StockMovement
A StockMovement is created whenever stock of a particular ProductVariant goes in or out.
-
Extends:
VendureEntity -
Implements: HasCustomFields
type
property
StockMovementTypeproductVariant
property
ProductVariantstockLocation
property
StockLocationstockLocationId
property
IDquantity
property
numbercustomFields
property
CustomStockMovementFieldsAllocation
An Allocation is created for each ProductVariant in an Order when the checkout is completed (as configured by the StockAllocationStrategy. This prevents stock being sold twice.
- Extends:
StockMovement
Cancellation
A Cancellation is created when OrderItems from a fulfilled Order are cancelled.
- Extends:
StockMovement
Release
A Release is created when OrderItems which have been allocated (but not yet fulfilled) are cancelled.
- Extends:
StockMovement
Sale
A Sale is created when OrderItems are fulfilled.
- Extends:
StockMovement
StockAdjustment
A StockAdjustment is created when the stockOnHand level of a ProductVariant is manually adjusted.
- Extends:
StockMovement
Was this chapter helpful?