brc_generate_sales_invoice_from_quote
Generate a sales invoice from a BRC quote. First call shows a draft for review; explicit user confirmation is required before final creation.
Instructions
Generates a sales invoice from a BRC quote. First call without confirmWrite: true returns confirmation_required and a payload preview — show a plain-English draft in chat, then retry with confirmWrite: true only after explicit user confirmation in a later message. Passing preflight is not confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quoteId | Yes | Quote id. | |
| procDate | No | Optional invoice processing date in ISO format. | |
| entryDate | No | Optional invoice entry date in ISO format. | |
| companyName | Yes | Company context name, for example YOUR-COMPANY-NAME. | |
| confirmWrite | No | Must be true only after a plain-English draft has been shown in the current conversation and the user explicitly confirmed posting (for example yes, create it / post it now / confirm). Never set true on the first call or because the user initially asked to create something. |