Track stock as goods arrive and leave Pantry's warehouse, and tell the buyers what to reorder.
Receive and ship
Keep a count per product that can never go negative.
Reorder list
Per-product reorder levels and a sorted list of what to buy, and how much.
All-or-nothing orders
Ship a café's whole order only if every line can be filled.
How to read a ticket, find what it doesn't say, ask good questions, and turn acceptance criteria into tests, with examples from realistic product tickets.
Name the rules your data must always obey, enforce them in one place, validate everything before changing anything, keep history append-only, and test invariants with random operations.