Skip to main content

Module reporting_handler

Module reporting_handler 

Source
Expand description

Non-CRUD HTTP surface for financial reports (read-only, computed on the fly).

Hand-authored (user-owned; see metaphor.codegen.yaml). Wraps ReportingService. GET /accounting/reports/trial-balance?as_of=YYYY-MM-DD GET /accounting/reports/balance-sheet?as_of=YYYY-MM-DD GET /accounting/reports/income-statement?period_start=..&period_end=.. GET /accounting/reports/general-ledger?to_date=..&from_date=..&account_id=..&limit=..&offset=.. GET /accounting/reports/partner-ledger?party_type=customer|supplier&party_id=..&as_of=.. GET /accounting/reports/aged-receivables?as_of=.. GET /accounting/reports/aged-payables?as_of=..

Tenancy (ADR-0029): the wire carries no tenant parameter — the wire shapes keep it so unstripped callers compile and run unchanged; the module keys no statement on it and the composing service’s tenancy decorator scopes every read.

Structs§

AsOfQuery
GeneralLedgerQuery
PartnerLedgerQuery
PeriodQuery

Functions§

create_reporting_routes
Read-only financial-report routes.