Turn on serial or batch numbers for an item ​

You may start without serial or batch tracking, and need it later. ERPNext can block this for two reasons.

Cause 1: serial and batch numbers are off in Stock Settings ​

ERPNext shows this message when you save the item:

text
Cannot enable Has Serial No as Activate Serial / Batch No for Item is disabled in Stock Settings

Fix: In Stock Settings, select Activate Serial / Batch No for Item. Then select Has Serial No or Has Batch No in the item.

Cause 2: the item already has stock transactions ​

Has Serial No and Has Batch No are read-only when the item has stock transactions. Learn why ERPNext locks these fields.

Fix: If the transactions are tests, delete them. Otherwise, move the stock to a new item that has the setting.

  1. Take the stock of the current item to zero. Use a Stock Reconciliation with quantity 0, or a Stock Entry of the type Material Issue.
  2. Optionally, rename the current item, so that the new item can keep the original item code.
  3. Create the new item with Has Serial No or Has Batch No selected.
  4. Bring the stock into the new item, with its serial numbers or batches. See Enter opening stock.
  5. Disable the old item, so that nobody selects it in a transaction.