Adds an item (stock item or recipe) to a waste event.
In the payload, either
stock item or
recipe must be given, but not both. Wasted quantities are only committed to inventory after the waste event is saved.
Wasting a recipe
When wasting a recipe,
quantityis interpreted as the number of wasted portions (servings). If the recipe is a stockable recipe, its own stock items will be taken from inventory.
If the recipe is not stockable, wasting it will waste the equivalent amount of ingredients required to produce the indicated amount of servings.