Fix optimistic transaction sign when merging#81132
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.
|
|
@hoangzinh assigning you since you have context |
|
@abdulrahuman5196 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] |
Sure. I will review today |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
hoangzinh
left a comment
There was a problem hiding this comment.
All goods. Going to test
|
Bug: [Offline] When merge 2 unreported expenses in offline mode, it displays negative amount after merge Screen.Recording.2026-02-05.at.16.38.55.mov |
|
Bug: [Offline] When merging a normal expense with a negative amount expense, and keeping the negative amount, App displays a positive amount after merge Screen.Recording.2026-02-05.at.16.41.08.mov |
|
Should be fixed now! |
|
@youssef-lr did we fix this bug? I tried to reproduce on latest commit, but I still could Screen.Recording.2026-02-09.at.17.06.54.mov |
|
I'm unable to reproduce weirdly Screen.Recording.2026-02-09.at.17.43.32.mov |
|
Here are steps @youssef-lr. I'm unsure if it's related to the PR here:
Screen.Recording.2026-02-10.at.05.17.14.mov |
|
Hi @youssef-lr Could you reproduce this bug? |
|
I'm on it now |
JmillsExpensify
left a comment
There was a problem hiding this comment.
Product review not required on this one.
|
Sorry, I got caught up with higher priority stuff. I'm resuming work on this PR now. |
|
@youssef-lr, friendly remind that we still have this PR ;) |
|
Low priority, will resume tomorrow |
|
Hi @youssef-lr, just a friendly reminder that we still have this PR. |
|
Yes will resume this very soon, I need to finish some high priority stuff |
Explanation of Change
This PR improves how we store the amount in the final transaction after merging, by keeping it the same as from the source transaction it came from without handling negating the sign. Instead we only handle that in display components.
Fixed Issues
$ #78176
Tests
Offline tests
Included above.
QA Steps
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari