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 2025-10-21] [$250] Expense - Paid with bank account system message has different content when copied #71287
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Please re-state the problem that we are trying to solve in this issue.
Expense - Paid with bank account system message has different content when copied
What is the root cause of that problem?
The system always used the automatic-payment translation for VBBA due to logic overwrites and irrelevant checks. Specifically, the translationKey for VBBA was being overwritten to automaticallyPaidWithBusinessBankAccount even for manual approval, causing the copied content to include the “via workspace rules” suffix.
What changes do you think we should make in order to solve the problem?
We should update the VBBA case to select the correct translation key based only on automaticAction and avoid unnecessary overwrites, so that:
Manual approvals use businessBankAccount → plain message, correct for clipboard.
Automatic payments use automaticallyPaidWithBusinessBankAccount → includes “via workspace rules” in the UI.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Please re-state the problem that we are trying to solve in this issue.
Expense - Paid with bank account system message has different content when copied
What is the root cause of that problem?
We are not checking if automaticAction true before using automaticallyPaidWithBusinessBankAccount translation key. And we ended up using the wrong translation key
And report?.policyID will be undefined, so reportPolicy will be undefined and last4Digits will be empty string. Therefore the copied content format will be paid with bank account even if fixed the wrong translation key usage issue.
changed the title [-]Expense - Paid with bank account system message has different content when copied[/-][+][$250] Expense - Paid with bank account system message has different content when copied[/+]on Sep 30, 2025
changed the title [-][$250] Expense - Paid with bank account system message has different content when copied[/-][+][Due for payment 2025-10-21] [$250] Expense - Paid with bank account system message has different content when copied[/+]on Oct 14, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.30-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@ishpaul777@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: no critical, edge case does not block any core user flow
[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. not recomended, one time non recurring bug its fixed now
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Sep 25, 2025
Triggered auto assignment to @mallenexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.samranahm commentedon Sep 25, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense - Paid with bank account system message has different content when copied
What is the root cause of that problem?
The system always used the automatic-payment translation for VBBA due to logic overwrites and irrelevant checks. Specifically, the translationKey for VBBA was being overwritten to automaticallyPaidWithBusinessBankAccount even for manual approval, causing the copied content to include the “via workspace rules” suffix.
What changes do you think we should make in order to solve the problem?
We should update the VBBA case to select the correct translation key based only on automaticAction and avoid unnecessary overwrites, so that:
Manual approvals use businessBankAccount → plain message, correct for clipboard.
Automatic payments use automaticallyPaidWithBusinessBankAccount → includes “via workspace rules” in the UI.
Updated VBBA case:
here
App/src/libs/ReportUtils.ts
Lines 9473 to 9483 in ffe38b1
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
etCoderDysto commentedon Sep 25, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense - Paid with bank account system message has different content when copied
What is the root cause of that problem?
We are not checking if
automaticActiontrue before usingautomaticallyPaidWithBusinessBankAccounttranslation key. And we ended up using the wrong translation keyApp/src/libs/ReportUtils.ts
Lines 9478 to 9481 in c92e4da
We are not passing
reportas a third param togetIOUReportActionDisplayMessagefunction.App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx
Line 531 in c92e4da
And
report?.policyIDwill be undefined, soreportPolicywill be undefined andlast4Digitswill be empty string. Therefore the copied content format will bepaid with bank accounteven if fixed the wrong translation key usage issue.App/src/libs/ReportUtils.ts
Lines 9465 to 9466 in c92e4da
What changes do you think we should make in order to solve the problem?
automaticActionforExpensifyandACHpayment typeWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
none
What alternative solutions did you explore? (Optional)
[-]Expense - Paid with bank account system message has different content when copied[/-][+][$250] Expense - Paid with bank account system message has different content when copied[/+]melvin-bot commentedon Sep 30, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021973117417241733683
melvin-bot commentedon Sep 30, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 (
External)mallenexpensify commentedon Sep 30, 2025
@ishpaul777 , know of an easy way to reproduce this? If so can you attempt reproduction then review the proposals above?
Thx
16 remaining items
[-][$250] Expense - Paid with bank account system message has different content when copied[/-][+][Due for payment 2025-10-21] [$250] Expense - Paid with bank account system message has different content when copied[/+]melvin-bot commentedon Oct 14, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Oct 14, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.30-6 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 2025-10-21. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Oct 14, 2025
@ishpaul777 @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]
mallenexpensify commentedon Oct 21, 2025
Payment Summary
Contributor: @etCoderDysto paid $250 via Upwork
Contributor+: @ishpaul777 due $250 via NewDot
@ishpaul777 plz complete the BZ checklist.
ishpaul777 commentedon Oct 29, 2025
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: [CP Staging] fix: regressions after pay button standardization #66030 (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: no critical, edge case does not block any core user flow
[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. not recomended, one time non recurring bug its fixed now
mallenexpensify commentedon Oct 30, 2025
All good here, per @ishpaul777's comment above, it doesn't look like we need/want a test case for this.
garrettmknight commentedon Nov 11, 2025
$250 approved for @ishpaul777