Kaizen
Browse modulesInsightsinsights/serverFunctions

Function: formatMoneyCell()

function formatMoneyCell(value: ReportCellValue, hint: 
  | {
  currencyCode?: string;
  representation: "decimal" | "minorUnits";
  scale: number;
}
  | undefined): string;

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

Format a money cell per its column's MoneyFormatHint. A missing hint is treated as minorUnits — the module-wide default.

Parameters

ParameterType
valueReportCellValue
hint| { currencyCode?: string; representation: "decimal" | "minorUnits"; scale: number; } | undefined

Returns

string

On this page