Skip to content

Spend - Report paid by business bank account does not appear when filtered by bank account #95053

Open

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.4.25-1
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #90791
Email or phone of affected tester (no customers): applausetester+khcategory19@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Money Requests

Action Performed:

Precondition:

  • Account has business bank account.
  • User has personal bank account.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Create an expense above $100.00.
  4. Click Submit, Approve and Pay with business bank account.
  5. Open filters.
  6. Click Bank account.
  7. Select the bank account.
  8. Close filters.

Expected Result:

The report paid by business bank account will appear when filtered by bank account.

Actual Result:

The report paid by business bank account does not appear when filtered by bank account.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7196439_1782911609040.5.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7196439

Activity

  1. applause-bot commented on Jul 1, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/bd45a3e07c94a778bbae78996e2263f47a63ba64600d36309848e1f9a0f93778

  2. added
    DeployBlockerCash
    Bug
    on Jul 1, 2026
  3. melvin-bot commented on Jul 1, 2026

    @melvin-bot

    @JS00001 recently merged #90791, but they are OOO right now, so I'll auto-assign someone else.

  4. melvin-bot commented on Jul 1, 2026

    @melvin-bot

    Triggered auto assignment to @inimaga (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  5. melvin-bot commented on Jul 1, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  6. github-actions commented on Jul 1, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  7. inimaga commented on Jul 1, 2026

    @inimaga
    Contributor

    @allgandalf Could you take a look?

  8. MelvinBot commented on Jul 1, 2026

    @MelvinBot
    Contributor

    Issue Analysis

    Root Cause (likely backend): The App-side "Bank account" filter added in PR #90791 is internally consistent — it emits the correct query and the only accounts it offers are business accounts, so the report is not being dropped on the client. The report‑to‑bank‑account matching happens server-side, so the report failing to appear points at the backend half of this feature, not App code.

    Here's what the App does, verified end-to-end:

    • The picker offers only BUSINESS bank accounts in a usable state, via isFilterableBankAccount — so a business account is exactly what's selectable, and a business‑paid report is what it's meant to match.
    • The selected account's numeric bankAccountID becomes the filter value (BankAccountSelector.tsx:52-83).
    • That value is serialized into the query as bankAccount:<bankAccountID> (SearchQueryUtils.ts:1003). The filter is documented to match past withdrawals that paid expenses (SearchQueryUtils.ts:1189-1201) — i.e. report → its settlement/withdrawal → the paying bankAccountID. That join is performed by the search backend.

    Most likely mechanism: The bankAccountID the App sends does not match what the backend has recorded as the paying account on the settled report. The prime suspect is an ID mismatch for business/workspace withdrawal accounts — the ID in the admin's bankAccountList (what the picker sends) may differ from the ID stored on the report's settlement/withdrawal record that the search endpoint matches against. (An alternative to rule out: the report wasn't actually settled via "Pay via bank account", so there's no withdrawal row to match — but the repro steps do pay, so this is less likely.)

    Recommended next step: This requires a change outside the Expensify/App repo — in the backend search handler for the bankAccount filter (the backend half is linked from PR #90791). An internal engineer with backend access should verify how bankAccount:<id> is resolved against a report's paying account, and specifically whether a business/workspace withdrawal account stores the same bankAccountID the App picker sends. I don't have access to that repo, so I can't propose the code fix here.

    Investigation details & verification aid

    Confidence: High that the App side is correct; Medium on the exact exclusion cause, which lives server-side.

    To confirm quickly: Capture the actual Search API request when reproducing and check the query contains bankAccount:<expectedID> with the business account's ID, then compare that ID to the one stored on the settled report's withdrawal record. If they differ, that mismatch is the bug.

    Alternative explanations considered:

    • Personal accounts missing from the picker → ruled out; the picker only shows business accounts by design.
    • Client serialization dropping the value → ruled out; bankAccount:<id> is emitted correctly and parses back.
    • Report not actually settled → possible but unlikely given the repro explicitly pays via business bank account.

    Related: #88385 is the feature-tracking issue for this filter (not a duplicate).


    Next Steps: This is a DeployBlockerCash. Since the fix is backend, escalate to an internal engineer to verify the server-side bankAccount filter matching for business accounts. Reply with @MelvinBot <feedback> to refine this analysis.

  9. removed
    DeployBlockerCash
    on Jul 1, 2026
  10. cristipaval commented on Jul 1, 2026

    @cristipaval
    Contributor

    demoting - the root cause is likely in the backend. It's a bug revealed by a huge PR which I wouldn't revert for this issue. It is also a new feature that isn't promoted to the users so I think it's fine for this one to take the regular path

  11. 31 remaining items

  12. JS00001 commented on Sep 23, 2026

    @JS00001
    Contributor

    Same

  13. JS00001 commented on Oct 2, 2026

    @JS00001
    Contributor

    Same

  14. JS00001 commented on Oct 12, 2026

    @JS00001
    Contributor

    Same

  15. added and removed
    Weekly
    on Oct 12, 2026
  16. JS00001 commented on Nov 16, 2026

    @JS00001
    Contributor

    Same, still a hot pick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugEngineeringHot PickInternalMonthly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions