-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[LOW] [Splits] IOU - IOU becomes paid while receipt is scanning #33972
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01a008da44d804c493 |
Triggered auto assignment to @garrettmknight ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Currently, if you click the "pay" button while a receipt is still scanning, the receipt gets incorrectly marked as paid even though the scan is not finished. What is the root cause of that problem?The problem occurs because we don't exclude receipts/reports that are still scanning when you press the "pay" button. What changes do you think we should make in order to solve the problem?We have two options to solve this:
const shouldShowPayButton = useMemo(
() => isPayer && !isDraftExpenseReport && !iouSettled && !props.iouReport.isWaitingOnBankAccount && reimbursableSpend !== 0 && !iouCanceled && !isScanning,
[isPayer, isDraftExpenseReport, iouSettled, props.iouReport.isWaitingOnBankAccount, reimbursableSpend, iouCanceled, isScanning],
); App/src/components/ReportActionItem/ReportPreview.js Lines 252 to 255 in 111debc
and here as well App/src/components/MoneyReportHeader.js Lines 97 to 100 in 111debc
Line 3309 in 901df70
|
ProposalPlease re-state the problem that we are trying to solve in this issue.IOU becomes paid while the receipt is scanning. What is the root cause of that problem?The For IOUs paid elsewhere, Therefore, the root cause of the problem is that we solely, use What changes do you think we should make in order to solve the problem?We need to add a condition in all of the respective components to check if a transaction has a receipt that is being scanned. The condition varies from component to component. With this condition, we can properly display the paid checkmark icons when a receipt is being scanned.
For i) Checkmark Icon
ii) 'Paid' Text Unsure if this should be changed, and if so how because I don't think it is expected to look like below. If we a changing the text, should the text in the
Optional for Granularity These suggestions are to reduce the chances that the introduced condition will create a regression.
What alternative solutions did you explore? (Optional)This simple solution will handle all places in which the bug applies but is risky. We could change the However, if you don't mind we can add an extra condition like previously mentioned to the |
@garrettmknight, @Ollyws Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@Ollyws can you please review the proposals so far? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Thanks for the proposals but it seems both may be unclear about the issue. |
Thank you, @Ollyws, for reviewing my proposal, and I apologize for failing to grasp the expected result. I have updated my proposal based on your comments at #33972 (comment). However, there are some questions which I would appreciate if you answer. Thank you. |
Thanks @Ollyws added a second solution to avoid marking scanning receipts as paid. |
Will review asap. |
@Ollyws can you review the updates when you get a chance? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@garrettmknight, @youssef-lr, @Ollyws Whoops! This issue is 2 days overdue. Let's get this updated quick! |
No update yet, still planning to get to this. |
@garrettmknight, @youssef-lr, @Ollyws Huh... This is 4 days overdue. Who can take care of this? |
I'll have time for this next week. |
@garrettmknight, @youssef-lr, @Ollyws Huh... This is 4 days overdue. Who can take care of this? |
No update yet, I'm focusing on fixing a few bugs for split affecting quality |
@garrettmknight, @youssef-lr, @Ollyws Eep! 4 days overdue now. Issues have feelings too... |
@garrettmknight, @youssef-lr, @Ollyws Still overdue 6 days?! Let's take care of this! |
No update yet |
Same |
I think this should be fixed since we started moving scanning expenses to new reports when a report is paid. Going to try reproducing this week or the next one. |
This is fixed. |
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: 1.4.21-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Receipt IOU should not be marked as paid
Actual Result:
The receipt IOU is marked as paid before the receipt is done scanning and before account B marks it as paid
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6332407_1704391663502.receiptscanpaid.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @youssef-lrThe text was updated successfully, but these errors were encountered: