frontend


frontend / api/analytics/finance / getFinancialSummary

Function: getFinancialSummary()

getFinancialSummary(p?): Promise<FinancialSummary>

Defined in: src/api/analytics/finance.ts:63

Fetch financial summary for a window. Backend: GET /api/analytics/financial/summary?from&to[&supplierId]

Parameters

p?

from?

string

supplierId?

string

to?

string

Returns

Promise<FinancialSummary>

Enterprise

  • Finance endpoint uses from/to (not start/end like other analytics).
  • Accepts either a direct object or an envelope (e.g., { summary } or { data }).
  • Returns a fully-populated zero object on any error.