Set up putaway rules
A Putaway Rule tells ERPNext where to store incoming stock of an Item. Each rule sets the capacity of one warehouse for one Item, and a priority. When you receive stock, ERPNext fills the warehouses in order of priority until each one is full.
Putaway rules help you manage capacity in a large store with many locations.
Prerequisites
- A stock Item.
- The warehouses where the Item can be stored.
Create a putaway rule
- Open the Putaway Rule list and select Add Putaway Rule.
- Select the Company and the Item.
- Select the Warehouse.
- Enter the Capacity: the most stock of this Item that the warehouse can hold.
- To enter the capacity in another unit, select a UOM. ERPNext calculates the Capacity in Stock UOM.
- Enter the Priority. 1 is the highest priority.
- Save the rule.
You can create only one rule for each Item and warehouse. To stop using a rule, select Disable.

How ERPNext assigns stock
- ERPNext fills the warehouse with the highest priority first.
- If two rules have the same priority, ERPNext fills the warehouse with more free space first.
- When a warehouse reaches its capacity, ERPNext moves to the next one.
- If all warehouses are full, ERPNext shows the Items and the quantities it could not place.
Apply putaway rules
Putaway rules work in Purchase Receipts and in Stock Entries of type Material Receipt and Material Transfer.
- Create the Purchase Receipt or Stock Entry.
- Select Apply Putaway Rule. ERPNext splits each Item row across warehouses by the rules.
- Check the warehouses and quantities, and submit the document.
When Apply Putaway Rule is selected, ERPNext applies the rules again each time you save.
Example
A Purchase Order asks for 5 cartons (60 Nos) of mineral water. Two active rules each have a capacity of 4 cartons (48 Nos). The rule for Finished Goods - UPI has a higher priority than the rule for Stores - UPI.
In the Purchase Receipt, you select Apply Putaway Rule. ERPNext splits the row of 5 cartons into two rows:
- 4 cartons into Finished Goods - UPI, which is then full.
- 1 carton into Stores - UPI.

Direct and indirect putaway
- Direct putaway: stock goes straight from the supplier to its storage location. Select Apply Putaway Rule in the Purchase Receipt.
- Indirect putaway: stock first goes to a temporary or staging warehouse, then to its storage location. Create the Purchase Receipt into the staging warehouse without the rules. Then create a Material Transfer Stock Entry and select Apply Putaway Rule.
Check warehouse capacity
The Warehouse Capacity Summary page shows each warehouse that has a putaway rule, with its capacity and its stock level. Select Edit Capacity to change the capacity in the rule.
Troubleshooting
| Message | Cause | Fix |
|---|---|---|
Putaway Rule already exists for Item item in Warehouse warehouse. | A rule for this Item and warehouse exists. | Edit the existing rule. |
Warehouse Capacity for Item 'item' must be greater than the existing stock level of qty uom. | The capacity is less than the stock already in the warehouse. | Enter a larger capacity. |
| Priority cannot be lesser than 1. | The priority is 0 or less. | Enter 1 or more. |
Warehouse warehouse does not belong to Company company. | The warehouse belongs to another company. | Select a warehouse of the rule's company. |