pohoda_list_vyroba
Export production documents from POHODA accounting software by specifying document ID, date range, or last changes filter.
Instructions
Export production documents (výroba) from POHODA
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Document ID | |
| dateFrom | No | Date from | |
| dateTill | No | Date to | |
| lastChanges | No | Only changed after this date |
Implementation Reference
- src/tools/production.ts:21-36 (handler)The handler for `pohoda_list_vyroba` that builds the XML request, sends it via the client, and returns the result.
async (params) => { try { const xml = buildExportRequest( { ico: client.ico }, "lst:listVyrobaRequest", NS.lst, "lst:requestVyroba", (req) => applyFilter(req, params), ); const resp = parseResponse(await client.sendXml(xml)); const data = extractListData(resp); return jsonResult("Production documents", data, data.length); } catch (e) { return err((e as Error).message); } }, - src/tools/production.ts:12-20 (registration)Registration and definition of `pohoda_list_vyroba` tool.
server.tool( "pohoda_list_vyroba", "Export production documents (výroba) from POHODA", { id: z.number().optional().describe("Document ID"), dateFrom: z.string().optional().describe("Date from"), dateTill: z.string().optional().describe("Date to"), lastChanges: z.string().optional().describe("Only changed after this date"), },