materials_add
Record a material used on a job (optionally on one of its visits): from the price book (pricebook_item_id; its name, unit, price, cost and taxable are copied as they are now) or typed in (name, unit, and optionally the price and cost per unit). Any worker of the shop can record materials, including one who may not see prices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| unit | No | Default: each. | |
| notes | No | ||
| job_id | Yes | ||
| taxable | No | Default true. | |
| quantity | Yes | Up to 3 decimals (for example 2.5 for feet or gallons). | |
| visit_id | No | ||
| unit_cost_minor | No | ||
| unit_price_minor | No | ||
| pricebook_item_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||