Record a placed grocery order
record_grocery_orderLog a placed grocery order, mark its week as ordered, and restock bought staples; optionally keep purchased items as 7-day leftovers instead of adding them to the pantry.
Instructions
Log the placed order and move the week to 'ordered'. Staples marked out that were bought are back in stock (listed under restocked). Purchased items don't join the pantry since they get cooked this week; set add_to_on_hand to keep them as leftovers for 7 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| store | No | ||
| total | No | ||
| week_id | No | ||
| order_ref | No | ||
| add_to_on_hand | No | Keep the purchased items as 7-day leftovers |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| week | Yes | ||
| order | Yes | ||
| restocked | No | Staples that were marked out and are back in stock |