-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-11-11] [$250] Held expense-Negative amount in transaction thread for held expense after paying unheld expense #49754
Comments
Triggered auto assignment to @OfstadC ( |
We think that this bug might be related to #wave-collect - Release 1 |
@OfstadC 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 |
Edited by proposal-police: This proposal was edited at 2024-10-09 18:11:01 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Negative amount in transaction thread for held expense after paying unheld expense What is the root cause of that problem?For expense report case we add App/src/libs/TransactionUtils/index.ts Lines 345 to 351 in b655040
However, when we handle the pay money request and use getReportFromHoldRequestsOnyxData , we are actually creating an ExpenseReport. For 1:1 direct messages, it should instead be an IOUReport .Lines 6451 to 6459 in b655040
This is also not consistent with the BE response in case of 1:1 DMs the backend will return an What changes do you think we should make in order to solve the problem?We should add a check here isPolicyExpenseChat. The idea is that if it's a policy expense chat, we should build an optimistic expense report using
After this change, this line will evaluate to false, and we'll move to this block, where we'll apply App/src/libs/TransactionUtils/index.ts Line 337 in b655040
Note: This is pseudocode only. We need to test the implementation with multiple test cases, which can be done in the pull request (PR). What alternative solutions did you explore? (Optional)We can use |
Missed this yesterday - reviewing now |
@OfstadC Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I had issues reproducing this on Friday - forgot to add a comment here. |
Able to reproduce 20241001_220541.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~021841126678085530276 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
On my list this weekend. |
Reviewing shortly |
hey @Nodebrute, I think your proposal makes sense, can you please provide a little more detailed about your main solution? TIA. |
Thank You @hungvu193, I'll update in few hours. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Waiting for contributor information, no action required |
@OfstadC @hungvu193 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! |
@hungvu193 I've updated my main proposal. I tried my best to explain it as clearly as possible, but I'm unsure how to add more detail. Please let me know if you have any questions, and I'll do my best to answer them. |
Thanks I'll review it today |
I see/ i'll check it in a while |
Thanks for your details. @Nodebrute 's proposal here looks good to me! |
🎀 👀 🎀 |
Triggered auto assignment to @blimpich, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @Nodebrute 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@OfstadC, @hungvu193, @blimpich, @Nodebrute Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Not overdue. PR is inprogress |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.56-9 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 2024-11-11. 🎊 For reference, here are some details about the assignees on this issue:
|
@hungvu193 @OfstadC 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] |
Commenting to please Melly Melvin. @hungvu193 Please ensure BZ checklist is completed by payment date. Thank you! |
Link to comment: https://github.com/Expensify/App/pull/42573/files#r1836147530
Link to discussion: N/A
|
Payment Summary
|
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.40-1
Reproducible in staging?: Y
Reproducible in production?: Y
Issue was found when executing this PR: #49463
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The amount in the transaction thread will not be negative.
Actual Result:
The amount in the transaction thread is negative.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6615322_1727299431457.20240926_051632.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @OfstadCThe text was updated successfully, but these errors were encountered: