Recent invoices¶
The 20 most recent invoices with their customer.
Run it with the run_report tool, passing the report id recent-invoices. If the workspace has more than one connected entity, also pass the connection_id of the one you want, from list_entities.
Output columns¶
txn_datetxn_numbercompany_nametotalstatus
SQL¶
This is the exact query Kipper runs, against your own data and under your own permissions.
SELECT
t.txn_date,
t.txn_number,
c.company_name,
t.total,
t.status
FROM v_ai_transactions t
LEFT JOIN v_ai_companies c ON t.company_external_id = c.source_id
AND t.data_source_id = c.data_source_id
WHERE t.type = 'invoice'
ORDER BY t.txn_date DESC
LIMIT 20
Limits¶
- Capped at 100 rows.
- Covers one connected entity. To span every entity, use the
run_sqltool withall_entities=truerather than running the report once per entity. - Takes no parameters besides
connection_id, which picks the entity and is required when the workspace has more than one. Any date window a report uses is already part of the SQL above.