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

Description

Enforces receipt requirement rules based on expense type and amount thresholds configured per organisation. For example, HLF requires a receipt for all expenses over 100 NOK. Validates that mandatory receipts are attached before an expense claim can be submitted, and surfaces clear validation messages to the user.

Feature: Receipt Photo Upload

receipt-validation-service

Responsibilities

  • Check receipt requirement rules by expense type and amount
  • Enforce organisation-specific attachment thresholds
  • Validate receipt completeness before expense submission
  • Provide clear validation messages for missing receipts

Interfaces

isReceiptRequired(expenseType, amount, organizationId)
validateReceiptAttachment(expenseId)
getReceiptRequirements(organizationId)
getValidationErrors(expenseId)
checkSubmissionReadiness(expenseId)

Relationships

Dependents (1)

Components that depend on this component