Avansni račun (otvaranje i zatvaranje)
tezga_avansOpens an advance invoice with amount, payment date, tax rate and buyer; optionally closes it with items to refund the advance and issue the final invoice, requiring production confirmation.
Instructions
Otvara avansni račun (iznos, datumUplate, stopa, kupac). Sa zatvori=true i stvarnim stavkama izdaje refundaciju avansa pa konačni račun. U produkciji traži potvrdiProdukciju=true.
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": {
"telo": "<telo>"
},
"name": "tezga_avans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| telo | Yes | Telo zahteva po OpenAPI /advance: npr. { externalId, iznos, datumUplate, poreskaStopa, kupac } ili { externalId, zatvori: true, stavke } | |
| potvrdiProdukciju | No |