Skip to main content

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.

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 @deprecated
brandId: ID @deprecated
completedBy: Party
completedById: ID
createdAt: ISO8601DateTime!
createdBy: Party
createdById: ID
destinationWarehouse: Warehouse
destinationWarehouseId: ID
endDate: ISO8601Date
expectedWasteRate: BigDecimal
id: ID!
instructions: String
laborCost: BigDecimal @deprecated
laborCostMonetary: MonetaryValue
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 common​

Actual waste rate

SupplyOrder.approvedBy ● Party object common​

SupplyOrder.approvedById ● ID scalar common​

ID of party who approved the order

SupplyOrder.batchNumber ● String scalar common​

Batch number

SupplyOrder.brand ● Brand deprecated object common​

DEPRECATED

This field will be removed in the future. Brand is becoming a product-only attribute.

Brand this order belongs to.

SupplyOrder.brandId ● ID deprecated scalar common​

DEPRECATED

This field will be removed in the future. Brand is becoming a product-only attribute.

ID of the brand this order belongs to

SupplyOrder.completedBy ● Party object common​

SupplyOrder.completedById ● ID scalar common​

ID of party who completed the order

SupplyOrder.createdAt ● ISO8601DateTime! non-null scalar common​

Creation timestamp

SupplyOrder.createdBy ● Party object common​

Party (user) who created this order

SupplyOrder.createdById ● ID scalar common​

ID of party who created the order

SupplyOrder.destinationWarehouse ● Warehouse object warehouses​

Destination warehouse where products will be delivered

SupplyOrder.destinationWarehouseId ● ID scalar common​

Destination warehouse ID

SupplyOrder.endDate ● ISO8601Date scalar common​

Actual end date

SupplyOrder.expectedWasteRate ● BigDecimal scalar common​

Expected waste rate

SupplyOrder.id ● ID! non-null scalar common​

ID of the supply order

SupplyOrder.instructions ● String scalar common​

Order instructions

SupplyOrder.laborCost ● BigDecimal deprecated scalar common​

DEPRECATED

Use laborCostMonetary instead.

Total labor cost for this order

SupplyOrder.laborCostMonetary ● MonetaryValue object common​

Total labor cost for this order

SupplyOrder.laborHours ● BigDecimal scalar common​

Total labor hours required for this order

SupplyOrder.orderItems ● [SupplyOrderItem!]! non-null object orders​

Items associated with this supply order

SupplyOrder.orderNumber ● String! non-null scalar common​

Unique order number

SupplyOrder.orderType ● SupplyOrderTypeEnum! non-null enum orders​

Type of the supply order

SupplyOrder.orderYield ● BigDecimal scalar common​

Order yield

SupplyOrder.sourceWarehouse ● Warehouse object warehouses​

Source warehouse where materials are sourced from

SupplyOrder.sourceWarehouseId ● ID scalar common​

Source warehouse ID

SupplyOrder.startDate ● ISO8601Date scalar common​

Start date of the order

SupplyOrder.status ● SupplyOrderStatusEnum! non-null enum orders​

Current status of the order

SupplyOrder.targetDate ● ISO8601Date scalar common​

Target completion date

SupplyOrder.updatedAt ● ISO8601DateTime! non-null scalar common​

Last update timestamp

Returned By​

supplyOrder query ● supplyScheduleOrder mutation

Member Of​

SupplyOrderConnection object ● SupplyOrderEdge object ● SupplyOrderItem object