fix: Mark as paid on Reports pays the full amount without asking paying option#88569
fix: Mark as paid on Reports pays the full amount without asking paying option#88569mjasikowski merged 8 commits intoExpensify:mainfrom
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@dukenv0307 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Please use the new util function in useSelectionModeReportActions as well |
|
@paulnjs can you please check the failing test? |
|
@dukenv0307 I updated. Please help to check again. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-04-28.at.21.17.26.movAndroid: mWeb ChromeScreen.Recording.2026-04-30.at.22.17.41.moviOS: HybridAppScreen.Recording.2026-04-28.at.21.08.47.moviOS: mWeb SafariScreen.Recording.2026-04-28.at.21.04.23.movMacOS: Chrome / SafariScreen.Recording.2026-04-30.at.21.53.41.mov |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 02b880f379
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| nonHeldAmount: !hasHeldExpenses && hasValidNonHeldAmount ? nonHeldAmount : undefined, | ||
| fullAmount, | ||
| hasNonHeldExpenses: !hasOnlyHeldExpenses, | ||
| hasNonHeldExpenses: !hasHeldExpenses, |
There was a problem hiding this comment.
Use hasOnlyHeldExpenses when building hold-menu options
In openHoldMenu, hasNonHeldExpenses and nonHeldAmount are now derived from hasHeldExpenses (any held transaction) instead of the previous “only held” check. For reports that contain a mix of held and non-held expenses, hasHeldExpenses is true, so this code hides the partial option and treats the report as fully held, forcing users into the full-amount path. That regresses the intended behavior for mixed reports (the exact case this change is meant to fix).
Useful? React with 👍 / 👎.
|
on it now |
|
Looks good |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @mjasikowski has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.3.66-0 🚀
|
|
No help site changes are required for this PR. This is an internal bug fix that changes how held expenses are detected ( |
Explanation of Change
Fixed Issues
$#88375
PROPOSAL:#88375 (comment)
Tests
Offline tests
QA Steps
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
android.mov
Android: mWeb Chrome
android-web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov