fix: allow adding negative expenses to expense reports - #98627
Open
nyomanjyotisa wants to merge 1 commit into
Open
fix: allow adding negative expenses to expense reports#98627nyomanjyotisa wants to merge 1 commit into
nyomanjyotisa wants to merge 1 commit into
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
nyomanjyotisa
marked this pull request as ready for review
August 17, 2026 05:44
melvin-bot
Bot
requested review from
FitseTLT and
joekaufmanexpensify
and removed request for
a team and
joekaufmanexpensify
August 17, 2026 05:44
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
Allow negative and zero expenses to be added to regular expense reports while continuing to require positive amounts for IOU reports. Add focused coverage for negative, zero, and positive amounts across both report types.
Fixed Issues
$ #98425
PROPOSAL:
Tests
Test case 1 — Expense report:
Test case 2 — IOU report:
Offline tests
QA Steps
Same as Tests.
Console validation: No PR-related console errors were found. The development-only errors reproduced unchanged on the PR base commit and are already documented here.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.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-pr98627.mp4
Android: mWeb Chrome
Android-mWeb-pr98627.mp4
iOS: Native
ios-pr98627.mp4
iOS: mWeb Safari
ios-mWeb-pr98627.mp4
MacOS: Chrome / Safari
Chrome-pr98627.mp4