You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] Dupe detect - Paid expense appears in Review duplicates flow but unable to complete the flow #46372
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:
Go to staging.new.expensify.com
Go to workspace chat
Submit an expense
Pay the expense
Submit another two same expenses (same amount, date and merchant) as expense from Step 3
Go to transaction thread of any of the submitted expense from Step 5
Click Review duplicates
Click Keep this one on the paid expense (from Step 4)
Click Confirm
Note that the other two expenses are not removed
Go to transaction thread of any of the submitted expense from Step 5
Click Review duplicates
Click Keep this one on any of the unpaid expense (from Step 5)
Click Confirm
Note that the process fails and Review duplicates button reappears
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?
@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
Edited by proposal-police: This proposal was edited at 2024-08-09 07:00:14 UTC.
Proposal
Please 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)
We also cannot keep only the unpaid one (Step 15) after attempting to keep only the paid expense
What is the root cause of that problem?
In step 8, the list of transactions to display is from:
changed the title [-]Dupe detect - Paid expense appears in Review duplicates flow but unable to complete the flow[/-][+][$250] Dupe detect - Paid expense appears in Review duplicates flow but unable to complete the flow[/+]on Jul 29, 2024
Activity
melvin-bot commentedon Jul 27, 2024
Triggered auto assignment to @zanyrenney (
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 commentedon Jul 27, 2024
We think that this bug might be related to #wave-collect - Release 2
lanitochka17 commentedon Jul 27, 2024
@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
nyomanjyotisa commentedon Jul 28, 2024
Proposal
Please 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
transactionViolationsonyx data from the API responseWhat changes do you think we should make in order to solve the problem?
We should filter the
transactionsto show in the Review duplicates page to only show transaction within the current reportAdd the following code here
use
finalTransactionIDshereand use
finalTransactionshereRESULT
-1-New-Expensify.13.mp4
What alternative solutions did you explore? (Optional)
daledah commentedon Jul 29, 2024
Edited by proposal-police: This proposal was edited at 2024-08-09 07:00:14 UTC.
Proposal
Please 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)
We also cannot keep only the unpaid one (Step 15) after attempting to keep only the paid expense
What is the root cause of that problem?
In step 8, the list of transactions to display is from:
App/src/pages/TransactionDuplicate/Review.tsx
Line 36 in 08bb00b
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/pages/TransactionDuplicate/Review.tsx
Line 36 in 08bb00b
App/src/libs/TransactionUtils.ts
Line 973 in 08bb00b
Then, when calling API
Transaction_Merge, thetransactionIDListincludes paid expenses as well.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:
zanyrenney commentedon Jul 29, 2024
adding external and to project
melvin-bot commentedon Jul 29, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01add0c19e8ce4b462
[-]Dupe detect - Paid expense appears in Review duplicates flow but unable to complete the flow[/-][+][$250] Dupe detect - Paid expense appears in Review duplicates flow but unable to complete the flow[/+]89 remaining items
melvin-bot commentedon Oct 7, 2024
@parasharrajat, @techievivek, @zanyrenney, @daledah Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
zanyrenney commentedon Oct 8, 2024
@daledah still hasn't applied to the job,.
daledah commentedon Oct 8, 2024
@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
zanyrenney commentedon Oct 11, 2024
Hey @daledah offer sent!!
daledah commentedon Oct 11, 2024
@zanyrenney Thx, I accepted it in Upwork
zanyrenney commentedon Oct 14, 2024
payment summary
$250 for @parasharrajat can be requested through ND.
$250 for @daledah needs to be paid through upwork. PAID
parasharrajat commentedon Dec 12, 2024
Payment requested as per #46372 (comment)
JmillsExpensify commentedon Dec 16, 2024
$250 approved for @parasharrajat