Skip to content

[Due for payment 2026-05-26] [CFI] [$250] "View payment history" shows billing receipts for all users instead of just the billing owner #89402

@MelvinBot

Description

@MelvinBot

Updated 2026-05-01: Corrected based on feedback from johncschuster and discussion with tom and ted.

Slack thread: https://expensify.slack.com/archives/C03U7DCU4/p1777661997504489

Problem

When a billing owner navigates to Account > Subscription > View payment history, they are routed to the Search/Expenses page filtered by merchant "Expensify, Inc.". The billing owner's own billing receipts are missing from the results, and instead only billing receipts from other team members are shown.

Expected behavior

The billing owner should see their own billing receipts — i.e., invoices for billing incurred under their own workspaces.

Actual behavior

The billing owner sees none of their own billing receipts. Instead, they only see billing receipts incurred by other team members (likely appearing due to consolidated billing). The billing owner's own receipts exist but are in Deleted status, which causes them to be excluded from the default search results. Additionally, because no from: filter is applied, receipts from other team members are included.

Root cause

The viewPurchases() function builds a search query with only three filters:

  • type:expense
  • status: (all statuses, but does not include Deleted)
  • merchant:"Expensify, Inc."

Two gaps:

  1. Missing from:me filter — without this, the search returns billing receipts from all users, not just the billing owner
  2. Missing Deleted status — the billing owner's own receipts are in Deleted status and are excluded from the results because the status filter does not include Deleted

Recommended Fix

In viewPurchases(), update the search query to:

  1. Add a from:me filter to scope results to the billing owner's own expenses
  2. Update the status filter to include Deleted so that the billing owner's receipts (which are in Deleted status) are returned

Reproduction steps

  1. Support log in as the billing owner for a company
  2. In New Expensify, navigate to Account > Subscription > View payment history
  3. Observe the Expenses page filtered by merchant Expensify, Inc.
  4. Notice that the billing owner's own billing receipts are missing, and only receipts from other team members appear
2026-05-01_13-58-48.mp4

Environment

  • New Expensify (all platforms)
Issue OwnerCurrent Issue Owner: @mananjadhav

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions