HIGH story-receipt-capture-and-attachment-coordinator-003 3 pts
3
Story Points
High
Priority
Receipt Capture and Attachment
Feature

User Story

As a Coordinator
I want to be clearly informed when my expense amount requires a receipt attachment before I can submit
So that I understand exactly what is blocking submission and can take the correct action without confusion or frustration

Acceptance Criteria

  • Given I enter an expense amount above the org-configured receipt threshold, When the amount field loses focus, Then a visual indicator appears on the receipt attachment section showing 'Receipt required for amounts over [X] NOK'
  • Given the threshold indicator is shown, When a screen reader is active, Then the threshold requirement is announced via an accessibility live region
  • Given I have not yet attached a receipt and the amount is above threshold, When I tap the Submit button, Then submission is blocked and the receipt section is scrolled into view with an error state highlighted
  • Given the org administrator changes the receipt threshold in configuration, When I next open the expense form, Then the updated threshold value is reflected without requiring an app update
  • Given my expense amount drops below the threshold after editing, When the validation is re-evaluated, Then the receipt requirement indicator disappears and the form can be submitted without a receipt
  • Given a receipt is attached and the amount is above threshold, When I view the form, Then the receipt section shows a success state indicating the requirement is satisfied

Business Value

Proactive threshold validation prevents submission errors and reduces coordinator workload from incomplete claims. For peer mentors with cognitive accessibility needs — a core user group per NHF's requirements — clear in-context guidance is essential. Org-configurable thresholds via edge functions ensure the feature scales across HLF, Blindeforbundet, and future organizations with different reimbursement policies.