Update report total calculation in IOU actions and adjust transaction…#73583
Update report total calculation in IOU actions and adjust transaction…#73583Valforte merged 5 commits intoExpensify:mainfrom
Conversation
… loading logic in ReportScreen
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 6 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
@eVoloshchak 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] |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2025-11-03.at.12.47.39.mov |
|
@eVoloshchak it's ready! |
|
@eVoloshchak kindly bump |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/Valforte in version: 9.2.43-0 🚀
|
| // Prevent the empty state flash by ensuring transaction data is fully loaded before deciding which view to render | ||
| // We need to wait for both the selector to finish AND ensure we're not in a loading state where transactions could still populate | ||
| const shouldWaitForTransactions = shouldWaitForTransactionsUtil(report, reportTransactions, reportMetadata); | ||
| const shouldWaitForTransactions = !isOffline && shouldWaitForTransactionsUtil(report, reportTransactions, reportMetadata); |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.2.43-2 🚀
|
| existingTransaction, | ||
| existingTransactionID, | ||
| newReportTotal: reportTotal - changesInReportTotal, | ||
| newReportTotal: calculatedNewReportTotal, |
There was a problem hiding this comment.
Coming from #75622, we should calculate the newReportTotal from splitExpenses to avoid the original amount is shown in approved report





Explanation of Change
Fixed Issues
$ #72591
PROPOSAL: #72591 (comment)
Tests
the same as QA
Offline tests
Included in QA
QA Steps
Verify total of report (which has previous split transactions) is properly calculated after deleting one split expense
Verify that no errors appear in the JS console
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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_native.mp4
Android: mWeb Chrome
android_mWeb.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_mWeb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4