Skip to content

[Due for payment 2025-10-09] [$250] Expense - Error when member splits expense when report is partially approved #70806

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.2.15-9
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp https://test-management.browserstack.com/projects/2219752/test-runs/TR-825/folder/13176741/41237129/899329509
Email or phone of affected tester (no customers): sdoijdsoisnjdssosd22@gmail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.5 / Chrome
App Component: Money Requests

Action Performed:

Precondition:
Prepare the following users and invite them to a workspace:

  • User A - Admin
  • User B - Member
  • User C - Second approver (non-admin)
  1. Go to staging.new.expensify.com
  2. [User B] Go to invited workspace chat and create an expense.
  3. [User B] Click Submit on the expense preview.
  4. [User A] Open member's report and click Approve.
  5. [User B] Open the expense report.
  6. [User B] Click More > Split.
  7. [User B] Click Save.

Expected Result:

Split option should be hidden for member when the report is partially approved.

Actual Result:

Split option is not hidden for member when the report is partially approved. When member splits the expense, error shows up.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6948126_1758200269340.Screen_Recording_2025-09-18_at_20.49.57.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021970453109940958122
  • Upwork Job ID: 1970453109940958122
  • Last Price Increase: 2025-09-23
  • Automatic offers:
    • nkdengineer | Contributor | 108901356
Issue OwnerCurrent Issue Owner: @sonialiap

Activity

  1. added
    Daily
    Bug
    on Sep 18, 2025
  2. melvin-bot commented on Sep 18, 2025

    @melvin-bot

    Triggered auto assignment to @sonialiap (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. nkdengineer commented on Sep 19, 2025

    @nkdengineer
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Split option is not hidden for member when the report is partially approved. When member splits the expense, error shows up.

    What is the root cause of that problem?

    After the report is forwarded, the backend returns the error that the transaction can't be edited

    return isSubmitter || isAdmin || isManager;

    What changes do you think we should make in order to solve the problem?

    The admin/manger still can split expense, then we only need to hide this option for the submitter if the report is forwarded.

    return (isSubmitter && isAwaitingFirstLevelApproval(report))  || isAdmin || isManager;
    

    return isSubmitter || isAdmin || isManager;

    We already checked the approved/closed/settled here, then we only need to check the case forwarded

    if (report.stateNum && report.stateNum >= CONST.REPORT.STATE_NUM.APPROVED) {

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    Update ReportSecondaryActionUtils test to cover this case.

    What alternative solutions did you explore? (Optional)

    NA

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  4. added
    External
    on Sep 23, 2025
  5. changed the title [-]Expense - Error when member splits expense when report is partially approved[/-] [+][$250] Expense - Error when member splits expense when report is partially approved[/+] on Sep 23, 2025
  6. melvin-bot commented on Sep 23, 2025

    @melvin-bot
  7. added
    Help Wanted
    on Sep 23, 2025
  8. melvin-bot commented on Sep 23, 2025

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (External)

  9. parasharrajat commented on Sep 24, 2025

    @parasharrajat
    Member

    @nkdengineer's proposal looks good to me. Let's add a comment as well to explain this condition.

    🎀 👀 🎀 C+ reviewed

  10. 19 remaining items

  11. melvin-bot commented on Oct 2, 2025

    @melvin-bot

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

  12. removed
    Reviewing
    on Oct 2, 2025
  13. melvin-bot commented on Oct 2, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.21-4 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 2025-10-09. 🎊

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

  14. melvin-bot commented on Oct 2, 2025

    @melvin-bot

    @parasharrajat @sonialiap 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]

  15. sonialiap commented on Oct 13, 2025

    @sonialiap
    Contributor

    Payment symmary:
    @parasharrajat $250 please request in NewDot and complete the checklist
    @nkdengineer $250 please request in NewDot

  16. parasharrajat commented on Oct 13, 2025

    @parasharrajat
    Member

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
    • 2b. Reported on staging (eg. found during regression or PR testing)
    • 2d. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment: https://github.com/Expensify/App/pull/63092/files#r2426775070

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion: Not needed

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue:https://github.com/Expensify/Expensify/issues/556970

    Regression Test Proposal

    Precondition:

    • Prepare the following users and invite them to a workspace:

    User A - Admin
    User B - Member
    User C - Second approver (non-admin)

    Test:

    1. Go to staging.new.expensify.com
    2. [User B] Go to invited workspace chat and create an expense.
    3. [User B] Click Submit on the expense preview.
    4. [User A] Open member's report and click Approve.
    5. [User B] Open the expense report.
    6. Verify that: Split option is not displayed

    Do we agree 👍 or 👎

  17. nkdengineer commented on Oct 15, 2025

    @nkdengineer
    Contributor

    @sonialiap I will get paid via NewDot

  18. parasharrajat commented on Nov 9, 2025

    @parasharrajat
    Member

    Payment requested as per #70806 (comment)

  19. trjExpensify commented on Nov 17, 2025

    @trjExpensify
    Contributor

    approved $250 for @parasharrajat.

  20. sonialiap commented on Dec 15, 2025

    @sonialiap
    Contributor

    @nkdengineer updated payment summary so that you're paid in ND

  21. JmillsExpensify commented on Dec 17, 2025

    @JmillsExpensify
    Contributor

    $250 approved for @nkdengineer

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

Metadata

Metadata

Labels

Awaiting PaymentBugExternalWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions