Skip to main content
Version: v1.0.0(int)

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

  1. Load the BOM. Call BOM.getBomById.

  2. 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_inputs snapshot 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.