fix: allow adding a second bank account for invoices#91167
Open
nabi-ebrahimi wants to merge 4 commits into
Open
fix: allow adding a second bank account for invoices#91167nabi-ebrahimi wants to merge 4 commits into
nabi-ebrahimi wants to merge 4 commits into
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Contributor
Author
|
@Ollyws, gentle bump. thanks. |
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
Contributor
|
@nabi-ebrahimi Wasn't part of the original issue that we couldn't add another bank account? This behaviour still persists:
|
Contributor
Author
|
@Ollyws Thanks for catching this. You were right. The Retested with a real bank account and it works as expected now. Video: second-bank-fix.mov |
Contributor
|
Looks good thanks, will finish the review asap. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Explanation of Change
This change improves the invoice bank account menu so users are only prompted to change the default bank account when that action is actually useful.
Previously, the “Make default” option could appear even when there was only one eligible bank account, which made the menu feel confusing because there was no meaningful alternative to choose. Now, the option is shown only when there are multiple eligible bank accounts, or when the invoice’s saved default bank account no longer matches an eligible account.
This helps keep the invoice payment setup cleaner and reduces unnecessary choices, while still allowing users to fix cases where the current default bank account is missing or outdated.
Fixed Issues
$ #76723
PROPOSAL: #76723 (comment)
Tests
Issue 1: One invoice bank account shows
Make default payment method.Invoicespage.Make default payment methodis not shown when there is only one eligible invoice bank account.Add bank accountshould remain available so the user can add another account.Issue 2: Two invoice bank accounts should only show
Make default payment methodfor the non-default accountInvoicespage.Make default payment methodshould be hidden for the default bank account.Make default payment methodshould be shown only for the non-default bank account.Offline tests
Same as Tests.
QA Steps
Same as Tests.
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Issue One:
Screen.Recording.2026-05-20.at.2.24.37.PM.mov
Issue Two:
Screen.Recording.2026-05-20.at.3.18.51.PM.mov
Android: mWeb Chrome
Issue One:
Recording_20260520_142755.mp4
Issue Two:
Recording_20260520_151400.mp4
iOS: Native
Issue One:
Screen.Recording.2026-05-20.at.2.35.09.PM.mov
Issue Two:
Screen.Recording.2026-05-20.at.3.23.55.PM.mov
iOS: mWeb Safari
Issue One:
Screen.Recording.2026-05-20.at.2.39.29.PM.mov
Issue Two:
Screen.Recording.2026-05-20.at.3.29.20.PM.mov
MacOS: Chrome / Safari
Issue One:
Screen.Recording.2026-05-20.at.2.15.40.PM.mov
Issue Two:
Screen.Recording.2026-05-20.at.3.06.27.PM.mov