ReportingMu Mutation

updateRecordedCost

Topics: Costing

Update a recorded cost. Only provided fields are changed. Requires recordedcost:write permission.

Returns

UpsertRecordedCostPayload!

Arguments

Recorded cost ID to update

Fields to update — only provided fields are changed

Examples

Correct an actual job cost

mutation CorrectERPJobCost($id: RecordedCostID!, $input: UpdateRecordedCostInput!) {
  updateRecordedCost(id: $id, input: $input) {
    recordedCost { id jobId quantity unitRate totalCost currency description }
    errors { path message }
  }
}

Variables

{
  "id": "rco_00000000008008000000000202",
  "input": {
    "quantity": 2.75,
    "description": "Autumn brochure — corrected press time"
  }
}
Exact field SDL
"""
Update a recorded cost. Only provided fields are changed. Requires recordedcost:write permission.
"""
updateRecordedCost(
  """Recorded cost ID to update"""
  id: RecordedCostID!
  """Fields to update — only provided fields are changed"""
  input: UpdateRecordedCostInput!
): UpsertRecordedCostPayload! @topic(names: ["costing"]) @topic_example(names: ["erp.correct-job-cost"])

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