Export quarterly VAT filings
export_vat_returnPrepare quarterly VAT filings as EPO XML files for Moje daně: VAT return, control statement, and EC sales list when EU services apply, returning computed form rows and file paths.
Instructions
Prepare the quarterly VAT filings as EPO XML files: VAT return (DPHDP3), control statement (DPHKH1) and, only if there were EU services, the EC sales list (DPHSHV). Returns the computed form rows and file paths.
Side effects: first runs the same import as sync_invoices (new PDFs are added to the ledger and the
import-issue lists are rewritten), then writes into
~/Documents/Účetnictví/Přehledy//_Q_přehledy/{DPH,KH,SH}/. File names carry a timestamp, so
every non-preview call adds a new set of files instead of overwriting. Nothing is filed: the user uploads the
files on Moje daně (EPO). Requires a quarterly VAT payer and the epo section in ~/.ucetka/tax.yaml; fails
on documents that cannot be classified (e.g. an EU supplier without DIČ, VAT ID). Resolve
list_import_issues first. For a quick look at VAT due use tax_overview.
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": {
"year": "<year>",
"quarter": "<quarter>"
},
"name": "export_vat_return"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | Calendar year of the VAT quarter, e.g. 2026. | |
| preview | No | True = only compute and show the form rows, write no XML files (the import sync still runs). Default False. | |
| quarter | Yes | VAT quarter 1–4 (1 = January–March, … 4 = October–December). | |
| filed_on | No | Filing date YYYY-MM-DD written into the XML forms. Omitted = today. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |