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
[Due for payment 2026-04-14] [Due for payment 2026-04-14] Expense - The report header shows only the Mark as Paid option #87018
Version Number: 9.3.52-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:#83329 Email or phone of affected tester (no customers):applausetester+bm1055t@applause.expensifail.com Issue reported by: Applause Internal Team Bug source: Pull Request QA execution Device used: Web, android App Component: Money Requests
Action Performed:
Precondition:
Workspace is connected to Business bank account
Admin Invited a member to workspace
As a member, submit a non-reimbursable expense in the workspace chat.
As an admin, approve it and then open it
Expected Result:
The report header should display both “Mark as Paid” and “Pay with Business Account” options
Actual Result:
The report header shows only the “Mark as Paid” button, while the report preview displays both options.
👋 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.
Please re-state the problem that we are trying to solve in this issue.
The report header shows only "Mark as Paid" for non-reimbursable expenses, while the report preview correctly shows both "Mark as Paid" and "Pay with Business Account".
What is the root cause of that problem?
PayPrimaryAction.tsx (the header's pay button) computes onlyShowPayElsewhere without accounting for non-reimbursable transactions:
For non-reimbursable expenses, canIOUBePaid(..., false) returns false (because reimbursableSpend = 0) and canIOUBePaid(..., true) returns true, so onlyShowPayElsewhere evaluates to true. When SettlementButton receives onlyShowPayElsewhere=true, it short-circuits to show only "Pay Elsewhere" (Mark as Paid).
The preview's PayActionButton.tsx correctly handles this at line 94-98 by forcing onlyShowPayElsewhere=false when reportHasOnlyNonReimbursableTransactions is true.
What changes do you think we should make in order to fix the problem?
In src/components/MoneyReportHeaderPrimaryAction/PayPrimaryAction.tsx, mirror the logic from PayActionButton.tsx:
Import hasOnlyNonReimbursableTransactions from @libs/TransactionUtils
Compute reportHasOnlyNonReimbursableTransactions using the already-available transactions (line 75)
When reportHasOnlyNonReimbursableTransactions is true, force onlyShowPayElsewhere to false
Add reportHasOnlyNonReimbursableTransactions to the shouldShowPayButton condition
SettlementButton — index.tsx:286-287: When onlyShowPayElsewhere=true, it only builds the "Pay Elsewhere" option, hiding the VBBA/"Pay with Business Account" button.
What alternative solutions did you explore? (Optional)
The fix could also be applied in SettlementButton itself to not short-circuit when the report has non-reimbursable transactions, but that would be a broader change. Aligning PayPrimaryAction with the already-working PayActionButton pattern is the minimal and safest fix for a deploy blocker.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
Yes, confirmed — #86723 is the regression source, not #83329.
#83329 correctly added the reportHasOnlyNonReimbursableTransactions check to MoneyReportHeader.tsx. Then ~80 minutes later, #86723 extracted the PAY action into PayPrimaryAction.tsx but re-derived onlyShowPayElsewhere using the old pre-#83329 logic, dropping the non-reimbursable guard entirely. Most likely #86723 was branched before #83329 merged.
changed the title [-][Due for payment 2026-04-14] Expense - The report header shows only the Mark as Paid option[/-][+][Due for payment 2026-04-14] [Due for payment 2026-04-14] Expense - The report header shows only the Mark as Paid option[/+]on Apr 7, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.53-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@situchan@mallenexpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Activity
melvin-bot commentedon Apr 2, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #83329
melvin-bot commentedon Apr 2, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Apr 2, 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:
MelvinBot commentedon Apr 2, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
The report header shows only "Mark as Paid" for non-reimbursable expenses, while the report preview correctly shows both "Mark as Paid" and "Pay with Business Account".
What is the root cause of that problem?
PayPrimaryAction.tsx(the header's pay button) computesonlyShowPayElsewherewithout accounting for non-reimbursable transactions:https://github.com/Expensify/App/blob/main/src/components/MoneyReportHeaderPrimaryAction/PayPrimaryAction.tsx#L78-L81
For non-reimbursable expenses,
canIOUBePaid(..., false)returnsfalse(becausereimbursableSpend= 0) andcanIOUBePaid(..., true)returnstrue, soonlyShowPayElsewhereevaluates totrue. WhenSettlementButtonreceivesonlyShowPayElsewhere=true, it short-circuits to show only "Pay Elsewhere" (Mark as Paid).The preview's
PayActionButton.tsxcorrectly handles this at line 94-98 by forcingonlyShowPayElsewhere=falsewhenreportHasOnlyNonReimbursableTransactionsis true.What changes do you think we should make in order to fix the problem?
In
src/components/MoneyReportHeaderPrimaryAction/PayPrimaryAction.tsx, mirror the logic fromPayActionButton.tsx:hasOnlyNonReimbursableTransactionsfrom@libs/TransactionUtilsreportHasOnlyNonReimbursableTransactionsusing the already-availabletransactions(line 75)reportHasOnlyNonReimbursableTransactionsis true, forceonlyShowPayElsewheretofalsereportHasOnlyNonReimbursableTransactionsto theshouldShowPayButtonconditionEvidence chain
Header (broken) —
PayPrimaryAction.tsx:78-81:Preview (correct) —
PayActionButton.tsx:94-98:SettlementButton —
index.tsx:286-287: WhenonlyShowPayElsewhere=true, it only builds the "Pay Elsewhere" option, hiding the VBBA/"Pay with Business Account" button.What alternative solutions did you explore? (Optional)
The fix could also be applied in
SettlementButtonitself to not short-circuit when the report has non-reimbursable transactions, but that would be a broader change. AligningPayPrimaryActionwith the already-workingPayActionButtonpattern is the minimal and safest fix for a deploy blocker.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.situchan commentedon Apr 2, 2026
@MelvinBot #86723 was merged later than #83329 so I'd say the regression came from #86723. Can you confirm?
MelvinBot commentedon Apr 2, 2026
Yes, confirmed — #86723 is the regression source, not #83329.
#83329 correctly added the
reportHasOnlyNonReimbursableTransactionscheck toMoneyReportHeader.tsx. Then ~80 minutes later, #86723 extracted the PAY action intoPayPrimaryAction.tsxbut re-derivedonlyShowPayElsewhereusing the old pre-#83329 logic, dropping the non-reimbursable guard entirely. Most likely #86723 was branched before #83329 merged.Evidence
MoneyReportHeader.tsx:reportHasOnlyNonReimbursableTransactionscheck that forcesonlyShowPayElsewhere=falseand adds it toshouldShowPayButtonPayPrimaryAction.tsxwith the old formula:onlyShowPayElsewhere = !canIOUBePaid && canIOUBePaidAction(..., true, ...)— no non-reimbursable checkshouldBlockDirectPayment/ non-reimbursable payment error modal guard that feat: Allow admins to mark report with non-reimbursable expenses as paid and show decision modal if user try to pay via ACH #83329 added to theconfirmPaymenthandlerMy earlier proposal for the fix still applies — align
PayPrimaryAction.tsxwith the working logic inPayActionButton.tsx/MoneyReportHeader.tsx.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR, or@MelvinBot <your feedback>to refine this analysis.24 remaining items
[-][Due for payment 2026-04-14] Expense - The report header shows only the Mark as Paid option[/-][+][Due for payment 2026-04-14] [Due for payment 2026-04-14] Expense - The report header shows only the Mark as Paid option[/+]melvin-bot commentedon Apr 7, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.53-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-04-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 7, 2026
@situchan @mallenexpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
melvin-bot commentedon Apr 14, 2026
Payment Summary
Upwork Job
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Apr 16, 2026
@situchan is this a regression? Looks like it
@situchan plz complete the BZ checklist and tag me in a post once you have. Thx.
situchan commentedon Apr 16, 2026
No. Reasoning: #87018 (comment)
The real offending PR is #86723 where I am not involved at all.
situchan commentedon Apr 16, 2026
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: Decompose MoneyReportHeader primary actions into a separate component #86723 (comment)
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/625236
Regression Test Proposal
Test:
Do we agree 👍 or 👎
Zapier Logs
Run ID: 00040eee-f428-a086-6b80-b9917c610984Zapier Logs
Run ID: 00040eee-2870-a001-3622-77d7fd63b514mallenexpensify commentedon Apr 16, 2026
Payment Summary
Contributor+: @situchan due $250 via NewDot
^ Test case created
Thx
I commented on the issue related to the offending PR too
laurenreidexpensify commentedon Apr 27, 2026
$250 approved for @situchan