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
Total number of active (not closed or canceled) purchase orders
POStats.atRisk ● Int! non-null scalar
Number of purchase orders at risk (expected date has passed but not yet delivered, or delivered late)
POStats.averageLeadTime ● Decimal! non-null scalar
Average lead time in days between confirmed date and delivered date for completed purchase orders
POStats.countByMilestone ● [POByMilestone!]! non-null object
Count of purchase orders grouped by milestone (pre_production, production, pre_shipment, shipment, delivery)
POStats.totalPoValue ● MonetaryValue! non-null object
Total value of all purchase orders in the base currency unit
Returned By
supplyPOStats query