Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.58k stars 2.92k forks source link

Submit Expense - Duplicate expense is created when admin pays expense submitted by employee. #53279

Open lanitochka17 opened 3 hours ago

lanitochka17 commented 3 hours ago

Version Number: 9.0.68-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers): biruknew45+3h@gmail.com Issue reported by: Applause Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. As an admin, create a workspace and add an employee
  3. As an admin, set delay submission to manually and enable approval
  4. As an employee, go to the workspace chat and submit an expense
  5. As an employee, click on the submit button.
  6. As an admin, Approve the expense and pay elsewhere.

Expected Result:

No duplicate expense created.

Actual Result:

Duplicate expense is created when the admin approves and pays the expense submitted by the employee.

Workaround:

Unknown

Platforms:

Screenshots/Videos

https://github.com/user-attachments/assets/1679c812-ca0a-4b13-bb74-535079d5e208

View all open jobs on GitHub

melvin-bot[bot] commented 3 hours ago

Triggered auto assignment to @trjExpensify (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.