Set or change the valuation method
The valuation method decides how ERPNext values stock that goes out. Learn how each method works in How FIFO and Moving Average valuation work.
Set the valuation method
ERPNext uses the first method it finds in this order: the Item, then the Company, then Stock Settings.
- For one item: in the Item form, set Valuation Method. The field shows only when Maintain Stock is selected.
- For all items of a company: in the Company form, open the Stock and Manufacturing tab and set Default Stock Valuation Method.
- For documents without a company: in Stock Settings, set Default Valuation Method. ERPNext uses this setting only when a document has no company, for example a Batch.
Leave Valuation Method empty on an Item to use the company default.
TIP
Set the method before the item has any stock transaction. After that, you can only change it from FIFO to Moving Average.
Change an item from FIFO to Moving Average
After an item has submitted stock transactions, ERPNext allows only one change: from FIFO to Moving Average. You cannot change it back to FIFO, and you cannot change it to or from LIFO.
- Open the Item.
- In Valuation Method, select Moving Average.
- ERPNext asks you to confirm. Select Yes.
- Save the Item.
What happens after the change:
- New outgoing transactions use the Moving Average rate.
- If you create a backdated transaction, ERPNext reposts every later transaction with the Moving Average method. This can change the closing stock value of periods that used FIFO.
Protect past periods from reposting
To stop backdated transactions from changing the stock value of past periods, freeze stock up to a date. In Stock Settings, set Stock frozen up to. ERPNext then blocks stock transactions dated on or before that date. Only users with the role in Role allowed to edit frozen stock can still post them.
Troubleshooting
"As there are existing submitted transactions against item ..., you can not change the value of Valuation Method"
Cause: the item has submitted stock transactions, and you tried a change other than FIFO to Moving Average.
Fix: keep the current method. To use a different method, create a new Item and use it for new transactions.