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
CustomStockMovementFieldsAn 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
type
property
constructor
method
(input: DeepPartial<Allocation>) => AllocationorderLine
property
OrderLineA Cancellation is created when OrderItems from a fulfilled Order are cancelled.
- Extends:
StockMovement
type
property
constructor
method
(input: DeepPartial<Cancellation>) => CancellationorderLine
property
OrderLineA Release is created when OrderItems which have been allocated (but not yet fulfilled) are cancelled.
- Extends:
StockMovement
A Sale is created when OrderItems are fulfilled.
- Extends:
StockMovement
A StockAdjustment is created when the stockOnHand level of a ProductVariant is manually adjusted.
- Extends:
StockMovement
Was this chapter helpful?