Stock · step 3 of 6
Batch
A batch is a quantity of one item that was received or produced together and is tracked under a single identifier, so that the quantity's origin, shelf life and every destination can be traced as one group.
Why it exists: Because a recall, a complaint or an expiry date is a question about a group of units, and the group has to be named before it can be found.
Where it sits
BatchThis document
Stock: Item → UOM Conversion → Batch → Serial Number → Warehouse → Stock Entry
Try it
Trace a batch back to suppliers or forward to buyers
Choose a finished batch and a direction. The tree is the evidence; the line under it is the recall scope.
Finished batch
Direction
Sample data, invented for this page. It is not a record from any system.
FG-2610-A · trace back to suppliers
Recall scope: three raw batches from three suppliers.
How a batch moves through its life
Four states. Pick one to see what a batch is, and what it can still become.
The identifier exists for one item, with its manufacturing date and, for goods that expire, an expiry date. It holds no stock yet.
Then: In stock
The identifier exists for one item, with its manufacturing date and, for goods that expire, an expiry date. It holds no stock yet.
Then: In stock
Quantity sits under the batch in one or more warehouses. It can be picked, transferred or split into a smaller batch.
Then: Expired
Quantity sits under the batch in one or more warehouses. It can be picked, transferred or split into a smaller batch.
Then: Expired
The expiry date has passed. The batch drops out of picking, and most sales and receipts dated after it are refused, but the stock stays on the books until it is written off or returned.
Then: Closed
The expiry date has passed. The batch drops out of picking, and most sales and receipts dated after it are refused, but the stock stays on the books until it is written off or returned.
Then: Closed
Quantity is zero, or the batch is disabled. The record stays for tracing and its identifier stays taken.
Ends here
Quantity is zero, or the batch is disabled. The record stays for tracing and its identifier stays taken.
Ends here
Rules that must hold, and what breaks them
Rules
- A batch belongs to one item. The same supplier lot number received for two different items is two batches, one for each item.
- Every movement of a batch-tracked item names the batch it draws from or adds to. A movement without a batch cannot be traced, so the system has to refuse it.
- An expired batch is not issued or sold as in-date stock. Expiry is a hard stop on picking, with a deliberate route for what remains: a write-off or a return to the supplier.
Does this happen in your business?
Tick what you recognise. Each tick shows what it costs.
Tick any that happen here.
In ERPNext, and in your system
How ERPNext models it
| DocType | What it does here |
|---|---|
| Batch | The batch record: batch_id (unique), item, manufacturing_date, expiry_date, a read-only batch_qty, parent_batch and a disabled flag. Expiry is set from the manufacturing date plus the item's shelf life when it is left blank. |
| Item | has_batch_no switches tracking on and cannot be changed once submitted transactions exist. create_new_batch with batch_number_series makes batches on receipt. has_expiry_date with shelf_life_in_days drives the expiry date. |
| Serial and Batch Bundle | Since version 15, the submittable document that carries batch numbers and quantities for a stock row. Outward picking skips expired and disabled batches, in FIFO, LIFO or earliest-expiry order as Stock Settings says. |
| Stock Settings | From version 16, 'Activate Serial / Batch No for Item' must be on, and it is off by default, before an item can be marked as batch-tracked. |
| Serial No and Batch Traceability | Report on the serial and batch bundles. Given an item, batch or serial number it traces backward to the supplier, forward to the customer, or both, through manufacture and repack entries. |
What other systems call it
| System | Name | Note |
|---|---|---|
| ERPNext | Batch | DocType Batch. The item needs Has Batch No ticked. |
| Tally | Batches (Maintain in Batches) | Switched on in Features (Enable Batches), then per stock item (Maintain in Batches). A batch can be created on the fly by typing its name. Manufacturing and expiry dates are optional. |
| Zoho Books | Batch Tracking | Zoho Inventory. Not among the modules the Zoho Inventory add-on brings into Zoho Books. |
| SAP Business One | Batches (Manage Item By: Batches) | Set per item in Item Master Data, General tab. The field takes None, Serial Numbers or Batches. Batch numbers are entered in the Batch Management window. |
| Odoo | Lot (Lots/Serial Numbers) | Needs the Lots & Serial Numbers setting in Inventory. Lots are listed under Inventory > Products > Lots/Serial Numbers. |
From each maker's own documentation, checked 13 October 2026. A dash: not confirmed.
Where a batch connects
More terms it connects to
Each one opens that term.
Questions about batches
The one most people ask is answered first. Type to find the rest.
What does a batch mean for the business?
- One delivery carrying two production dates from the same supplier: it needs two batches, because one expiry date cannot describe both.
- A batch split before part of it moves to another site. ERPNext posts the split as a Repack stock entry, and the traceability report follows that entry, so a recall can still reach the new batch.
- Items with a shelf life but no batch tracking, where the expiry date has nowhere to live and expired stock cannot be picked out. In ERPNext the expiry date is only offered on batch-tracked items.
- Expired stock still on the shelf. ERPNext refuses sales and receipts dated after expiry, but a stock entry can still move the stock out, which is how it is written off, and a purchase return can send it back.
Reviewed 14 October 2026. All 40 documents: the ERP glossary.