POStats
Purchase order statistics for a brand.
Provides aggregated metrics and insights about purchase orders including milestone distribution, risk assessment, lead time analysis, and total value.
type POStats {
activeOrders: Int!
atRisk: Int!
averageLeadTime: Decimal
countByMilestone: [POByMilestone!]!
totalPoValue: MonetaryValue!
}
Fields
POStats.activeOrders ● Int! non-null scalar common
Total number of active (not closed or canceled) purchase orders
POStats.atRisk ● Int! non-null scalar common
Number of purchase orders at risk (expected date has passed but not yet delivered, or delivered late)
POStats.averageLeadTime ● Decimal scalar common
Average lead time in days between confirmed date and delivered date for completed purchase orders. Returns null when no POs have both dates.
POStats.countByMilestone ● [POByMilestone!]! non-null object purchase-orders
Count of purchase orders grouped by milestone (pre_production, production, pre_shipment, shipment, delivery)
POStats.totalPoValue ● MonetaryValue! non-null object common
Total value of all purchase orders in the base currency unit
Returned By
supplyPOStats query