For the complete documentation index, see llms.txt. This page is also available as Markdown.

Customer orders & how stock moves

📦 Available on the Growth and Core plans.

The Orders module is your order book: every customer order, from first booking through to collection or delivery, in one place. It's also the front door into production and stock — moving an order through its statuses is what puts the right bake on the right day and keeps your ingredient balances accurate.

What's in this section

How stock actually moves

This is the part worth understanding properly, because it's easy to assume an order deducts stock the moment it's placed. It doesn't.

Moving a customer order to "In progress" creates a production run from its order lines, and that run is what deducts the ingredients. FoodCore reads the recipes and quantities on the order, builds a run behind the scenes, and the run's completion is what actually touches your stock balances.

Runs are the only thing that moves stock. Orders never deduct ingredients directly — they always go through a run. This matters because it means the same work is never counted twice: whether a batch came from a planned production run or from a customer order, it moves stock exactly once, through exactly one mechanism.

Moving an order back, or cancelling it

If you move an order back out of "In progress", or cancel it, FoodCore reverses the deduction from what was actually taken — not by recalculating the recipe from scratch. That distinction matters: if you'd edited the recipe in the meantime (swapped an ingredient, changed a quantity), recalculating would reverse the wrong amounts. Reversing from the ledger of what was actually deducted means the stock balance always comes back to where it should be, regardless of what's changed on the recipe since.

What's next

Last updated