SupplyOrder
Represents a supply order in the supply chain management system.
Supply orders manage the flow of materials and products through different stages of the supply chain including manufacturing, assembly, and procurement operations. Each order tracks progress, costs, timelines, and associated items.
Order Types
- **Manufacturing**: Orders for producing new products from raw materials
- **Assembly**: Orders for assembling products from components
- **Procurement**: Orders for purchasing materials or products
Status Lifecycle
Orders progress through various statuses from pending to completed, with tracking of approval and completion by different parties.
Related Data
Each order includes associated items, warehouse/location information, party assignments, and comprehensive tracking of dates, costs, and performance metrics.
type SupplyOrder {
actualWasteRate: BigDecimal
approvedBy: Party
approvedById: ID
batchNumber: String
brand: Brand!
brandId: ID!
completedBy: Party
completedById: ID
createdAt: ISO8601DateTime!
createdBy: Party
createdById: ID
destinationWarehouse: Warehouse
destinationWarehouseId: ID
endDate: ISO8601Date
expectedWasteRate: BigDecimal
id: ID!
instructions: String
laborCost: BigDecimal
laborHours: BigDecimal
orderItems: [SupplyOrderItem!]!
orderNumber: String!
orderType: SupplyOrderTypeEnum!
orderYield: BigDecimal
sourceWarehouse: Warehouse
sourceWarehouseId: ID
startDate: ISO8601Date
status: SupplyOrderStatusEnum!
targetDate: ISO8601Date
updatedAt: ISO8601DateTime!
}
Fields
SupplyOrder.actualWasteRate ● BigDecimal scalar
Actual waste rate
SupplyOrder.approvedBy ● Party object
SupplyOrder.approvedById ● ID scalar
ID of party who approved the order
SupplyOrder.batchNumber ● String scalar
Batch number
SupplyOrder.brand ● Brand! non-null object
Brand this order belongs to
SupplyOrder.brandId ● ID! non-null scalar
ID of the brand this order belongs to
SupplyOrder.completedBy ● Party object
SupplyOrder.completedById ● ID scalar
ID of party who completed the order
SupplyOrder.createdAt ● ISO8601DateTime! non-null scalar
Creation timestamp
SupplyOrder.createdBy ● Party object
Party (user) who created this order
SupplyOrder.createdById ● ID scalar
ID of party who created the order
SupplyOrder.destinationWarehouse ● Warehouse object
Destination warehouse where products will be delivered
SupplyOrder.destinationWarehouseId ● ID scalar
Destination warehouse ID
SupplyOrder.endDate ● ISO8601Date scalar
Actual end date
SupplyOrder.expectedWasteRate ● BigDecimal scalar
Expected waste rate
SupplyOrder.id ● ID! non-null scalar
ID of the supply order
SupplyOrder.instructions ● String scalar
Order instructions
SupplyOrder.laborCost ● BigDecimal scalar
Total labor cost for this order
SupplyOrder.laborHours ● BigDecimal scalar
Total labor hours required for this order
SupplyOrder.orderItems ● [SupplyOrderItem!]! non-null object
Items associated with this supply order
SupplyOrder.orderNumber ● String! non-null scalar
Unique order number
SupplyOrder.orderType ● SupplyOrderTypeEnum! non-null enum
Type of the supply order
SupplyOrder.orderYield ● BigDecimal scalar
Order yield
SupplyOrder.sourceWarehouse ● Warehouse object
Source warehouse where materials are sourced from
SupplyOrder.sourceWarehouseId ● ID scalar
Source warehouse ID
SupplyOrder.startDate ● ISO8601Date scalar
Start date of the order
SupplyOrder.status ● SupplyOrderStatusEnum! non-null enum
Current status of the order
SupplyOrder.targetDate ● ISO8601Date scalar
Target completion date
SupplyOrder.updatedAt ● ISO8601DateTime! non-null scalar
Last update timestamp
Returned By
supplyOrder query ● supplyScheduleOrder mutation
Member Of
SupplyOrderConnection object ● SupplyOrderEdge object ● SupplyOrderItem object