Multiple BOM per Product

The purpose of this page is to offer a solution to help you create multiple BOMs for a single Product. Why is this important: Goals in creating the solution:
  1. Make the solution as flexible as possible to meet the myriad of reasons why someone might want multiple BOMs.
  2. Make the solution play with existing iDempiere without modification (BOM Cost Rollup, Production, etc...)
  3. Make the solution easy to extend to solve more complex scenarios. Example, specifying the BOM in the Production window to support alternative BOMs/Routes on a per-Production basis.
Solution Summary: Solution Details: Replacement M_Product_BOM View:
CREATE OR REPLACE VIEW adempiere.m_product_bom AS
 SELECT cbl.chuboe_product_bomline_id AS m_product_bom_id,
 cbl.ad_client_id,
 cbl.ad_org_id,
 cbl.isactive,
 cbl.created,
 cbl.createdby,
 cbl.updated,
 cbl.updatedby,
 cbl.line,
 cb.m_product_id,
 cbl.m_productbom_id,
 cbl.bomqty,
 cbl.description,
 cbl.bomtype,
 cbl.chuboe_product_bomline_uu AS m_product_bom_uu
 FROM adempiere.chuboe_product_bom cb
 JOIN adempiere.chuboe_product_bomline cbl ON cb.chuboe_product_bom_id = cbl.chuboe_product_bom_id
 WHERE cb.ischuboebompreferred='Y'
;
Other Considerations: