Migrate from periodic to perpetual inventory ​

Perpetual inventory is on by default for a new company. Follow these steps if your company used periodic inventory and you want ERPNext to post accounting entries for every stock transaction from now on.

Prerequisites ​

  • You know the current value of stock in each warehouse. Check it in the Stock Balance report.
  • You have the Accounts Manager role, or another role that can edit the Company and create Journal Entries.

Move the stock value into the stock account ​

With periodic inventory, purchases of stock items were booked to an expense account, usually through the Purchase Invoice. Move the value of the stock that you still hold from that expense account into the stock account.

  1. Create a Journal Entry for the value of stock in hand:

    AccountDebitCredit
    Stock In Hand (or the warehouse account)Stock value
    Expense account used on Purchase InvoicesStock value
  2. Submit the Journal Entry.

If your Purchase Invoices posted to the stock account instead of an expense account, make the entry the other way round, for the difference only.

Make sure that ERPNext can find a stock account for every warehouse. You can set the account at three levels:

  • In the Account field of the warehouse.
  • In the Account field of the parent warehouse.
  • In the Default Inventory Account of the Company, if one account is enough for all warehouses.

See Set inventory accounts for warehouses and items.

Book goods received but not billed ​

The Stock Received But Not Billed account holds the value of goods on submitted Purchase Receipts that have no Purchase Invoice yet. Bring the value of the open Purchase Receipts into this account.

  1. Find the value of goods received and not billed in the Received Items To Be Billed report.

  2. Create and submit a Journal Entry:

    AccountDebitCredit
    Expense account (cost of goods sold)Unbilled value
    Stock Received But Not BilledUnbilled value

Turn on perpetual inventory ​

  1. Open the Company.
  2. On the Stock and Manufacturing tab, check that these fields have accounts:
    • Default Inventory Account
    • Stock Received But Not Billed
    • Stock Adjustment Account
  3. On the Accounts tab, check that Default Cost Center has a value.
  4. Select Enable Perpetual Inventory, then save the Company.

From now on, ERPNext posts accounting entries for every stock transaction of this company.