This is a core package of Reaction Commerce and provides
- Inventory Collection and Schema
- reserve inventory when added to Cart
- release inventory when removed from cart
- backorder inventory when no inventory exists
- creates inventory, adjusts inventory on product variant update
- deleted inventory when variant removed
meteor add reactioncommerce:reaction-inventory
VELOCITY_TEST_PACKAGES=1 meteor test-packages --port 3006 reactioncommerce:reaction-inventory
Sets matching inventory Inventory.workflow.status
to a new status. Defaults to new
to reserved
.
Accepts a status and currentStatus. Used to reset status on inventory item. Defaults to "new".
Resets reserved
ReactionCore.Schemas.CartItem objects to new
.
Set reserved
status ReactionCore.Schemas.CartItem object.
Set backorder
status for a ReactionCore.Schemas.CartItem object.
WIP - will be used to send email notifications on low inventory levels.
Check a ReactionCore.Schemas.Product
object and update Inventory
collection with inventory documents.
Adjusts existing ReactionCore.Schemas.Product
documents when changes are made we get the inventoryQuantity for each product variant,and compare the qty to the qty in the inventory records we will add inventoryItems as needed to have the same amount as the inventoryQuantity but when deleting, we'll refuse to delete anything not workflow.status="new".
Remove an inventory item permanently
Set status of inventory to shipped
.
Set status of returned inventory to return
.
Set status of return
items to new
.