You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expense - Editing amount into negative, shows amount differs from calculated distance error #83594
Version Number: V9.3.26-4 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:#82257 Email or phone of affected tester (no customers):dreamnitethedragon+yydyd373@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Redminote 10S Android 13 App Component: Money Requests
Action Performed:
Launch app
Create workpace
Open workspace chat
Create a report
Create distance manual expense
Open the expense
Edit the amount
Open the expense
Tap more - split the expense
Note amount differs from calculated distance error is not shown in split preview
Create a report
12.Create distance manual expense
13.Open the expense
14.Edit the amount by adding a "flip" to make amount negative
15.Open the expense
Tap more - split the expense
17.Note amount differs from calculated distance error is shown in split preview
Expected Result:
Editing amount into negative, must not show amount differs from calculated distance error in split preview.
Actual Result:
Editing amount into negative, shows amount differs from calculated distance error in split preview but Editing amount into positive, dismiss amount differs from calculated distance error in split preview.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Classification: Frontend bug Causing PR: #82257 - "feat: handle the Distance and Rate fields for splits" by @ZhenjaHorbach (High confidence) Related Issues: None identified
Recommendation: REVERT
PR #82257 introduced functionality to handle distance and rate fields for split expenses. However, it appears to have introduced inconsistent behavior in how the "Amount differs from calculated distance" violation is displayed for negative vs positive amounts in the split preview.
Labels: Keeping DeployBlockerCash as this is a frontend bug requiring an App PR fix
📋 Detailed Analysis
Evidence
The issue is reproducible on staging (v9.3.26-4) but not production, and only affects split expenses created from distance transactions where the amount has been manually edited. The causing PR #82257 was merged on 2026-02-24 and is included in the current staging deploy.
The melvin-bot comment confirms this was the causing PR and assigned it to the PR author.
Verification
PR #82257 modified the following key files related to split expense handling:
Distance request step files for handling distance/rate in splits
These changes directly relate to the affected functionality: splitting distance expenses.
Root Cause
The PR added logic to handle distance and rate fields for split expenses, including validation for distance rate violations. However, the implementation appears to have inconsistent behavior when validating the modifiedAmount violation (CONST.VIOLATIONS.MODIFIED_AMOUNT) for distance transactions:
When amount is edited to a positive value: The "Amount differs from calculated distance" error is correctly dismissed
When amount is edited to a negative value: The error is incorrectly shown in the split preview
This suggests the validation logic for detecting when an amount differs from the calculated distance is not properly handling the negative amount case, likely due to absolute value comparisons or sign handling in the new split expense flow.
The expected behavior (per the issue description) is that editing amount to negative should NOT show this error, just as editing to positive does not show it.
Activity
melvin-bot commentedon Feb 26, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #82257
melvin-bot commentedon Feb 26, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Feb 26, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
OSBotify commentedon Feb 26, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #82257 - "feat: handle the Distance and Rate fields for splits" by @ZhenjaHorbach (High confidence)
Related Issues: None identified
Recommendation: REVERT
PR #82257 introduced functionality to handle distance and rate fields for split expenses. However, it appears to have introduced inconsistent behavior in how the "Amount differs from calculated distance" violation is displayed for negative vs positive amounts in the split preview.
Labels: Keeping
DeployBlockerCashas this is a frontend bug requiring an App PR fix📋 Detailed Analysis
Evidence
The issue is reproducible on staging (v9.3.26-4) but not production, and only affects split expenses created from distance transactions where the amount has been manually edited. The causing PR #82257 was merged on 2026-02-24 and is included in the current staging deploy.
The melvin-bot comment confirms this was the causing PR and assigned it to the PR author.
Verification
PR #82257 modified the following key files related to split expense handling:
src/libs/actions/IOU/Split.ts(326 additions, 37 deletions)src/pages/iou/SplitExpenseEditPage.tsx(100 additions, 4 deletions)src/pages/iou/SplitExpensePage.tsx(39 additions, 12 deletions)src/libs/TransactionUtils/index.ts(51 additions, 5 deletions)These changes directly relate to the affected functionality: splitting distance expenses.
Root Cause
The PR added logic to handle distance and rate fields for split expenses, including validation for distance rate violations. However, the implementation appears to have inconsistent behavior when validating the
modifiedAmountviolation (CONST.VIOLATIONS.MODIFIED_AMOUNT) for distance transactions:This suggests the validation logic for detecting when an amount differs from the calculated distance is not properly handling the negative amount case, likely due to absolute value comparisons or sign handling in the new split expense flow.
The expected behavior (per the issue description) is that editing amount to negative should NOT show this error, just as editing to positive does not show it.
lakchote commentedon Feb 26, 2026
Discussing in here, demoting as it's unlikely a customer wants to do that.
lakchote commentedon Feb 26, 2026
It's expected see https://expensify.slack.com/archives/C01GTK53T8Q/p1772128003664949?thread_ts=1772124074.492479&cid=C01GTK53T8Q, closing the issue