client_statement
Generate a client statement with unpaid invoices, aging bands, totals, and bank accounts for a specific date.
Instructions
Customer statement (situație clienți) for one client: the unpaid outgoing invoices as of a date (number, issue/due date, total, paid, outstanding, days overdue), totals, the client balance and the outstanding amount split into aging bands (current, 1–30, 31–60, 61–90, 91–120, 121–180, over 180 days overdue), plus the company bank accounts. Storno/credit documents are listed as credits and reduce the balance; invoices in other currencies than the company default are listed but summarised separately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | Reference date (YYYY-MM-DD). Invoices issued after it are ignored and days overdue are counted up to it. Default: today. | |
| uuid | Yes | Client UUID | |
| companyId | No | Company UUID override (uses active company if not set) |