Use alternative Items ​

An Item Alternative is a substitute for a raw material. When the material in a BOM is out of stock, you can consume the alternative instead and still complete the production or the subcontracting order.

Prerequisites ​

  • Both Items exist. See Create an Item.
  • Allow Alternative Item is selected on the original Item, in the Details tab. For a two-way alternative, select it on both Items.
  • Both Items have the same Maintain Stock setting. ERPNext also warns if Include Item In Manufacturing, Has Serial No, or Has Batch No differ.

Create an Item Alternative ​

  1. Open the Item Alternative list and select Add Item Alternative.
  2. Select the Item Code of the original Item.
  3. Select the Alternative Item Code.
  4. Select Two-way if each Item can replace the other.
  5. Save.

Item Alternative with Item Code, Alternative Item Code, and Two-way

Allow alternatives in the BOM and the Work Order ​

The alternative is used only where you allow it:

  • In the BOM, select Allow Alternative Item. Work Orders from this BOM get the setting.
  • In a Work Order, you can select or clear Allow Alternative Item for that order only.

The rows of the BOM, the Work Order, and the Stock Entry also have an Allow Alternative Item checkbox. ERPNext fills it from the Item. If it is cleared on a row, you cannot replace the Item on that row.

Replace an Item with its alternative ​

In a draft Work Order or Stock Entry:

  1. Select Alternate Item. In a Stock Entry, it is under Actions.
  2. In the Select Alternate Item dialog, select the Alternate Item for each row that you want to replace. The dialog shows the stock of the alternative in the warehouse.
  3. Confirm. ERPNext replaces the Item in the row. In a Stock Entry, the row keeps the replaced Item in the Original Item field.

Selecting an alternate item in a Work Order

Use alternatives in subcontracting ​

When you send raw materials to a subcontractor with a Stock Entry, you can replace an out-of-stock raw material with its alternative in the same way. The Subcontracting Receipt then consumes the alternative Item. See Subcontracting.

Troubleshooting ​

MessageCauseFix
Allow Alternative Item must be checked on ItemThe original Item, or for Two-way the alternative Item, does not have Allow Alternative Item.Select Allow Alternative Item on the Item.
Alternative item must not be same as item codeBoth fields have the same Item.Select a different alternative.
The value of Maintain Stock differs between ItemsOne Item is a stock Item and the other is not.Use an alternative with the same Maintain Stock setting.