Kaizen
Browse modulesInsightsinsights/serverInterfaces

Interface: TotalsRowPlan

Defined in: server/insights/export/cell-format.ts:161

Where a grand-total row's values and its label go, computed once and shared by all three writers so they cannot lay the row out differently.

ReportResult.totals is keyed by column key and holds ONLY the aggregate columns — computed in SQL by the executor and passed through untouched (an export never re-aggregates money in JS). The label takes the first column that has no total; when every column has one there is nowhere to put it and labelIndex is -1.

Properties

labelIndex

labelIndex: number;

Defined in: server/insights/export/cell-format.ts:162


values

values: (
  | ReportCellValue
  | undefined)[];

Defined in: server/insights/export/cell-format.ts:164

Per column index: the SQL total, or undefined for a non-aggregate column.

On this page