Reimbursement Reporting Service
Component Detail
Service Layer
medium complexity
backend
1
Dependencies
1
Dependents
6
Entities
0
Integrations
Description
Business logic layer that orchestrates aggregation queries, enforces role-based org scoping, and computes summary statistics for the reimbursement overview. Coordinators receive data scoped to their local association; org admins receive the full organization view. Also handles CSV generation from the same filtered dataset.
reimbursement-reporting-service
Responsibilities
- Enforce org and local association scoping based on caller role
- Request aggregated totals grouped by status from the repository
- Request aggregated totals grouped by expense type and date period
- Compose time-series data points for trend visualization
- Generate CSV content from filtered expense and approval records
Interfaces
getOverviewSummary(orgId, localAssocId, dateRange): ReimbursementSummary
getByExpenseType(orgId, dateRange): ExpenseTypeBreakdown[]
getTrendData(orgId, period): TrendDataPoint[]
exportCSV(orgId, filters): Buffer
Relationships
Related Data Entities (6)
Data entities managed by this component