BOMs
Bills of Materials, how ERP costs them, and the tools that build and update them.
A BOM (Bill of Materials) lists what it takes to make quantity of an Item: components, operations and secondary items. Secondary items are ERPNext v16's name for scrap, co-products and by-products. A BOM is submittable, and only a submitted BOM can be used on a Work Order.
Make a BOM
Open BOM > New. Pick the Company and the Item to Manufacture, and set Quantity (Output Qty).
Add rows to Components. A row that is itself made in house names its own BOM in bom_no.
Tick With Operations to add operations, or pick a Routing to copy its operations.
Save. ERP fills each row from its Item, rates it, costs the operations and explodes sub-assemblies into Exploded Items. Submit when it is right.
ERP names the BOM BOM-<item>-###. It refuses a BOM that contains itself further down the tree. One BOM per Item is the default, and it is written to the Item's default_bom.
How the cost is worked out
| Part | Source |
|---|---|
| Raw material cost | Each component's rate by Rate Of Materials Based On: Valuation Rate, Last Purchase Rate or Price List. A sub-assembly takes its own BOM's unit cost |
| Operating cost | Each operation's minutes at its workstation's hour rate |
| Secondary items cost | Each secondary item at its rate, taken off the total |
Example
Raw material WO-RM1 has a valuation rate of 13.50 and WO-RM2 of 7.25. Workstation WO WS costs 300 an hour.
| BOM | Makes | Components | Operations | Total cost |
|---|---|---|---|---|
| Sub-assembly | 2 WO-SUB | 3 WO-RM1, 4 WO-RM2 | none | 69.50 |
| Finished good | 1 WO-FG | 2 WO-SUB, 1 WO-RM2 | WO Assemble, 30 min at WO WS | 224.75 |
The finished good's raw material cost is 2 × 34.75 + 7.25 = 76.75. Its operating cost is 30 minutes at 300 an hour, 150.
Fields that matter
| Field | Use |
|---|---|
| Is Active, Is Default | Only active BOMs are offered; the default is the Item's default_bom |
| % Process Loss | The share of the output expected to be lost |
| Transfer Material Against | Work Order or Job Card |
| Finished Goods based Operating Cost | Use Operating Cost Per BOM Quantity instead of operation rows |
| Is Phantom BOM | Reports such as BOM Stock Analysis replace a phantom item with its own BOM's items |
The RPC erp.bom.update_cost recosts a BOM and its submitted parents.
Produce an Item at Each Operation (track_semi_finished_goods) keeps its fields, but Work Orders do not fill the semi-finished materials yet. The website fields are stored, and no web page shows them.
BOM Creator
BOM Creator drafts a whole BOM tree in one record. Each row points at its parent row. On submit, a background job submits one BOM per sub-assembly and then the finished good's. The record's status moves through In Progress to Completed or Failed, with the error in Error Log.
BOM Update Tool
The BOM Update Tool is a single with two buttons.
| Button | What it does |
|---|---|
| Replace | Replaces Current BOM with New BOM in every BOM that uses it |
| Update latest price in all BOMs | Recosts every BOM, one level of the tree at a time |
Each run is a submitted BOM Update Log with status Queued, In Progress, Completed or Failed. The log keeps the level and the BOMs done so far. If a node dies mid-run, a job every 15 minutes restarts the log and redoes the batch that was pending.
Manufacturing Settings' Update BOM Cost Automatically runs Update Cost every day.
BOM Comparison Tool
The desk page at /desk/bom-comparison-tool shows two BOMs side by side with their differences.