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
- Open the Item Alternative list and select Add Item Alternative.
- Select the Item Code of the original Item.
- Select the Alternative Item Code.
- Select Two-way if each Item can replace the other.
- Save.

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:
- Select Alternate Item. In a Stock Entry, it is under Actions.
- 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.
- Confirm. ERPNext replaces the Item in the row. In a Stock Entry, the row keeps the replaced Item in the Original Item field.

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
| Message | Cause | Fix |
|---|---|---|
| Allow Alternative Item must be checked on Item | The 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 code | Both fields have the same Item. | Select a different alternative. |
| The value of Maintain Stock differs between Items | One Item is a stock Item and the other is not. | Use an alternative with the same Maintain Stock setting. |