Where it usually breaks
And how to keep it from happening.
- On-hand quantity is treated as freely available while Held reservations already consume part of it.
- A reservation is recreated instead of replaying its stable operation key.
- An expiry label is accepted without checking the hold's actual outcome and remaining free stock.
- Cancellation is mistaken for reversal of a posted deduction.