Import new invoice PDFs
sync_invoicesImports new issued and received invoice PDFs into the ledger for the current and previous year from ISDOC or Alza data, and reports imported and manual-entry counts.
Instructions
Import new PDFs from the issued-invoices folder (read via the embedded ISDOC e-invoice) and the received-invoices folder (ISDOC, or Alza invoice text) into the ledger, for this and last year.
Side effects: adds records under ~/.ucetka/invoices and ~/.ucetka/expenses, re-links moved PDFs and rewrites the issue lists (import_issues.json, expense_issues.json). Idempotent: already-imported PDFs are skipped, so repeating is safe. No network. Returns counts of imported issued/received documents and of documents needing manual entry. Then call list_import_issues and record each listed document with add_expense (received) or add_manual_invoice (issued). tax_overview and export_vat_return run this import automatically.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sync_invoices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |