pohoda_list_prevodky
Export transfer documents from POHODA accounting software by specifying document ID, date range, or last changes filter.
Instructions
Export transfer documents (převodky) from POHODA
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Document ID | |
| dateFrom | No | Date from (DD.MM.YYYY or YYYY-MM-DD) | |
| dateTill | No | Date to | |
| lastChanges | No | Only changed after this date |
Implementation Reference
- src/tools/warehouse.ts:55-70 (handler)The tool handler logic for listing documents in POHODA, used by pohoda_list_prevodky.
server.tool(toolName, description, listFilterFields, async (params) => { try { const xml = buildExportRequest( { ico: client.ico }, listTag, NS.lst, requestTag, (req) => applyFilter(req, params), ); const resp = parseResponse(await client.sendXml(xml)); const data = extractListData(resp); return jsonResult(description, data, data.length); } catch (e) { return err((e as Error).message); } }); - src/tools/warehouse.ts:142-142 (registration)Registration of the pohoda_list_prevodky tool.
buildWarehouseListTool(server, client, "pohoda_list_prevodky", "Export transfer documents (převodky) from POHODA", "lst:listPrevodkaRequest", "lst:requestPrevodka");