Where it usually breaks
And how to keep it from happening.
- On-hand is read as entirely free. Include active holds in the decision before reserving more stock.
- Another request takes the same remaining quantity. Inspect the action's actual result and retain the failed shortfall evidence when the available amount has changed.
- A cancelled request still appears committed. Check that its held reservation was released by the correction or cancellation action.