Skip to content

v_ai_report_lines

Individual account lines within financial reports

  • 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_id character varying No — Parent report this line belongs to.
report_section character varying Yes — Top-level section (e.g., ASSETS, INCOME, OPERATING ACTIVITIES).
report_group character varying Yes — Group within the section (e.g., Current Assets, Fixed Assets).
account_group character varying Yes — Account category (e.g., Bank Accounts, Accounts Receivable).
account_sub_group character varying Yes — Account sub-category (e.g., Checking, Savings, Credit Card).
account_external_id character varying Yes — The unique identifier of the account in the source accounting system.
account_name character varying Yes — Display name of the account in the source system.
amount numeric(18, 2) Yes — The monetary amount for this report line.
summarised_account_id character varying No — On a section total (a "Total " row), the id of the account that section summarises; '' on every other row. Use it only to tell two same-named totals apart. It is a label, not an account balance: never use it to pick rows to SUM.

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.