Skip to content

[Due for payment 2026-05-12] [Due for payment 2026-05-11] Expense - Expense with negative account is not displayed on "Existing Expenses" list. #89340

Closed

Description

@mitarachim

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.3.65-0
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #85225
Email or phone of affected tester (no customers): ibellicotest+2250@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Motorola MotoG60 / Android 12 (Hybrid app) - Windows 11 / Chrome
App Component: Money Requests

Action Performed:

Prerequisite: Account has at least one workspace.

  1. Open the staging.new.expensify.com website.
  2. Open any workspace chat.
  3. Create a manual expense with negative amount.
  4. Create an empty report.
  5. Click on "Add Expense" > "Add existing expense"
  6. Note that the expense created on step 3, is not visible on existing expenses list.

Expected Result:

Expense with negative amount should be displayed on existing expenses list and user should be able to add it to another report.

Actual Result:

Expense with negative amount is not displayed on existing expenses list and can´t be added to another report.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

Bug7142469_1777599960840.Existing_1.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @sobitneupane

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    DeployBlockerIndicates it should block deploying the API
    on May 1, 2026
  2. melvin-bot commented on May 1, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #85225

  3. melvin-bot commented on May 1, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  4. github-actions commented on May 1, 2026

    @github-actions
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  5. OSBotify commented on May 1, 2026

    @OSBotify
    Contributor

    Investigation Summary

    Classification: Frontend bug
    Causing PR: #85225 - "Feat: Change Add unreported expense to Add existing expense in a report" by @nyomanjyotisa (High confidence)
    Related Issues: #84130

    Recommendation: REVERT

    PR #85225 introduced a regression by expanding the "Add existing expense" flow to include Draft expenses (expenses on open expense reports), but the pre-existing filter that blocks negative-amount transactions still applies to all expense types. This causes negative-amount expenses to be hidden from the list even when they are valid Draft expenses that should be selectable.

    Assigned: @nyomanjyotisa (PR author), @sobitneupane and @puneetlath (approving reviewers)
    Labels: DeployBlockerCash kept (Frontend bug — App PR caused the issue). DeployBlocker kept (already present on the issue, not removing without confirmation this is purely frontend).

    Detailed Analysis

    Evidence

    Verification

    Root Cause

    Before PR #85225, getEligibleTransactions only returned truly unreported transactions (reportID === CONST.REPORT.UNREPORTED_REPORT_ID or empty). The negative-amount filter was arguably intentional for that context (unreported expenses from the workspace chat cannot be negative). PR #85225 widened the filter to also include Draft expenses (those on any open expense report), but the blanket negative-amount exclusion was not adjusted to account for this expanded set. Draft expenses with negative amounts are valid (e.g., refunds or credits) and should appear in the list. The fix requires either removing the blanket negative-amount guard or scoping it to only apply to truly unreported transactions (not Draft expenses on open reports).

  6. 3 remaining items

  7. m-natarajan commented on May 1, 2026

    @m-natarajan

    Issue no longer reproducible, Mac/ Chrome, Motorola Moto G60 - Android 12, on Build 9.3.65-4

    screen-20260501-170656.mp4
    Repro.-.issue.89340.mp4
  8. puneetlath commented on May 1, 2026

    @puneetlath
    Contributor

    Great, thanks!

  9. added and removed
    ReviewingHas a PR in review
    on May 4, 2026
  10. changed the title [-]Expense - Expense with negative account is not displayed on "Existing Expenses" list.[/-] [+][Due for payment 2026-05-11] Expense - Expense with negative account is not displayed on "Existing Expenses" list.[/+] on May 4, 2026
  11. melvin-bot commented on May 4, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  12. melvin-bot commented on May 4, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.65-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-05-11. 🎊

    For reference, here are some details about the assignees on this issue:

  13. melvin-bot commented on May 4, 2026

    @melvin-bot

    @sobitneupane / @nyomanjyotisa The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  14. changed the title [-][Due for payment 2026-05-11] Expense - Expense with negative account is not displayed on "Existing Expenses" list.[/-] [+][Due for payment 2026-05-12] [Due for payment 2026-05-11] Expense - Expense with negative account is not displayed on "Existing Expenses" list.[/+] on May 5, 2026
  15. melvin-bot commented on May 5, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.66-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-05-12. 🎊

    For reference, here are some details about the assignees on this issue:

  16. melvin-bot commented on May 5, 2026

    @melvin-bot

    @sobitneupane / @nyomanjyotisa The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2Engineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions