client_statement
Generates a customer statement for one client, listing unpaid outgoing invoices as of a date with totals, balance, aging bands, and company bank accounts.
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) |