Serial and Batch Bundle ​

A Serial and Batch Bundle lists the serial numbers or batches of one row of a stock transaction, with a quantity for each. Every row of a serialized or batched Item in a stock transaction links to one bundle in its Serial and Batch Bundle field.

A bundle belongs to one transaction row. You cannot use one bundle in two transactions.

Why bundles exist ​

Before version 15, a row stored its serial numbers as text in one field. That design caused data errors. Since version 15, the serial numbers and batches of a row are in a bundle. A bundle is a separate document with one table row for each serial number or batch, so ERPNext can check each one.

A bundle has:

FieldDescription
Item Code, Warehouse, CompanyThe Item and the warehouse of the transaction row.
Type of TransactionInward (stock comes in), Outward (stock goes out), Maintenance, or Asset Repair.
Entries tableOne row for each Serial No or Batch No, with its Qty.
Total Qty, Avg Rate, Total AmountTotals of the entries.
Voucher Type, Voucher NoThe transaction that the bundle belongs to.

Prerequisites ​

Choose how users enter serial numbers and batches ​

Stock Settings has two ways to enter serial and batch data in a transaction row. The Use Serial / Batch fields setting chooses between them.

Serial and batch fields (default) ​

With Use Serial / Batch fields selected, each row shows the Serial No and Batch No fields. Type or scan the serial numbers, one on each line, and select the batch. When you submit, ERPNext creates the bundle from these fields.

While this setting is selected, ERPNext also selects Disable Serial No and Batch selector.

You can turn the fields off for one row: clear Use Serial No / Batch Fields in the row. The row then uses the selector.

With Do not update Serial / Batch on creation of auto bundle selected (default), ERPNext does not write the serial numbers and batches that it creates back into the row fields. This saves time on large receipts. The row's Serial and Batch Bundle still links to the bundle. Clear the setting to fill the fields too.

Serial and batch selector ​

With Use Serial / Batch fields clear, each row shows a button that opens the selector dialog: Add Serial / Batch No for inward rows, or Pick Serial / Batch No in a Delivery Note.

In the dialog, you can:

  • Scan Serial No or Scan Batch No with a barcode scanner.
  • Enter Manually: type serial numbers one on each line, or a Serial No Range such as SN-01::10.
  • Import Using CSV file: select Download CSV Template, fill it in, and attach it in Attach CSV File. This works for inward and outward rows.
  • Auto Fetch (outward rows): enter Qty to Fetch and select Fetch Based On: FIFO, LIFO, or Expiry. ERPNext fills the available serial numbers or batches.

For inward rows, the dialog creates serial numbers and batches that do not exist yet. Select Add or Update to save the bundle and link it to the row.

Create bundles automatically ​

Inward transactions ​

ERPNext creates the bundle on submit of a Purchase Receipt or a Material Receipt Stock Entry when:

  • a serialized Item has a Serial Number Series, and
  • a batched Item has Automatically Create New Batch selected, optionally with a Batch Number Series.

ERPNext creates the serial numbers and batches with the bundle.

Outward transactions ​

With Auto create Serial and Batch Bundle for outward selected in Stock Settings (default), ERPNext creates the bundle on submit of a Delivery Note or a Material Issue Stock Entry. It picks the serial numbers and batches in the order of Pick Serial / Batch Based On:

  • FIFO (default): the oldest stock first.
  • LIFO: the newest stock first.
  • Expiry: the batch that expires first.

Name bundles from a naming series ​

By default, a bundle gets a random name. To name bundles in sequence, select Set Serial and Batch Bundle Naming Based on Naming Series in Stock Settings, then set the series with Configure Series. The default series is SABB-.########.

Troubleshooting ​

MessageCauseFix
At row <n>: Serial No is mandatory for Item <item>A serialized row has no serial numbers, and ERPNext cannot create them.Enter the serial numbers, or set a Serial Number Series on the Item.
At row <n>: Batch No is mandatory for Item <item>A batched row has no batch.Select the batch, or select Automatically Create New Batch on the Item.
The serial and batch bundle <bundle> not linked to <transaction>The bundle is used in a transaction row it does not belong to.Create a new bundle for the row.
You can't process the serial number <serial> as it has already been used in the SABB <bundle>Allow existing Serial No to be Manufactured/Received again is clear, and the serial number was received before.Use a new serial number, or select the setting in Stock Settings.
Since the stock reconciliation exists for future dates, cancel it first.A back-dated transaction uses serial numbers or batches that a later Stock Reconciliation includes.Cancel the later Stock Reconciliation, or post the transaction after it.