set_pricing
Price a condition's estimate line by setting material cost per order unit and labor per measured unit, plus supporting-material prices. Enter 0 for an explicit zero or null to clear a price back to unentered.
Instructions
Price one condition for the estimate — the canvas Estimate panel's row. unit is what the condition is bought in (SF, SY, LF, EA); material and labor are $ per that unit: material is priced on the ORDER quantity (waste applied — SY is the waste-adjusted SY), labor on the MEASURED quantity (no waste); EA carries no waste on either. materials prices the condition's supporting-material rows (from edit_materials) per THEIR unit (bag, pail, roll) — quantities are already whole packages. null clears a price back to "not entered"; 0 is an explicit $0 (owner-furnished material, labor-only scope). Every price comes from the estimator or a document they gave you — never invent, estimate or 'typical' one; a price nobody entered stays unentered and estimate_summary names it. The reply carries the condition's estimate line. Rides export_takeoff into the app; undo_last reverses the call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Pricing unit (default: what was measured — area, then length, then count) | |
| labor | No | Labor $ per unit, on the measured quantity; null clears | |
| material | No | Material $ per unit, on the order quantity; null clears | |
| condition | Yes | Finish tag of an existing condition, e.g. 'CPT-1' | |
| materials | No | Prices for the condition's supporting-material rows |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | The condition's estimate line after this write; null while it has no committed shapes | |
| note | No | ||
| pricing | Yes | The condition's prices after this write; an absent field is not entered | |
| condition | Yes | ||
| condition_id | Yes | ||
| material_prices | Yes |