sales_invoice_generate
Generate a draft invoice from an order with line items, tax calculation, totals, and due date based on payment terms. Review before sending to customer.
Instructions
Station 4: Generate invoice data from an order.
Creates a draft invoice with line items, tax calculation, totals, and due date based on payment terms.
IMPORTANT: Review invoice details before sending to customer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | Order identifier (e.g. ORD-A1B2C3D4) | |
| payment_terms | No | Payment terms (net30, net60, due_on_receipt, etc.) | net30 |
| tax_rate | No | Decimal tax rate (e.g. 0.0875 for 8.75%) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||