Create a warehouse
A warehouse in ERPNext is any place where you keep stock: a building, a room, a rack, or a shelf. ERPNext keeps the stock balance of every Item in every warehouse, so you can see the quantity of an Item in one warehouse on any date.
You can group warehouses into a tree, for example:
Warehouse > Room > Row > Shelf > Bin
A group warehouse holds other warehouses. You cannot post stock to a group warehouse. Stock goes into the warehouses at the bottom of the tree.
Prerequisites
- A company. Each warehouse belongs to one company.
Create a warehouse
- Open the Warehouse list and select Add Warehouse.
- Enter the Warehouse Name.
- Select the Company.
- To let this warehouse hold other warehouses, select Is Group Warehouse.
- Select the Parent Warehouse, the group that this warehouse belongs to.
- Optionally, set these fields:
- Account: the inventory account for stock in this warehouse. If it is blank, ERPNext uses the account of the parent warehouse, or the company default.
- Warehouse Type: a label that classifies warehouses, for example Stores, Work in Progress, or Transit. You create the types in the Warehouse Type list. This field is not shown for a group warehouse.
- Default In-Transit Warehouse: the target warehouse that ERPNext sets in a Material Transfer Stock Entry from this warehouse when Add to Transit is selected. Not shown when Warehouse Type is Transit. Learn about goods in transit.
- Is Rejected Warehouse: marks the warehouse as the store for rejected material.
- Customer: links the warehouse to a customer. Use it only for Subcontracting Inward.
- Save the warehouse.
ERPNext adds the company abbreviation to the name. For example, Stores in a company with the abbreviation WP becomes Stores - WP. The suffix shows which company a warehouse belongs to.
After you save, the Address and Contact section appears. Add the warehouse address and a contact, for example the warehouse manager.
Actions on a saved warehouse
| Button | What it does |
|---|---|
| View > Stock Balance | Opens the Stock Balance report for this warehouse. |
| View > General Ledger | Opens the General Ledger for the inventory account of this warehouse. Shown for a warehouse that is not a group and that has an account. |
| Convert to Group / Convert to Ledger | Changes a warehouse into a group warehouse, or back. ERPNext does not allow it after the warehouse has stock transactions, or, for Convert to Ledger, while it has child warehouses. |
| Disable / Enable | Disables the warehouse so that it cannot be used in new transactions, or enables it again. |
View the warehouse tree
In the Warehouse list, switch to the Tree view. It shows the group warehouses and the warehouses under them.

Link warehouses to accounts
With perpetual inventory, each warehouse is linked to an account in the chart of accounts. The account holds the value of the stock in that warehouse.
If you have a detailed tree of rooms, rows, and shelves, link the child warehouses to the account of the main warehouse. Most businesses do not need a separate stock value for each shelf. For example, if rooms B and C are in warehouse A, link B and C to the account of A.
Learn more about inventory accounts.
Troubleshooting
| Message | Cause | Fix |
|---|---|---|
| Warehouse can not be deleted as stock ledger entry exists for this warehouse. | The warehouse has stock transactions. | Disable the warehouse instead. |
| Child warehouse exists for this warehouse. You can not delete this warehouse. | Other warehouses sit under this group. | Move or delete the child warehouses first. |
| Warehouses with existing transaction can not be converted to group. | The warehouse has stock transactions. | Create a new group warehouse and place this warehouse under it. |
Account account does not belong to Company company | The Account belongs to another company. | Select an account of the warehouse's company. |