CreateManufacturingOrder
Creates a new manufacturing order.
Parameters:
| Parameter | Type | Description |
|---|---|---|
input | ManufacturingOrderInput! | Manufacturing order data. |
mutation CreateManufacturingOrder($input: ManufacturingOrderInput!) {
CreateManufacturingOrder(input: $input) {
id
label
status
quantity
variant {
id
label
}
}
}CreateManufacturingOrderFrom
Creates a manufacturing order from a sales order.
Parameters:
| Parameter | Type | Description |
|---|---|---|
input | ManufacturingOrderFromInput! | Source order data. |
UpdateManufacturingOrder
Updates an existing manufacturing order.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Manufacturing order ID. |
input | ManufacturingOrderInput! | Updated fields. |
DeleteManufacturingOrder
Deletes a manufacturing order.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Manufacturing order ID. |
GenerateManufacturingOrderNumber
Generates the next manufacturing order number.
Parameters:
| Parameter | Type | Description |
|---|---|---|
location_id | ID | Location ID (optional). |
TransitionManufacturingOrderStep
Transitions a manufacturing order step to a new status.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Manufacturing order ID. |
input | TransitionManufacturingOrderStepInput! | Step transition data. |
TransitionManufacturingOrderBatchStep
Transitions a manufacturing order batch step to a new status.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Batch ID. |
input | TransitionManufacturingOrderBatchStepInput! | Step transition data. |
CreateManufacturingOrderSendComponentsStockAdjustment
Creates a stock adjustment for sending components to manufacturing.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Manufacturing order ID. |
CreateManufacturingOrderBatchReturnStockAdjustment
Creates a stock adjustment for returning unused components from a batch.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Batch ID. |
CreateManufacturingOrderBatch
Creates a new manufacturing order batch.
Parameters:
| Parameter | Type | Description |
|---|---|---|
input | ManufacturingOrderBatchInput! | Batch data. |
UpdateManufacturingOrderBatch
Updates an existing manufacturing order batch.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Batch ID. |
input | ManufacturingOrderBatchInput! | Updated fields. |
PostManufacturingOrderBatch
Posts a manufacturing order batch (confirms production).
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | Batch ID. |
ManufacturingOrderInput data type
| Field | Type | Description |
|---|---|---|
id | ID | ID for updates. |
label | String | Order number. |
notes | String | Internal notes. |
status | ManufacturingOrderStatus | Order status. |
operation_type | ManufacturingOrderOperationType | Build or split. |
on_hold_reason | ManufacturingOrderOnHoldReason | Reason for hold. |
on_hold_note | String | Note for hold. |
quantity | Float | Ordered quantity. |
unit_manufacturing_cost | Float | Cost per unit. |
exceptional_manufacturing_cost | Float | Exceptional costs. |
due_at | Date | Due date. |
planned_start_at | Date | Planned start date. |
planned_end_at | Date | Planned end date. |
actual_start_at | Date | Actual start date. |
actual_end_at | Date | Actual end date. |
variant | ProductVariantIDInput | Product variant. |
supplier | ManufacturingOrderEntityIDInput | Subcontractor. |
bill_of_material | ManufacturingOrderEntityIDInput | BOM to use. |
manufacturing_routing | ManufacturingOrderEntityIDInput | Routing to use. |
order_line_item_id | ID | Source order line item ID. |
location | LocationInput | Manufacturing location. |
steps | [ManufacturingOrderStepInput] | Manufacturing steps. |
lines | [ManufacturingOrderLineInput] | Production lines. |
dependencies | [ManufacturingOrderDependencyInput] | Dependent orders. |
TransitionManufacturingOrderStepInput data type
| Field | Type | Description |
|---|---|---|
step_id | ID! | Step ID. |
status | ManufacturingOrderStepStatus! | New status. |
transitioned_at | DateTime | Transition timestamp. |
exceptional_manufacturing_cost | Float | Exceptional costs. |
ManufacturingOrderBatchInput data type
| Field | Type | Description |
|---|---|---|
manufacturing_order | ManufacturingOrderEntityIDInput! | Parent order. |
location | LocationInput! | Production location. |
produced_quantity | Float! | Produced quantity. |
produced_at | DateTime | Production date. |
enable_finished_batch_tracking | Boolean | Enable batch tracking. |
finished_batch_number | AssemblyBatchNumberInput | Batch number. |
finished_serial_numbers | [SerialNumberInput] | Finished serial numbers. |
finished_serial_number_text | String | Finished serial number text. |
notes | String | Batch notes. |
lines | [ManufacturingOrderBatchLineInput] | Batch lines. |
TransitionManufacturingOrderBatchStepInput data type
| Field | Type | Description |
|---|---|---|
step_id | ID! | Batch step ID. |
status | ManufacturingOrderStepStatus! | New status. |
transitioned_at | DateTime | Transition timestamp. |
exceptional_manufacturing_cost | Float | Exceptional costs. |
ManufacturingOrderBatchLineInput data type
| Field | Type | Description |
|---|---|---|
manufacturing_order_line_id | ID! | Parent line ID. |
actual_quantity | Float! | Actually produced quantity. |
batch_numbers | [AssemblyBatchNumberInput] | Batch numbers for this line. |
serial_numbers | [SerialNumberInput] | Serial numbers for this line. |
serial_number_text | String | Serial number text. |
ManufacturingOrderStepInput data type
| Field | Type | Description |
|---|---|---|
id | ID | Step ID (for updates). |
manufacturing_routing_step_id | ID! | Routing step ID. |
status | ManufacturingOrderStepStatus | Step status. |
started_at | DateTime | Step start time. |
completed_at | DateTime | Step completion time. |
ManufacturingOrderLineInput data type
| Field | Type | Description |
|---|---|---|
id | ID | Line ID (for updates). |
variant | ProductVariantIDInput! | Product variant. |
planned_quantity | Float! | Planned quantity. |
weight | Int | Weight. |
ManufacturingOrderDependencyInput data type
| Field | Type | Description |
|---|---|---|
id | ID! | Dependency ID (for removal). |
ManufacturingOrderFromInput data type
ManufacturingOrderEntityIDInput data type
| Field | Type | Description |
|---|---|---|
id | ID! | Entity identifier. |
