v_ai_reports¶
Financial reports: Balance Sheet, Profit & Loss, Trial Balance, Cash Flow
- Populated by: QuickBooks Online, Xero, NetSuite
Columns¶
| Name | Type | Nullable | Allowed values | Description |
|---|---|---|---|---|
id |
character varying |
No | — | Kipper's internal row id, not the accounting system's id (that is source_id, where the view has one). |
data_source_id |
character varying |
Yes | — | The entity (connected data source) this row belongs to. External IDs (source_id and the *_external_id columns) and company names are unique only within one entity, so join related rows on data_source_id as well as their external IDs. |
report_type |
character varying |
Yes | — | Type of financial report. Valid values include: TrialBalance, CashFlow, BalanceSheet, ProfitAndLoss. |
start_date |
date |
Yes | — | The beginning date of the reporting period. For BalanceSheet reports, this may be null as they represent a point-in-time snapshot. |
end_date |
date |
Yes | — | The ending date of the reporting period. For BalanceSheet reports, this is the as-of date for the snapshot. |
report_basis |
character varying |
Yes | — | The accounting basis used for the report. Valid values: Cash or Accrual. |
currency |
character varying |
Yes | — | The currency code for all amounts in this report (e.g., USD, EUR, GBP). |
Joins¶
Relationships this view takes part in. External IDs are unique only within one connected entity, so every external-ID join matches on data_source_id as well.
v_ai_report_lines.report_id = v_ai_reports.id
Across entities¶
A workspace can hold several connected companies. A query run across all of them returns rows from each, and external IDs (source_id and the *_external_id columns) and company names are unique only within one entity — so match on data_source_id too whenever you join or group.