Recipe and portion cost
Every menu item has a recipe, and every stock item in it has a last purchase price. When one price changes, the cost of every affected recipe updates. Multiply by covers and you have theoretical cost; the gap against actual consumption is your waste and shrinkage analysis.