Stock Reconciliation
Stock Reconciliation is the process of counting and evaluating materials/products, periodically and at the year-end.
This is done in order to:
- Keep the actual physical stock count and the stock count in the books in sync.
- Value the stock for the preparation of the accounting statements.
The Stock Reconciliation feature in ERPNext is used for:
- Posting opening stock.
- Reconciling the stock in the books with the actual stock.
To access the Stock Reconciliation list, go to:
Stock > Tools > Stock Reconciliation
1. Opening Stock
Using a Stock Reconciliation, you can set the quantity and valuation of Items in a Warehouse as of a specific date and time. You can also add Items that have Serial Numbers or Batch Numbers.
- Go to the Stock Reconciliation list, click on Add Stock Reconciliation.
- Select the Purpose as 'Opening Stock'. Tick Edit Posting Date and Time to edit the posting date and time.
- Select the Item Code, Warehouse, Quantity, and Valuation Rate. If Serial / Batch Nos are involved, add them.
- If you want to auto-generate the Serial Nos / Batch Nos, keep those fields blank. To auto-generate Serial Nos, set the Serial Number Series in the Item master. To auto-generate Batch Nos, enable the Automatically Create New Batch checkbox in the Item master.
- The Difference Account is set to 'Temporary Opening'.
- Save and Submit.

Note: Maintain Stock should be enabled in the Item master for this to work.
To know more, visit Opening Stock.
2. Stock Reconciliation
Stock Reconciliation is the process of counting and evaluating stock-in-trade, periodically and at the year-end, in order to value the total stock for preparing the accounting statements. In this process, the actual physical stock is checked and recorded in the system. The actual stock and the stock in the system should be in agreement. If they are not, you can use the Stock Reconciliation to reconcile the stock balance and value with the actuals.
To reconcile the stock:
- Go to the Stock Reconciliation list, click on Add Stock Reconciliation.
- Select the Purpose as 'Stock Reconciliation'. Tick Edit Posting Date and Time to edit the posting date and time.
- Optionally, set the Default Warehouse to fill the Warehouse in all the rows.
- Set the Item Code and Warehouse in the Items table.
- The current Quantity and Valuation Rate are fetched. Change the Quantity and/or Valuation Rate to the actual values.
- The Difference Account is set to 'Stock Adjustment' by default, and the Cost Center to the default Cost Center of the Company. Change them if needed.
- Save and Submit.

In each row, the Before reconciliation section shows the Current Qty, Current Valuation Rate and Current Amount as per the system. The Quantity Difference and Amount Difference are calculated on saving.

On submission, the stock is set to the new quantity and valuation rate. With Perpetual Inventory, the difference in stock value is booked against the Difference Account.
3. Reconciliation Features
3.1 Fetch Items from a Warehouse
Click on Fetch Items from Warehouse to fetch the stock balance and valuation of all Items in a selected Warehouse, as of the posting date and time. You can also filter by Item Code, and tick Ignore Empty Stock to skip Items with no stock. Then click on Update. You can then change the Quantity and Valuation Rate as needed.

3.2 Upload Data Through a Spreadsheet
If you have a lot of Items, you can upload the details via a spreadsheet.
- Click on Download below the Items table to download the template in CSV format (the Download button is shown once there are rows in the table).
- Enter the data in the template. Do not edit the headers of the template. In the Item Code and Warehouse columns, enter the exact Item Code and Warehouse as created in your ERPNext account. For the quantity, enter the stock level you wish to set for that Item in the Warehouse.
- Click on Upload below the Items table and select the file.
- Review, Save and Submit.
- Check the Stock Ledger report for the updated stock balance.
3.3 Using a barcode scanner to count physical inventory
If you have configured barcodes for your Items, you can use a barcode scanner to reconcile physical quantities:
- Set the Default Warehouse.
- Tick Scan Mode. This disables fetching the existing quantity and lets you add quantities by scanning the Items one by one.
- Click on the Scan Barcode field and scan the Items with your barcode scanner. The Items table is updated as you scan.
4. Serial and Batch Items
From version 15 onwards, stock transactions for serial / batch Items are made using the Serial and Batch Bundle. For a Stock Reconciliation, there are two options to create the Serial and Batch Bundle.
4.1 Use Serial No / Batch Fields
You can use the Serial No / Batch No fields in the row to create a Serial and Batch Bundle automatically. To do this, enable the Use Serial No / Batch Fields checkbox in the row. The Use Serial / Batch fields setting in Stock Settings enables this by default.
4.2 Use the Serial and Batch Bundle
You can also click on Add Serial / Batch No in the row to create the Serial and Batch Bundle for the reconciliation. Here, you can choose to either reconcile all Serial Nos / Batches or only the selected ones:
- Reconcile Selected Serial Nos / Batches: Untick Reconcile All Serial Nos / Batches and create a Serial and Batch Bundle for specific Serial Nos or Batches. The system automatically creates the Current Serial / Batch Bundle for the Serial Nos or Batches selected in the bundle. For example, if you have 10 batches and want to change the valuation rate of only 2 batches, untick the checkbox and create the Serial and Batch Bundle for those 2 batches with the new valuation rate.
- Reconcile All Serial Nos / Batches: Tick Reconcile All Serial Nos / Batches and create a Serial and Batch Bundle. For example, if you have 10 batches and want to keep only one batch, the system will automatically consume the other 9 batches and keep the one batch in the bundle on submission of the Stock Reconciliation.