HIGH story-threshold-based-expense-approval-workflow-organization-admin-007 5 pts

User Story

As a Organization Administrator
I want the system to automatically flag or block expense claims that exceed the receipt requirement threshold but lack an attached receipt
So that I only receive complete, auditable claims for review and do not have to manually follow up with peer mentors for missing documentation

Acceptance Criteria

  • Given a peer mentor submits an expense with an amount above the receipt threshold and no receipt attached, when they tap submit, then the submission is blocked with a message explaining the receipt requirement and linking to the receipt capture flow
  • Given a peer mentor attaches a receipt image to an expense above the threshold, when they submit, then the claim proceeds to the coordinator review queue with the receipt accessible
  • Given a coordinator views a claim in the review queue that required a receipt, when the detail view loads, then the receipt attachment is present and viewable
  • Given a claim is submitted without a receipt that is required by the threshold rule, when the edge function validates it server-side, then the claim is rejected with a validation error even if client-side validation was bypassed
  • Given an expense is below the receipt threshold, when it is submitted without a receipt, then no receipt validation error is shown and the claim proceeds normally (subject to amount-based auto-approval)

Business Value

Enforcing receipt requirements at submission time rather than during coordinator review eliminates a significant source of back-and-forth communication between coordinators and peer mentors. It ensures the audit trail needed for accounting exports and Bufdir compliance is always complete, and reduces the risk of non-compliant reimbursements that could create issues during financial audits or grant reporting.