ERP: Sales report (period, client, product)
erp_sales_reportWhat the company SOLD over a period, from the ERP: revenue, number of sales, units, average check, margin (by each item's current cost, when the catalog has it), month by month, top clients and top products. Counts sales orders (the web shop's, the cabinet's and those recorded in this chat; not drafts, not cancelled) and sales invoices without an order. Answers «скільки продав за жовтень», «порівняй жовтень і листопад» (since=2026-10-01, until=2026-11-30 → by_month), «що купувала Спирова» (client → her sales one by one with items), «скільки продали B12 за місяць» (item → units, revenue, buyers), «топ товарів / клієнтів», «маржа». Dates: 'since' / 'until' YYYY-MM-DD or YYYY-MM (a whole month); default this month to today. Read-only; say the numbers exactly as returned with the period. For the till of a retail shop (POS receipts) and for a retail chain's points / shops / «відділи» (their daily reports) use retail_sales_summary instead.
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": "erp_sales_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| item | No | One product (name words, number or barcode). | |
| since | No | ||
| until | No | ||
| client | No | A client's name: their sales, one by one. | |
| group_by | No | ||
| list_sales | No | Also list the sales one by one (newest first). | |
| all_matches | No | The client name matches several cards: take all. | |
| organization_id | No |