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 SettingsFix: 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.
- 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.
- Optionally, rename the current item, so that the new item can keep the original item code.
- Create the new item with Has Serial No or Has Batch No selected.
- Bring the stock into the new item, with its serial numbers or batches. See Enter opening stock.
- Disable the old item, so that nobody selects it in a transaction.