Linking records which ingredient lots went into a batch. It is what makes a recall trace possible.
- Open the batch and click Edit Batch.
- Find the Linked Ingredient Purchases card. There are two ways to link a purchase:
- Scan it. Every ingredient purchase has a Print page with a QR code. Click Scan QR and point the camera at the code, or paste the purchase's link into the box, then click Add Ingredient Purchase.
- Search for it. Type a supplier, an ingredient, or a date (YYYY-MM-DD) under Search ingredient purchases and pick the purchase from the results.
- The purchase now shows under the batch with its supplier and date.
You can also link purchases while creating a batch. The search box on the batch Add page stages your picks, and they are linked once the batch is created.
Linking attaches every item on that purchase to the batch. If you linked the wrong one, click Remove next to it and confirm. Removing a purchase returns the stock it drew.
Check the batch page for warnings. The Linked Ingredient Purchases card on the batch page lists what still needs attention:
- No purchase linked names each Bill of Materials ingredient that has no linked purchase yet.
- Overdrawn means a linked purchase has gone below zero. It names every batch that drew from it. Link another purchase of that ingredient, or add a note.
If there is no purchase to link, for example the ingredient came from a farmers market or the receipt is lost, click Resolve with a note next to the warning. Answer Where did this ingredient come from? and click Save note. The note clears only that warning, does not change stock, and appears in the recall trace as the reason for the gap. Anyone who can link a purchase can write one.
Linking is optional. Batches save fine without it. But an unlinked batch shows up as a data gap in a recall trace, so the habit is worth building into your batch routine.
Linking a purchase draws each matching ingredient's Bill of Materials amount, scaled to the batch size, from that purchase's stock, so the link records how much was used. The batch uses the Bill of Materials it was created with. If you link more than one purchase of the same ingredient, the oldest purchase is drawn first and the newest takes any remainder, even if that puts it below zero. Lines set to be added at Packaging draw when you package the batch. Ingredients that are not on the Bill of Materials are linked without a quantity and draw nothing. Imported batches never draw stock, but their linked purchases still appear in the recall trace.
Related