ReportingQu Query

jobCostingSummary

Topics: Costing Jobs

Get a costing summary for a job including material and operation costs. Requires job:read.

Returns

JobCostingSummaryPayload!

Arguments

jobId

JobID!Required

Job to cost, as a JobID TypeID (e.g. "job_01K…"). An id that matches no job in the caller's tenant is not an error: the payload comes back with a null job, zero totals and a "job not found" entry in errors.

Examples

Review Printing Costs

query ReviewPrintingCosts($jobId: JobID!) {
  jobCostingSummary(jobId: $jobId) {
    job { id name }
    totalMaterialCost totalOperationCost totalCost
    recordedCostsAvailable totalRecordedCost recordedCostCurrency
    sellingPrice sellingPriceCurrency recordedCostMargin
    errors { path message }
  }
}

Variables

{
  "jobId": "job_0h248h248h848r248h248h248h"
}
Exact field SDL
"""
Get a costing summary for a job including material and operation costs. Requires job:read.
"""
jobCostingSummary(
  """
  Job to cost, as a JobID TypeID (e.g. "job_01K…"). An id that matches no job in the caller's tenant is not an error: the payload comes back with a null job, zero totals and a "job not found" entry in errors.
  """
  jobId: JobID!
): JobCostingSummaryPayload! @topic(names: ["jobs", "costing"]) @topic_example(names: ["production.review-costs"])

Declared on Query. Access is checked by the platform for each operation.