W091: Delete BOM
Removes the BOM for an output SKU. Triggered from BOM Detail. Existing WOs that reference this output SKU keep their frozen snapshot and are unaffected.
Steps
-
Load the BOM. Call
BOM.getBomById. -
Delete the BOM. Call
BOM.deleteBom. The items cascade away at the DB layer.
Returns
Nothing.
Business rules
- In-flight WOs are unaffected. Their
work_order_inputssnapshot survives the BOM deletion. - New WOs require a BOM. Once deleted, the output SKU cannot be used in W129 (Create work order) until a BOM is re-created.
Errors
NotFoundError. The BOM was not found.