vendure-ecommerce/vendure

Allocated stock should be reverted when cancelling a fullfillment

Closed this issue · 0 comments

Describe the bug
Cancelling a fullfillment should restore the allocated stock values of the product.

To Reproduce
Steps to reproduce the behavior:

  1. Make an order
  2. Fullfill that order through the Admin panel
  3. Cancel that specific fullfilment

Expected behavior
When cancelling a fullfilment, Vendure should return the stock levels of the fullfilled products to the pre-fullfilled values.

Environment (please complete the following information):

  • @vendure/core version: 1.3.1
  • Nodejs version: v14
  • Database (mysql/postgres etc): Postgres v11