Skip to main content

Link ingredient lots to a batch

On the batch's Edit page, scan a purchase's QR code or search for the purchase to link its lots to the batch. Linking also draws the Bill of Materials amount from stock.

Linking records which ingredient lots went into a batch. It is what makes a recall trace possible.

  1. Open the batch and click Edit Batch.
  2. 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.
  3. 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.

Linked Ingredient Purchases card on the batch Edit page The card has a box to scan or paste a purchase QR code with Scan QR and Add Ingredient Purchase buttons, a Search ingredient purchases box, and a list of linked purchases with their supplier, date and a Remove button. Linked Ingredient Purchases Link ingredient purchases to this batch two ways: scan a QR code from a purchase label, or search for the purchase by supplier, ingredient, or date. Scan or paste ingredient purchase QR code URL here... Scan QR Add Ingredient Purchase 1 Search ingredient purchases Search by supplier, ingredient, or date (YYYY-MM-DD)... 2 Valley Pepper Farm 10/14/2026 Remove Coastal Vinegar Co. 10/09/2026 Remove
Scan or paste a purchase QR code (1), or search for the purchase (2). Linked purchases list below.
Linking draws from stock

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