Enter opening stock ​

Opening stock is the quantity and value of the stock you hold at the start of an accounting period. When you start using ERPNext, you enter it once, as of your go-live date. After that, the closing stock of one period is the opening stock of the next.

You can enter opening stock in two ways:

MethodBest for
Stock Reconciliation with the purpose Opening StockMany Items and warehouses at once. You can import the rows from a spreadsheet.
Stock Entry of type Material Receipt with Is Opening set to YesA few Items, or when you prefer to receive stock row by row.

Both methods support serialized and batched Items.

Prerequisites ​

  • The warehouses that hold the stock, each linked to an inventory account. See inventory accounts.
  • The Items, with Maintain Stock selected.
  • For a batched Item: the Batch documents, unless the Item has Automatically Create New Batch selected.
  • For a serialized Item: the serial numbers, or a Serial Number Series on the Item so that ERPNext creates them. See serial numbers.
  • A Temporary Opening account in the chart of accounts. It balances the stock value until you post the opening balances of your other accounts.

Enter opening stock with a Stock Reconciliation ​

  1. Open the Stock Reconciliation list and select Add Stock Reconciliation.
  2. Set Purpose to Opening Stock. ERPNext sets the Difference Account to the temporary account of the company.
  3. Select Edit Posting Date and Time, and set the Posting Date to the day before your go-live date.
  4. In the Items table, add one row for each Item and warehouse:
    • Item Code
    • Warehouse
    • Quantity
    • Valuation Rate: the value of one unit in the stock UOM.
  5. For a serialized or batched Item, enter the Serial No or the Batch No in the row. If the row shows Add Serial / Batch No, use it to select the serial numbers or batches instead.
  6. Submit the Stock Reconciliation. ERPNext posts the stock ledger entries and the accounting entries.

Learn more about Stock Reconciliation.

Enter opening stock with a Stock Entry ​

  1. Open the Stock Entry list and select Add Stock Entry.
  2. Set Stock Entry Type to Material Receipt.
  3. Set Is Opening to Yes.
  4. Set the Posting Date to the date of the opening balance.
  5. Select the Default Target Warehouse.
  6. In the Items table, add a row for each Item:
    • Item Code
    • Qty
    • Basic Rate (as per Stock UOM): the value of one unit. If units of the same Item have different values, add one row for each value.
  7. For a serialized Item, enter as many serial numbers as the quantity, or leave them empty if the Item has a Serial Number Series. For a batched Item, enter the Batch No.
  8. In each row, set the Difference Account to the temporary opening account.
  9. Submit the Stock Entry. ERPNext debits the warehouse account with the value of the stock and credits the temporary opening account.

Learn more about Stock Entry.

TIP

With perpetual inventory, every stock transaction creates an accounting entry. The temporary opening account keeps that entry balanced. When you post the opening balances of all accounts, the temporary opening account returns to zero.

Troubleshooting ​

MessageCauseFix
Difference Account must be a Asset/Liability type account, since this Stock Reconciliation is an Opening EntryThe Difference Account is an income or expense account.Select the temporary opening account, or another asset or liability account.
Difference Account must be a Asset/Liability type account (Temporary Opening), since this Stock Entry is an Opening EntryThe same, in a Stock Entry with Is Opening set to Yes.Select the temporary opening account in each row.