Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Held requests] Held and unpaid expense disappears when paying only the unheld expense #46370

Closed
6 tasks done
lanitochka17 opened this issue Jul 27, 2024 · 41 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Jul 27, 2024

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.0.13-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4775912
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. [User A] Submit two expenses to User B
  3. [User A] Hold one of the submitted expenses
  4. [User B] Go to expense report from User A
  5. [User B] Click Pay button
  6. [User B] Pay partially the expense (pay the unheld expense)

Expected Result:

For User A and B,

  • the paid system message should display "paid elsewhere"
  • the unpaid expense will be moved to a new report

Actual Result:

For User A and B,

  • the paid system message displays "paid elsewhere"

For User A,

  • the unpaid expense disappears.

For User B,

  • the unpaid expense becomes negative in another report, and it leads to not here page.
  • the unpaid expense disappears after clearing app cache and restarting app.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6554706_1722088302329.bandicam_2024-07-27_21-39-39-030.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d67b0d3a732826c4
  • Upwork Job ID: 1821690332875199057
  • Last Price Increase: 2024-08-15
Issue OwnerCurrent Issue Owner: @robertjchen
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 27, 2024
Copy link

melvin-bot bot commented Jul 27, 2024

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

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@lanitochka17
Copy link
Author

@JmillsExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@melvin-bot melvin-bot bot added the Overdue label Jul 30, 2024
Copy link

melvin-bot bot commented Jul 31, 2024

@JmillsExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

Copy link

melvin-bot bot commented Aug 2, 2024

@JmillsExpensify Eep! 4 days overdue now. Issues have feelings too...

Copy link

melvin-bot bot commented Aug 6, 2024

@JmillsExpensify Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

@JmillsExpensify
Copy link

Going to highlight this one in the project issue.

@melvin-bot melvin-bot bot removed the Overdue label Aug 7, 2024
@JmillsExpensify
Copy link

Flagged this in #wave-collect. I'll go ahead and add it to polish for now, though @trjExpensify we can remove depending on how the wave-collect/polish hit list pans out.

@JmillsExpensify JmillsExpensify added the External Added to denote the issue can be worked on by a contributor label Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01d67b0d3a732826c4

@melvin-bot melvin-bot bot changed the title Hold expense - Held and unpaid expense disappears when paying only the unheld expense [$250] Hold expense - Held and unpaid expense disappears when paying only the unheld expense Aug 8, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

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

@trjExpensify trjExpensify changed the title [$250] Hold expense - Held and unpaid expense disappears when paying only the unheld expense [$250] [Held requests] Held and unpaid expense disappears when paying only the unheld expense Aug 9, 2024
Copy link

melvin-bot bot commented Aug 10, 2024

@JmillsExpensify @dukenv0307 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@dukenv0307
Copy link
Contributor

@JmillsExpensify It's BE bug

@trjExpensify
Copy link
Contributor

@dukenv0307 any more insight on that? CC: @robertjchen

@robertjchen
Copy link
Contributor

robertjchen commented Aug 14, 2024

Looks like the backend is not sending Onyx updates when something is being unheld as part of a payment/approval operation. Testing out some solutions locally to see if it'll help here.

Copy link

melvin-bot bot commented Aug 15, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Aug 15, 2024
Copy link

melvin-bot bot commented Aug 15, 2024

@JmillsExpensify, @dukenv0307 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@robertjchen robertjchen self-assigned this Aug 15, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

This issue has not been updated in over 14 days. @JmillsExpensify, @robertjchen, @dukenv0307 eroding to Weekly issue.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Overdue labels Sep 4, 2024
@robertjchen
Copy link
Contributor

Discussing this one here

@trjExpensify
Copy link
Contributor

Suggested next steps from @luacmartins in thread:

This is happening because we're moving an IOU expense to a new expense report, instead of an IOU report, because we call moveTransactionsToNewExpenseReport
we need to check if we're moving a transaction on iou or expense report and then move it to a new iou report instead

@melvin-bot melvin-bot bot added the Overdue label Sep 12, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 Overdue labels Sep 13, 2024
@robertjchen
Copy link
Contributor

PR with fix for negative amounts with held expenses merged 👍 Finishing this off with the iou report moving issue

@robertjchen
Copy link
Contributor

Draft PR has working flow in place, testing still in progress for the final optimistic updates. Should be ready to review before EOW

@robertjchen
Copy link
Contributor

PR under review

@robertjchen robertjchen added the Reviewing Has a PR in review label Sep 19, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Sep 19, 2024
@robertjchen
Copy link
Contributor

FE PR under review

@robertjchen
Copy link
Contributor

FE PR merged and on the way out

@robertjchen robertjchen added Daily KSv2 and removed Weekly KSv2 labels Sep 23, 2024
@robertjchen
Copy link
Contributor

Tested and held IOUs no longer "disappear" off to an inaccessible policy 👍

Did come across two minor bugs coming off of the new flow- created new successor issues linked below:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review
Projects
No open projects
Status: Done
Development

No branches or pull requests

6 participants