Allow negative amounts for deleted transactions on search#86875
Allow negative amounts for deleted transactions on search#86875jnowakow wants to merge 2 commits intoExpensify:mainfrom
Conversation
|
@QichenZhu 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] |
|
@parasharrajat 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] |
|
@rojiphil Looks like a regression from your PR. Do you want to review this? |
|
@jnowakow We already have a revert PR here. Since there are several associated blockers, I think it may be better to revert and address them all together in a separate PR. |
trjExpensify
left a comment
There was a problem hiding this comment.
Bug fix for deleted expenses 👍
|
Yea, we're reverting the PR. Let's keep this fix open though since we can point it to the new re-revert branch and merge it there |
|
Sure, I will open new PR and merge all fixes there |
|
It will be merged to #86938 |
Explanation of Change
Deleted transactions get reportID = "-1", causing the report lookup to fail. This made
isFromExpenseReportresolve tofalse, which triggeredMath.abs()on the amount, stripping the negative sign. NowallowNegativeAmount = trueis passed as a parameter for deleted expenses to display the amount correctly.Fixed Issues
$ #86783
PROPOSAL: N/A
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari