manufacturingOrdersCreate
Creates a Draft manufacturing order with copied BOM lines.
Business Rules
- The building, outputs, and revisions must belong to the company.
- Outputs are optional. A Draft order can be saved without products and have them added later; it cannot be allocated until it has at least one.
- The order number is generated from the company's manufacturing order number template
when omitted.
manufacturingOrderNextNumbersuggests one to show in advance; a number already taken is refused. - Component costs follow the chosen source and fallback rule.
- Each output’s labor and packaging amounts start at the product’s latest per-unit labor and packaging costs times the planned quantity. A cost the product does not have stays blank.
- The lot number is trimmed, and a blank one is stored as null. It can be up to 100 characters, and instructions up to 20,000.
- Expected Completion cannot be before Expected Start.
- Both manufacturing and supply chain entitlements are required.
Error Scenarios
- “Manufacturing orders are not enabled for this company”
- “Manufacturing order number must be 40 characters or fewer.”
- “Manufacturing order number MFG-2026-0001 is already used. Enter a different number.”
- “SKU: the planned quantity cannot be negative.”
- “SKU can’t be both made and used on one manufacturing order.”
- “Lot number must be 100 characters or fewer.”
- “Instructions must be 20,000 characters or fewer.”
- “Expected Completion can’t be before Expected Start.”
- “parsec” isn’t a unit we recognize. (Units are matched by name, label, or symbol, ignoring case.)
Permissions Required
manufacturing:create_orders
manufacturingOrdersCreate(
input: ManufacturingOrdersCreateInput!
): ManufacturingOrder!
Arguments
manufacturingOrdersCreate.input ● ManufacturingOrdersCreateInput! non-null input common
Parameters for ManufacturingOrdersCreate
Type
ManufacturingOrder object manufacturing
An order to make finished products at a building.