You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$175] Pay is shown when one of the reports contains only nonreimbursable expense during bulk select #104388
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
Go to staging.new.expensify.com
Go to workspace chat.
Create a reimbursable expense.
Submit and approve the report.
Create a non-reimbursable expense.
Submit and approve the report.
Go to Spend > Reports.
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.
👋 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:
Identify the pull request that introduced this issue and revert it.
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.
QA check: The new PR is only at fault if the non-reimbursable report is still treated as payable. Please confirm both of these:
With both reports selected, the Pay total equals only the reimbursable report's amount. After you pay, the non-reimbursable report stays unpaid.
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:
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.
Activity
applause-bot commentedon Oct 19, 2026
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
melvin-bot commentedon Oct 19, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #100569
melvin-bot commentedon Oct 19, 2026
@stitesExpensify @FitseTLT you have been assigned to this deploy blocker because you reviewed the offending PR: #100569
github-actions commentedon Oct 19, 2026
👋 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:
melvin-bot commentedon Oct 19, 2026
@s77rt you have been assigned to this deploy blocker because you authored the offending PR: #100569
melvin-bot commentedon Oct 19, 2026
💬 A slack conversation has been started in #expensify-open-source
MelvinBot commentedon Oct 19, 2026
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.
getPayOptionfilters the selection tocanPayreports 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:
If either check fails, the likely cause is that the search results don't include
preventPayoutNonReimbursableReportsfor 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:canIOUBePaid: src/libs/ReportUtils.ts:3393-3396canPay: src/libs/ReportPreviewActionUtils.ts:173isPrimaryPayAction: src/libs/ReportPrimaryActionUtils.ts:262Search rows get their action from
canIOUBePaid(src/libs/SearchUIUtils.ts:2219-2248). Each row'scanPaycomes from that action (src/libs/SearchUIUtils.ts:2355). As a result, the non-reimbursable report should havecanPay: 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
19 remaining items
allgandalf commentedon Oct 23, 2026
PR is here:
melvin-bot commentedon Nov 6, 2026
@allgandalf Whoops! This issue is 2 days overdue. Let's get this updated quick!
jeffrey-graham commentedon Nov 7, 2026
melvin-bot commentedon Nov 7, 2026