Serial No wise valuation ​

Use Serial No Wise Valuation is a checkbox on a serialized Item. It decides the cost of a unit that leaves stock, which is the cost of goods sold (COGS) and the valuation rate.

  • Selected (default): each serial number keeps its own incoming rate. A unit that leaves stock is valued at the price paid for that unit.
  • Clear: ERPNext values all units of the Item at one average cost.

The checkbox changes only the cost. ERPNext creates and tracks serial numbers in both cases.

Comparison ​

Selected (default)Clear
Serial numbers created and trackedYesYes
Cost stored for each serial numberYesNo
Cost of a unit that leaves stockThe incoming rate of that unitThe average cost of the Item
Valuation methodThe Item's method is not used for serial costsMoving Average, once the Item has stock transactions
Suited toTens to thousands of serial numbersMillions of serial numbers

How it works when selected ​

Each serial number carries its own cost from the transaction that received it. You buy laptop LAP-001 for 50,000 and laptop LAP-002 for 55,000. When you deliver LAP-002, ERPNext takes 55,000 out of the stock value. The valuation method of the Item, such as FIFO, does not decide the cost of a serial number.

To do this, ERPNext stores and reads a cost for every serial number in every transaction.

How it works when clear ​

ERPNext keeps no cost for each serial number. It uses the moving average cost of the Item for every unit that leaves stock.

Traceability does not change. You can still see which unit came from which supplier, where it is, and which customer received it. Warranty, maintenance, and traceability reports work as before. The Stock Ledger, Stock Balance, and Stock Ageing reports show correct values.

Worked example ​

An Item has 4 units in stock:

  • 2 units bought at 100 each
  • 2 units bought at 200 each
  • The average cost is 150.

You send out one unit that was bought at 200:

TransactionSelectedClear
Delivery200150
Sales return200150
Purchase return200150

When the checkbox is selected, ERPNext finds that unit and uses its real cost. When it is clear, ERPNext uses the average and does not need to know which unit left.

When to keep it selected ​

Keep it selected when the cost of each unit differs and the difference matters in your accounts. Examples:

  • machinery and equipment bought at negotiated prices
  • laptops, servers, and medical devices with different configurations
  • vehicles, where you need the cost of the one you sold
  • any Item where one unit can cost much more than another

These Items have tens, hundreds, or a few thousand serial numbers. Storing a cost for each one costs little, and the accuracy is worth it.

When to clear it ​

Clear it when the Item has a very large number of serial numbers and all units cost about the same.

For example, a telecom distributor buys SIM cards. Each card has a serial number because the regulator requires it. Each card costs about 20, one purchase is 500,000 cards, and the company handles millions of cards a year. With the checkbox selected, a delivery of 10,000 cards reads 10,000 separate costs, which are all 20. Stock transactions become slow. With the checkbox clear, ERPNext keeps full traceability and uses one average cost.

Other examples: cables and connectors serialized for compliance, utility meters, set-top boxes, smart cards, and RFID tags.

To decide, ask three questions:

  1. Will the Item have thousands of serial numbers, or millions?
  2. Do two units ever cost very different amounts?
  3. Does anyone need the cost of one specific unit?

Clear the checkbox only when the count is very large, the costs are alike, and nobody needs the cost of one unit.

Rules for changing the setting ​

  • You can clear it at any time, even when the Item has stock and serial numbers.
  • You cannot select it again after serial numbers exist for the Item. While it was clear, ERPNext did not store a cost for each serial number, so it would value those units wrongly. For a new Item with no serial numbers, you can change it freely.
  • The valuation method becomes Moving Average. If you clear the checkbox on an Item that has stock transactions, ERPNext sets the Item's Valuation Method to Moving Average, and you cannot change it to FIFO or LIFO. FIFO and LIFO take costs in layers in the order of receipt, which needs a cost for each unit. An Item with no stock transactions keeps its method.
  • Returns follow the same rule. With the checkbox clear, a purchase return is valued at the average cost, not at the price paid for that unit.

When you upgraded to version 16, ERPNext selected the checkbox on every serialized Item, so existing valuation did not change.

Troubleshooting ​

MessageCauseFix
Serial No Wise Valuation cannot be enabled for Item <item> because Serial Nos already exist for it.You tried to select the checkbox again after serial numbers were created.Keep it clear. To use serial costs, create a new Item.
Valuation Method for Item <item> must be Moving Average because Serial No Wise Valuation is disabled.You tried to set FIFO or LIFO on an Item with the checkbox clear and stock transactions.Keep Moving Average.