Service Layer low complexity mobilebackend
1
Dependencies
1
Dependents
3
Entities
0
Integrations

Description

Evaluates whether a given expense amount exceeds the organization's configured receipt requirement threshold (e.g., 100 NOK for HLF) and returns a validation result used both client-side to prompt the user and server-side to reject incomplete claims. Fetches threshold configuration per organization and caches it locally.

Feature: Receipt Photo Upload

receipt-threshold-validator

Responsibilities

  • Retrieve organization-specific receipt threshold configuration
  • Evaluate whether expense amount requires a receipt attachment
  • Provide server-side validation to reject claims missing required receipts
  • Cache threshold values locally to support offline validation

Interfaces

requiresReceipt(amount, organizationId)
getThreshold(organizationId)
validateReceiptAttachment(expenseId, organizationId)
refreshThresholdCache(organizationId)

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component

Related Data Entities (3)

Data entities managed by this component