Service Layer medium complexity backend
0
Dependencies
0
Dependents
2
Entities
0
Integrations

Description

Backend service that aggregates expense claim data for a given organization into summary statistics. Computes totals by period, expense type, and peer mentor, and calculates auto-approval versus manual-approval ratios. Provides a filtered export function that serializes matching claims to CSV format for reconciliation and reporting workflows.

Feature: Reimbursement Overview

reimbursement-summary-service

Sources & reasoning

Section 2.1 (lines 64-73) describes high-volume reimbursement needs for HLF and Blindeforbundet, implying an administrative overview is needed to monitor totals and detect anomalies at scale. Phase 2 placement (line 342) maps to v1.0. The overview is the standard operational complement to an approval queue and a prerequisite for efficient Bufdir report preparation.

  • Begge organisasjoner har behov for registrering av kilometergodtgjørelse, bompenger, parkering og kollektivt. Behovene er like, men HLF har mest detaljert krav
  • Reiserefusjonshåndtering (faste valg, terskelbasert godkjenning)

Responsibilities

  • Aggregate approved amounts, pending counts, and approval-mode ratios grouped by period, expense type, and peer mentor
  • Apply organization-scope enforcement so no cross-organization records are ever returned
  • Accept compound filter parameters and return the matching claim subset for drill-down views
  • Serialize filtered claim records to CSV with full claim detail for export
  • Coordinate with expense-approval-queue and auto-approval-rules data sources for consistent aggregation

Interfaces

getSummary(orgId, filters): Promise<ReimbursementSummary>
getFilteredClaims(orgId, filterSubset): Promise<Claim[]>
exportFilteredCsv(orgId, filterSubset): Promise<string>
getApprovalRatios(orgId, period): Promise<ApprovalRatios>

Related Data Entities (2)

Data entities managed by this component