Track units with serial numbers ​

A serial number identifies one unit of an Item. ERPNext keeps a Serial No document for each unit. The document shows where the unit is, which supplier sent it, which customer received it, and its warranty.

Use serial numbers for Items where each unit matters, for example machines, computers, and vehicles.

Prerequisites ​

Set up an Item for serial numbers ​

  1. Open the Item. In the Serial Nos / Batches section, select Has Serial No.
  2. Choose how the serial numbers get their names:
    • To let ERPNext name them, enter a Serial Number Series, for example LAP-.#####. ERPNext creates LAP-00001, LAP-00002, and so on.
    • To use the numbers that the manufacturer printed on the units, leave Serial Number Series blank. You enter the numbers in each receipt.
  3. Optionally, enter the Warranty Period (in days). ERPNext uses it to set the warranty expiry date when you deliver a unit.
  4. Check Use Serial No Wise Valuation. It is selected by default. Learn how it changes the cost of each unit.
  5. Save the Item.

Receive serialized Items ​

Serial numbers come into stock with an inward transaction: a Purchase Receipt, a Stock Entry of type Material Receipt or Manufacture, or a Stock Reconciliation for opening stock.

With a Serial Number Series ​

Leave the serial numbers blank in the row. When you submit, ERPNext creates one Serial No for each unit from the series. For a production entry, ERPNext also creates the serial numbers of the finished good from the series.

With the manufacturer's numbers ​

Enter the numbers in the row:

  • With Use Serial / Batch fields selected in Stock Settings (default), type or scan the numbers into the row's Serial No field, one number on each line.
  • With the setting cleared, select Add Serial / Batch No in the row. In the dialog, select Enter Manually and type the numbers, or enter a Serial No Range such as SN-01::10 for SN-01 to SN-10. You can also select Import Using CSV file.

When you submit, ERPNext creates a Serial No for each new number.

Purchase Receipt row with serial numbers entered one on each line

Each submitted row links to a Serial and Batch Bundle that lists the serial numbers.

Deliver or issue serialized Items ​

In a Delivery Note, Sales Invoice with Update Stock, or Stock Entry, give the serial numbers that leave stock:

  • Type or scan them into the row's Serial No field, or
  • Let ERPNext pick them. With Auto create Serial and Batch Bundle for outward selected in Stock Settings (default), ERPNext picks available serial numbers on submit, in the order of Pick Serial / Batch Based On: FIFO, LIFO, or Expiry.

Only a serial number with the status Active in the source warehouse can leave stock.

Create a serial number by hand ​

You can create a Serial No before you receive the unit, for example to import a list.

  1. Open the Serial No list and select Add Serial No.
  2. Enter the Serial No and select the Item Code and the Company.
  3. Save.

A new Serial No has no warehouse and no stock. It gets a warehouse only when an inward stock transaction receives it.

Serial number status ​

ERPNext sets the Status of each Serial No from its stock transactions. You cannot edit it.

StatusMeaning
ActiveThe unit is in stock in the warehouse shown.
DeliveredThe unit left stock, for example with a Delivery Note. The Customer field shows who received it.
ConsumedThe unit was used in a Stock Entry, for example in manufacture or repack.
InactiveThe unit is not in stock, for example after you cancel its receipt.
ExpiredThe unit has expired.

The Source Document section shows the transaction that created the serial number.

Warranty and maintenance contracts ​

The Warranty / AMC Details section of a Serial No has:

  • Warranty Expiry Date: ERPNext sets it on delivery from the Item's Warranty Period (in days). You can change it.
  • AMC Expiry Date: the end of the annual maintenance contract (AMC).
  • Maintenance Status: ERPNext sets it from the two dates: Under Warranty, Out of Warranty, Under AMC, or Out of AMC.

Support users use these fields in a Warranty Claim and a Maintenance Schedule.

See the history of a serial number ​

Open the Serial No Ledger report and select the serial number. It shows every transaction that moved the unit. To trace a unit to its raw materials or customers, use the Serial and Batch Traceability report.

Rules ​

  • You cannot change the Item Code or the warehouse of a Serial No after it is created.
  • You cannot delete a Serial No that a stock transaction uses.
  • By default, a serial number that left stock can be received or manufactured again. To block this, clear Allow existing Serial No to be Manufactured/Received again in Stock Settings.
  • ERPNext does not allow negative stock for serial numbers.

Troubleshooting ​

MessageCauseFix
New Serial No cannot have Warehouse. Warehouse must be set by Stock Entry or Purchase ReceiptYou set a warehouse on a new Serial No.Leave the warehouse blank and receive the unit with a stock transaction.
You cannot outward following Serial No as either they are Delivered, Inactive or located in a different warehouse.The serial number is not in stock in the source warehouse.Select a serial number that is Active in that warehouse.
Cannot delete Serial No <serial>, as it is used in stock transactionsThe Serial No has stock transactions.Keep the Serial No. Cancel the transactions first if they are wrong.
Cannot enable Has Serial No as Activate Serial / Batch No for Item is disabled in Stock SettingsSerial and batch tracking is off.Select Activate Serial / Batch No for Item in Stock Settings.