ZuloOne
English
Sign inTry it
Menu

🏷️ Batches and serial numbers

Updated

Some goods are not interchangeable: a syrup from lot L-0412 expires in March, the one from L-0507 in June; a scanner is not "one scanner" but SN-88123. The Batches and serial numbers package (model Traceability) lets an item be tracked by batch or by serial number. Every stock document line of such an item then names its batch, the stock is kept by batch beside the ordinary stock, and goods go out first-expiring-first-out.

← Business wiki

How the process works#

Item.Tracking = By batch / By serial number
        │
Receipt line ──► BatchCode + ExpiryDate ──► ItemBatch (found or created) ──► BatchStock +qty
        │
Issue line ──► Batch named ──► checked ──► BatchStock −qty
  1. On the item card set Tracking: By batch or By serial number. Shelf life, days gives a new batch its expiry when the receipt names none.
  2. Receiving goods (a purchase order received, a stock adjustment with a surplus) — type the supplier's lot (or the unit's serial) into New batch / serial and, if you know it, the Expiry date. Posting finds that batch of the item or creates it, and puts it into the line's Batch / serial (a received purchase order is read-only, so its line keeps the code and the batch is found by it).
  3. Issuing goods (a sales invoice, a goods issue, a stock transfer, a purchase return, a shortage) — by default you do nothing: Batch pick on issue on the item card is Automatically, so a line without a batch stays one line on the document and, when it posts, the stock moves by batch — first-expiring first, then (batches that expire together or never) first-received first. A sale of 10 with 7 left in one batch and 5 in the next posts one line of 10 and two batch movements, 7 and 3. A sale never takes an expired batch. The split is shown in the sales summary (L-0412 × 7; L-0507 × 3).
  4. Sales returns bring the named batch back.

What posting checks#

Before a stock document posts, every line of a tracked item is checked:

Rule Message
A tracked line names a batch — receipts, returns, and issues of an item set to Named on the line the item is tracked by batch; name the batch on the line
The batch belongs to the line's item batch … belongs to another item
A serial number moves exactly one unit a serial number moves exactly one unit
A serial number is never received while it is in stock (in any store) serial number … is already in stock
An issue takes no more than the batch holds in that store batch … holds 1 in this store, the line takes 2
A sales invoice does not sell an expired batch batch … expired on … and cannot be sold

Items that are not tracked are not touched: they post exactly as in Commerce Lite.

Where the quantities live#

Register Stock by batch (BatchStock) keeps the quantity by item, store and batch. It is kept beside Stock, not instead of it: Stock stays by item and store, so costing (FIFO / moving average) and warehouse cells (WHS) work as before, and the package can be added to a company that has worked for a year without it — its batches start with the first receipt that names one. Open it from Inventory management → Inquiries → Stock by batch; the batches themselves are under Setup → Batches and serials.

With other packages#

  • WHS (bridge TraceabilityWhs, installed with both packages): batches are kept by cell, so a batch can be followed from the receipt to the sale:
    • Stock by batch gets a Cell: every stock document's batch movement carries the same cell as its Stock movement (the line's cell, else the document's).
    • What a batch holds is checked in the line's cell: a sale from the picking cell takes only what that cell holds of the batch, even if the store holds more. Assign batches proposes the first-expiring batches of that cell.
    • Put-away and pick tasks move batches cell to cell. A task line may name its batch; left empty (as the tasks WHS drafts are), confirming takes the first-expiring batches the source cell holds, split as needed. A task no batches in the source cell cover is refused before it moves anything.
    • Moves between cells that WHS makes itself (a transfer from a cell to another, gathering an order) get their batches filled first-expiring from the source cell before they post, a line split per batch.
    • Batch stock posted before the bridge was installed has no cell; it stays on the store until it is moved.
  • Finance: nothing changes in the ledger; cost is the item's cost, not the batch's.
Was this page helpful?