Create bill
create_billRecords a vendor bill with line items and optional project assignment, entering invoice details so costs appear in job costing. Saves the bill as Open without payment or sending.
Instructions
Records a vendor bill with its line items, optionally against a project.
Enters a bill from a vendor in Contractor Foreman: the vendor's invoice number, bill and due date, subject, notes and line items (description, quantity, unit, unit cost, cost type). With a project_id the cost shows in that project's job costing. The bill starts Open and nothing is paid or sent. Returns the saved bill.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Line items. The total is the sum of quantity times unit cost. | |
| notes | No | ||
| number | Yes | The vendor's invoice number. | |
| subject | No | ||
| due_date | No | YYYY-MM-DD. | |
| bill_date | No | YYYY-MM-DD. Default: today. | |
| vendor_id | Yes | A vendor's contact_id (list_contacts type vendor). | |
| project_id | No | The project the cost belongs to. |