Setell realized job margin
setell_get_job_marginCompute realized margin for a job: revenue from recorded payments minus per-line costs from price-book. Shows unknown lines honestly.
Instructions
What the operator ACTUALLY made on a job (realized margin). Revenue from recorded payments (fallback: the decided quote total); per-line cost from the operator's price-book provenance, a high-trust price-book match, or labor hours × their loaded labor rate. marginPct is WITHHELD (null) when too little line value has a sourced cost — present the breakdown's UNKNOWN lines honestly instead of inventing a number. OPERATOR-ONLY data: never share cost or margin with a customer. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | The job to compute realized margin for. Find it via setell_find_jobs or the setell://jobs resource. |