Receipt Threshold Validator
Component Detail
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.
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
Related Data Entities (3)
Data entities managed by this component