invoice_issued_deduct_advance
Deduct an advance invoice from a tax document invoice to reduce the payable amount, applying the advance total as a credit.
Instructions
Deduct an advance invoice from a tax document invoice (Odpocet zaloh a ZDD).
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": {
"advance_invoice_id": "<advance_invoice_id>"
},
"name": "invoice_issued_deduct_advance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Invoice ID | |
| kod | No | Invoice code (alternative to id) | |
| extra_fields | No | Deduction properties; 'castkaMen' defaults to the advance invoice's total | |
| advance_invoice_id | Yes | ID (or 'code:X') of the advance ('zalohova') invoice being deducted |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |