Enter serial and batch numbers with the inline editor ​

Version 17

This feature is in ERPNext version 17, which is in development. ERPNext version 16 does not have it.

The inline serial and batch editor shows a Serial / Batch Entries table inside the item row of a stock document. You add, edit, and remove serial numbers and batches there, instead of in a separate dialog. ERPNext saves the entries with the document, as a Serial and Batch Bundle.

The editor is available in these documents:

  • Purchase Receipt and Purchase Invoice, including the rejected quantity
  • Sales Invoice, POS Invoice, and Delivery Note, including packed items of a product bundle
  • Stock Entry and Stock Reconciliation
  • Subcontracting Receipt, for items and supplied items
  • Pick List
  • Asset Capitalization and Asset Repair

Prerequisites ​

  • In Stock Settings, Activate Serial / Batch No for Item is selected.
  • In Stock Settings, Use Serial / Batch fields is cleared. The Use Inline Serial / Batch Editor checkbox appears only then.
  • The item has Has Serial No or Has Batch No selected.

Turn on the inline editor ​

  1. Open Stock Settings.
  2. Clear Use Serial / Batch fields.
  3. Select Use Inline Serial / Batch Editor. It is selected by default.

The setting applies to all users. If you do not see the editor in a form, reload the page. To go back to the dialog, clear Use Inline Serial / Batch Editor.

If an item row has Use Serial / Batch fields selected, that row keeps the text fields, and the editor is hidden for it.

Add serial numbers or batches ​

  1. Open the stock document as a draft, and open the item row.
  2. In Serial / Batch Entries, select Add row.
  3. Select a serial number or a batch, or type a new one, and enter the Qty.
  4. Repeat for each entry, then save the document.

The item quantity and the Total Qty under the table update as you add entries. Changes stay on your screen until you save the document. ERPNext then saves all of them at once.

On an incoming document, such as a Purchase Receipt, ERPNext creates serial numbers and batches that do not exist yet when you save.

Edit or delete entries ​

  • To edit an entry, select the Serial No, Batch No, or Qty cell and type the new value.
  • To delete entries, select their checkboxes, then select Delete row.
  • To delete all entries, select the checkbox in the table header, then select Delete All. If you save with no entries, ERPNext removes the linked Serial and Batch Bundle.

Use the table menu ​

The ⋯ menu at the bottom right of the table has more tools:

ToolWhat it does
Auto Fetch Serial Nos or Auto Fetch Batch NosOn an outgoing document, enter the Qty to Fetch and the Fetch Based On rule. ERPNext picks available serial numbers or batches, skips reserved stock, and replaces the current entries.
Scan Serial Nos or Scan Batch NosScan a barcode, or type a number and press Enter, to add entries one at a time. Scanning the same batch again increases its quantity.
Create Serial Nos from RangeFor a serial item, enter a range such as SN-01::10 to add SN-01 to SN-10.
DownloadDownload the current entries, or a blank template, as a CSV file.
UploadUpload a filled CSV template to add many entries at once.

When the table has more than 10 entries, use the arrows below it to move between pages, or type a page number.

The editor works only while the document is a draft. After you submit, the entries are locked.