Complete Job
complete_jobMark a service appointment and work order as completed, and optionally generate an invoice from provided line items.
Instructions
Close out a job: mark the Service Appointment complete, set the Work Order to Completed, and optionally generate an Invoice from the provided line items. Returns a consolidated summary of everything that was updated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | No | Company to bill (required if invoicing). | |
| line_items | No | Invoice line items (used only when generate_invoice is true). | |
| work_order_id | Yes | Work Order to close. | |
| appointment_id | Yes | Service Appointment to complete. | |
| generate_invoice | No | Whether to generate an invoice. | |
| resolution_notes | No | Notes recorded on completion. |