-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$250] Dupe detect - Paid expense appears in Review duplicates flow but unable to complete the flow #46372
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
Comments
Triggered auto assignment to @zanyrenney ( |
We think that this bug might be related to #wave-collect - Release 2 |
@zanyrenney 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 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Paid expense appears in Review duplicates flow but unable to complete the flow What is the root cause of that problem?Paid duplicates transaction from other reports are included in the What changes do you think we should make in order to solve the problem?We should filter the Add the following code here
use and use RESULT -1-New-Expensify.13.mp4What alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2024-08-09 07:00:14 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.In Step 8, the paid expense appears in Review duplicates flow and we cannot keep only the paid one (Step 10) What is the root cause of that problem?In step 8, the list of transactions to display is from:
where we do not filter out the paid transactions. The similar logic appears in: App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx Line 282 in 08bb00b
App/src/libs/TransactionUtils.ts Line 853 in 08bb00b
App/src/libs/TransactionUtils.ts Line 973 in 08bb00b
Then, when calling API What changes do you think we should make in order to solve the problem?We should create a function to filter out the paid expense:
then use it in App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx Line 282 in 08bb00b
App/src/libs/TransactionUtils.ts Line 853 in 08bb00b
App/src/libs/TransactionUtils.ts Line 973 in 08bb00b
Additional implementation based on new expected behavior in comment:
In there, add:
to know whether we have the transactions that have already been approved or reimbursed. Then use it to display the text "Some of these duplicates have been approved or paid already":
We can update it: App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx Line 443 in 08bb00b
to:
|
adding external and to project |
Job added to Upwork: https://www.upwork.com/jobs/~01add0c19e8ce4b462 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Hey there @parasharrajat please can you review the proposals above and let me know if we can move forward with either of these. |
Let me check. |
May be a backend issue. Let me get some clarifications. |
OK so the approved and paid expenses should not come in the duplicate violations. I think it is backend issue if backend is sending those. |
Triggered auto assignment to @techievivek, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@techievivek Could you please check if backend needs to be fixed here? |
Looks like we are returning transactions from other reports as well. |
Not overdue, already commented above. |
OK. Got it. Thanks for the clarification. @daledah, it looks like there is a small divergence from what we implemented on the PR. Could you please hide |
@pecanoro I believe we should be doing the same for approved expenses as well. Correct? |
Yes, approved and paid! |
PR is merged |
It has been more than 2 weeks since the PR has hit production. I think we can move with the payment here. cc @zanyrenney, thanks. |
@zanyrenney Bump...Could you please post the summary? |
Seems like the automation is still failing. |
payment summary $250 for @parasharrajat can be requested through ND. @daledah can you apply to the job please? |
@parasharrajat, @techievivek, @zanyrenney, @daledah Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@daledah still hasn't applied to the job,. |
@zanyrenney When I access the job Upwork says the job is no longer available, can you please create an offer for my account https://www.upwork.com/freelancers/~0138d999529f34d33f |
Hey @daledah offer sent!! |
@zanyrenney Thx, I accepted it in Upwork |
payment summary$250 for @parasharrajat can be requested through ND. |
Payment requested as per #46372 (comment) |
$250 approved for @parasharrajat |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] 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: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
In Step 8, the paid expense should not appear in Review duplicates flow if we cannot keep only the paid one (Step 10)
Actual Result:
In Step 8, the paid expense appears in Review duplicates flow and we cannot keep only the paid one (Step 10)
We also cannot keep only the unpaid one (Step 15) after attempting to keep only the paid expense
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6554735_1722091102495.bandicam_2024-07-27_22-29-22-189.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @zanyrenneyThe text was updated successfully, but these errors were encountered: