Manage manufacturing BOMs and work orders. Use when running `stateset-manufacturing`, creating bills of materials, or tracking production work orders.
Create bills of materials (BOMs) and run work orders for production.
product_id and version.sku, quantity per unit, and unit of measure.quantity and due date.stateset-manufacturing ... or stateset "create work order for product PROD-001 quantity 100"--apply.create_bom, add_bom_component, activate_bom, create_work_order, start_work_order, complete_work_order.create_bom, add_bom_component, activate_bom, create_work_order, start_work_order, complete_work_order — requires --apply.stateset manufacturing bom create --product PROD-001 --version 1 --apply
stateset manufacturing bom add-component --bom bom_101 --sku COMP-A --qty 4 --apply
stateset manufacturing wo create --product PROD-001 --qty 100 --due 2026-04-15 --apply
stateset manufacturing wo complete --wo wo_123 --output 98 --scrap 2 --apply
BOM: Draft -> Active -> Archived
Work Order: Created -> Started -> Completed (or Cancelled)
{"status":"completed","work_order_id":"wo_123","product_id":"prod_001","completed_quantity":98,"scrap_quantity":2}
activate_bom before creating work orders.BOM_INACTIVE: BOM must be activated before creating work orders.COMPONENT_MISSING: Required component SKU not found or has zero stock.YIELD_BELOW_THRESHOLD: Output quantity is below the acceptable yield rate.