create_sales_invoice
Create a GST sales invoice with stock items and automatically post balanced ledger entries. Assigns the next sequential invoice number when none is provided.
Instructions
Create a GST sales invoice with stock items. Posts balanced accounting ledger transactions. Automatically assigns the next sequential invoice number if omitted. CREATE ONLY. CRITICAL FOR CLAUDE: When this tool succeeds, you MUST output the EXACT text returned by the tool verbatim in a clean copyable message without converting it into tables or adding extra markdown summaries, so the user can easily copy and send the full invoice notification message directly to the party.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD (defaults to today) | |
| notes | No | ||
| party_id | No | ||
| company_id | Yes | ||
| party_name | No | Customer name | |
| stock_lines | Yes | ||
| invoice_number | No | Optional invoice number. If omitted, the next sequential invoice number is automatically assigned. |