File a pending draft converting a quote into an invoice or a delivery order (a person approves in Taokeh)
create_quote_conversion_draftFiles a pending draft of Convert on a quote. target invoice makes an invoice, as Convert to invoice does, and posts its journal lines on approval; delivery_order makes a delivery order, as Convert to delivery order does, which posts nothing until it is invoiced. The whole quote converts: its customer, currency, lines, prices, discounts and tax codes carry over, dated docDate. Nothing is saved until an admin or bookkeeper approves in Taokeh; approval converts it exactly as the quote page does and marks the quote converted. The result carries the document it becomes (customer, lines, subtotal, tax, total, stock moved) and the journal lines, as the rolled-back conversion produced them; its number is given at approval. Refused at filing and approval in the page's words: a quote not open (converted, voided, expired), a quote with no lines, a date in a locked period. One conversion draft per quote waits at a time; if the quote is edited or converted before approval, approval refuses and nothing is saved.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"quoteId": "<quoteId>",
"target": "<target>",
"docDate": "<docDate>"
},
"name": "create_quote_conversion_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | A short note for the reviewer: where the figures came from. | |
| target | Yes | What the quote becomes. | |
| docDate | Yes | The invoice or delivery order date, YYYY-MM-DD. | |
| quoteId | Yes | The open quote, from search_documents (docType `quote`). | |
| needsReview | No | true flags the draft for the reviewer. |