Calculate invoice totals
calculate_invoiceComputes every amount on an invoice without saving it: line and invoice discounts before tax, sales tax by rate, delivery charges, amount paid, balance due, and total in words.
Instructions
Works out every amount on an invoice without saving anything: line and invoice discounts (applied before tax), sales tax by rate, delivery charges, amount paid, balance due, and the total in words (English and Urdu for PKR).
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": {
"invoice": "<invoice>"
},
"name": "calculate_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes |