Create Material Requests automatically ​

To avoid running out of stock, set a reorder level for each Item: the stock level at which you order more. Once a day, ERPNext checks the projected quantity of each Item. When the quantity is at or below the reorder level, ERPNext creates a Material Request and emails your buyers.

Prerequisites ​

  • Stock Items that are not disabled and are not past their end of life.
  • A Fiscal Year that covers today's date.

Set the reorder levels on an Item ​

  1. Open the Item.
  2. In the Auto re-order section, add a row to the Reorder level based on Warehouse table for each warehouse:
    • Request for: the warehouse that needs the stock.
    • Check Availability in Warehouse: optional. A group warehouse whose total projected quantity ERPNext compares with the reorder level. If it is blank, ERPNext uses the Request for warehouse.
    • Re-order Level: the projected quantity at which ERPNext creates a request.
    • Re-order Qty: the quantity to request.
    • Material Request Type: Purchase, Transfer, Material Issue, or Manufacture. It sets the type of the Material Request.
  3. Save the Item.

An Item variant without its own reorder levels uses the reorder levels of its template.

Turn on automatic Material Requests ​

  1. Open Stock Settings and go to the Stock Planning tab.
  2. Select Raise Material Request when stock reaches re-order level.
  3. To get an email for each new request, select Notify by email on creation of automatic Material Request.
  4. Save the settings.

How ERPNext creates the requests ​

Every day, ERPNext does these checks for each row of the reorder table:

  1. It reads the projected quantity of the Item in the warehouse.
  2. If the projected quantity is at or below the Re-order Level, ERPNext adds the Item to a Material Request. If it is above, ERPNext skips the Item.
  3. ERPNext requests the Re-order Qty. If the shortfall below the reorder level is larger, it requests the shortfall instead.

ERPNext creates one Material Request for each company and each Material Request type. For a Purchase request, it uses the purchase UOM of the Item.

If notification is on, ERPNext emails the new requests to users with the Purchase Manager or Stock Manager role. When you have more than one company, only users with a permission for the company get the email.

Troubleshooting ​

If ERPNext cannot create a request, it emails the System Managers with the subject "[Important] [ERPNext] Auto Reorder Errors". The email starts with:

An error occurred for certain Items while creating Material Requests based on Re-order level.

The error that follows in the email gives the cause. A common cause is a date that is not in any Fiscal Year, for example "Date 01-04-2026 not in any Fiscal Year". Create the Fiscal Year. Learn more about the Fiscal Year error.

If no request is created for an Item, check these:

  • The Item is a stock Item, is not disabled, and is not past its end of life.
  • The reorder row has a Re-order Level or a Re-order Qty.
  • The projected quantity is at or below the reorder level. If Check Availability in Warehouse is set, ERPNext uses the projected quantity of that group warehouse.
  • The Request for warehouse is not disabled.