Skip to content

[$175] Pay is shown when one of the reports contains only nonreimbursable expense during bulk select #104388

Open

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.14-0
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: #100569
Email or phone of affected tester (no customers): josdjojnsosi@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Search

Action Performed:

Precondition:

  • Go to workspace settings > Workflows and enable Prevent marking non-reimbursable reports as paid
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Create a reimbursable expense.
  4. Submit and approve the report.
  5. Create a non-reimbursable expense.
  6. Submit and approve the report.
  7. Go to Spend > Reports.
  8. Bulk select both reports.

Expected Result:

Pay button will not be shown when one of the reports cannot be paid.

Actual Result:

Pay button is shown when one of the reports containing only non-reimbursable expense cannot be paid.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7290497_1792432809153.1.mp4

View all open jobs on GitHub

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

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @allgandalf

Activity

  1. applause-bot commented on Oct 19, 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/e08fe4d5977a106d49b391837850fde37fda07d1dd72e80ff2b9d7e168686692

  2. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 19, 2026
  3. melvin-bot commented on Oct 19, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #100569

  4. melvin-bot commented on Oct 19, 2026

    @melvin-bot

    @stitesExpensify @FitseTLT you have been assigned to this deploy blocker because you reviewed the offending PR: #100569

  5. github-actions commented on Oct 19, 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.
  6. melvin-bot commented on Oct 19, 2026

    @melvin-bot

    @s77rt you have been assigned to this deploy blocker because you authored the offending PR: #100569

  7. melvin-bot commented on Oct 19, 2026

    @melvin-bot

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

  8. MelvinBot commented on Oct 19, 2026

    @MelvinBot
    Contributor

    Deploy Blocker Analysis

    Verdict: This looks like expected behavior, not a regression from Add workspace setting to control marking non-reimbursable reports as paid. Bulk Pay is designed to show when at least one selected report is payable. It then pays only the payable reports. I recommend demoting or closing this issue after QA runs the two checks below. I don't recommend a revert.

    Why Pay shows: Fix bulk Pay/Mark as Paid disappearing for whole-report selections changed bulk Pay to use only the payable reports instead of hiding Pay. That PR merged on 2026-09-08 and is already in production. getPayOption filters the selection to canPay reports and shows Pay if any remain (src/libs/actions/Search.ts:2423-2438). A unit test covers this behavior (tests/unit/SearchActionsTest.ts:690-699). You can see the same result in production today: select one approved report and one report still waiting for approval.

    QA check: The new PR is only at fault if the non-reimbursable report is still treated as payable. Please confirm both of these:

    1. With both reports selected, the Pay total equals only the reimbursable report's amount. After you pay, the non-reimbursable report stays unpaid.
    2. When you select only the non-reimbursable report, its row shows View and the bulk menu has no Pay option.

    If either check fails, the likely cause is that the search results don't include preventPayoutNonReimbursableReports for the policy. The fix would be a small follow-up PR, not a revert.

    Investigation details

    The new PR adds !(policy?.preventPayoutNonReimbursableReports && hasOnlyNonReimbursableTransactions(...)) to all three pay checks:

    Search rows get their action from canIOUBePaid (src/libs/SearchUIUtils.ts:2219-2248). Each row's canPay comes from that action (src/libs/SearchUIUtils.ts:2355). As a result, the non-reimbursable report should have canPay: false.

    The bulk payment and the displayed total also use only the payable subset (src/hooks/useSearchBulkActions.ts:805-807, src/hooks/useSearchBulkActions.ts:2586-2590). The partial-Pay behavior came from commit e54017a, "Degrade bulk Pay to the payable subset instead of hiding it."

    The issue's expected result assumes every selected report must be payable. That conflicts with the current bulk Pay design. This analysis is based on reading the code. I didn't test it in the app.


    view run

  9. 19 remaining items

  10. self-assigned this
    on Oct 23, 2026
  11. allgandalf commented on Oct 23, 2026

    @allgandalf
    Contributor
  12. melvin-bot commented on Nov 6, 2026

    @melvin-bot

    @allgandalf Whoops! This issue is 2 days overdue. Let's get this updated quick!

  13. jeffrey-graham commented on Nov 7, 2026

    @jeffrey-graham
  14. melvin-bot commented on Nov 7, 2026

    @melvin-bot
  15. added
    ReviewingHas a PR in review
    and removed
    ReviewingHas a PR in review
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.EngineeringExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions