Revenue (invoices minus credit notes)
revenueCalculates net sales (invoices minus credit notes) for a voucher date range in Lexware Office, per currency with tax and gross; optionally groups totals by month.
Instructions
Net revenue (invoices minus credit notes) of a voucher date range from Lexware Office, per currency, with tax and gross. Reads one voucher detail per voucher (cached); at most 100 detail requests per call, larger ranges return complete=false and coveredUntil for a follow-up call. groupBy=month adds totals per calendar month.
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": {
"dateFrom": "<dateFrom>",
"dateTo": "<dateTo>"
},
"name": "revenue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateTo | Yes | Last voucher date (inclusive) as YYYY-MM-DD, at most 366 days after dateFrom. | |
| groupBy | No | Grouping of the result: none (default) or month, which adds totals per calendar month. | none |
| dateFrom | Yes | First voucher date (inclusive) as YYYY-MM-DD. |