-
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-01-11] [HOLD for payment 2024-01-09] [$500] IOU - When adding a receipt to a manual IOU, the error "Receipt missing details" appears #33786
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @joelbettner ( |
Job added to Upwork: https://www.upwork.com/jobs/~014720a73c52b8fa9d |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
cc: @mountiny |
Yeah Someone can try to reproduce, then revert on main and repro again to confirm, I am fixing some issues and we we have weekend to resolve, its been quite complicated Pr so ideally we fix this instead of reverting |
Proposalfrom: @unicorndev-727 Please re-state the problem that we are trying to solve in this issue.When adding a receipt to a manual IOU, the error "Receipt missing details" appears What is the root cause of that problem?The root cause is that we don't have merchat in transaction here. App/src/libs/TransactionUtils.ts Line 149 in 595bf40
App/src/libs/TransactionUtils.ts Lines 132 to 138 in 595bf40
We are sending PARTIAL_TRANSACTION_MERCHANT here and here.in here What changes do you think we should make in order to solve the problem?We need to move
screen-capture.2.webmWhat alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?We have added extra validations for the missing merchant on transactions with receipt, but did not consider the fact that manual requests can have receipts as well without requiring the merchant. What changes do you think we should make in order to solve the problem?We should persist the following 2 parameters into the transaction when creating the request: Lines 1177 to 1186 in 422f173
It's already being used during the request creation, but it's not persisted: App/src/libs/TransactionUtils.ts Lines 42 to 49 in 3ba6f55
This will give us more fine-grained control over the behavior of different types of transactions. After it, we should make use of App/src/libs/TransactionUtils.ts Lines 415 to 420 in 3ba6f55
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.When adding a receipt to a manual IOU, the error "Receipt missing details" appears What is the root cause of that problem?the condition that decides whether error on the merchant field should be shown or not in the MoneyReportView is not in sync with the confirmlation list:
App/src/components/ReportActionItem/MoneyRequestView.js Lines 243 to 250 in f2b74e8
What changes do you think we should make in order to solve the problem?We need to add function hasMissingSmartscanFields(transaction: OnyxEntry<Transaction>): boolean {
const report = ReportUtils.getReport(transaction?.reportID);
const isPolicyExpenseChat = ReportUtils.isPolicyExpenseChat(report);
return Boolean(
transaction && hasReceipt(transaction) && isPolicyExpenseChat && !isDistanceRequest(transaction) && !isReceiptBeingScanned(transaction) && areRequiredFieldsEmpty(transaction),
);
} POCScreen.Recording.2023-12-30.at.1.51.48.AM.mov |
To clarify the expected behaviour here, the problem is about the fact this is P2P IOU request and in this case we do not require the merchant with the receipt (different case for workspace chats in which case this error is correct) So I think the solution here is just to see if the parent report is expense type and only then show this violation |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?The What changes do you think we should make in order to solve the problem?Move and export the
What alternative solutions did you explore? (Optional)Option A Option B The last action for both options A and B will be checking if is an expense report with |
@Tony-MK I like your proposal because We will just need to import Edit: I just saw the updated proposal from @unicorndev-727 that mentions a dependancy loop if we import |
Kindly, review my updated prospal. Thanks |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
I do feel like all the proposals are quite good, @paultsimura seems the simplest but is there going to be the dependency cycle in your solutions? |
There shouldn't be, since all the fields will be on the same |
I dont think we need that, all thats needed is the fact if the expense is on group or personal policy, which in exchange can be checked by the report type. Are you able to make a PR with a that fix and verify there are no dependency cycles? |
Triggered auto assignment to @CortneyOfstad ( |
Bug0 Triage Checklist (Main S/O)
|
📣 @situchan 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.21-4 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-01-11. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Hey everyone, Advice by @mountiny, this comment is a continuation of this slack discussion. Below are the PR changes meant the fix this issue from his Proposal. App/src/libs/TransactionUtils.ts Lines 33 to 38 in ff95c0c
App/src/libs/TransactionUtils.ts Lines 159 to 161 in ff95c0c
Also, here are the suggestions for my proposal's alternative solution A presented.
|
Note for @CortneyOfstad I think @paultsimura did not do this intentionally but in Slack mentioned he is happy to split the reward for fairness. In that case we can pay $250 each for @paultsimura and @Tony-MK $500 to @situchan |
@Tony-MK sent you a proposal — please let me know once you accept so I can get that paid to you 👍 @paultsimura — paid you $250 per the comment above via Upwork @situchan — paid you $500 via Upwork |
Thanks, @CortneyOfstad . I accepted the offer. |
Paid! Payment SummaryContributor that fixed the issue — @paultsimura paid $250 via Upwork; @Tony-MK paid $250 via Upwork |
@situchan any updates on the checklist above? TIA! |
This was deploy blocker. Caught during regression testing so no need another one. |
Perfect! Closing! |
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.20-0
Reproducible in staging?: Y
Reproducible in production?: N
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:
No error should appear when adding a receipt to a manual IOU
Actual Result:
When adding a receipt to a manual IOU, the error "Receipt missing details" appears
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6328742_1703884402000.Recording__1008.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @CortneyOfstadThe text was updated successfully, but these errors were encountered: