-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[HOLD for payment 2024-11-01] Invoices - Receipt appears on invoice confirmation page if receipt is added from track expense #50303
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 @trjExpensify ( |
We think that this bug might be related to #vip-bills |
@trjExpensify 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-06 17:29:32 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Receipt appears on invoice confirmation page if receipt is added from track expense What is the root cause of that problem?When we add the receipt it gets added to this transaction and then we move back to send invoice we can see the receipt.
What changes do you think we should make in order to solve the problem?You can see that if we add categories during the invoice flow and then go back to start the track expense flow, the categories will still be present in the transaction object. However, we don’t see the categories on the screen because we hide them using this check.
The same we can do with receipts. We can add another check here
What alternative solutions did you explore? (Optional)We can pass the
and then we can use it here to hide the receipt
Alternative 2 pseudo-code
Optional: We can also add |
Proposal updated |
ProposalPlease re-state the problem that we are trying to solve in this issue.Receipt appears on invoice confirmation page if receipt is added from track expense What is the root cause of that problem?In this case, we have two separate flows: "Send Invoice" and "Track Expense." However, both flows save their data in the same place, "transactionsDraft_1." This results in the receipt from the "Track Expense" flow also being added to the "Send Invoice" flow A similar issue occurs with the category field, which only exists in the "Send Invoice" flow. If a value is added to category and then "Track Expense" is executed, the category field still appears in the payload of the "Track Expense" API What changes do you think we should make in order to solve the problem?"transactionsDraft_1" can be used to share common information like description, amount, and merchant,... as these exist in both flows. However, if we continue saving receipt information and the category field in "transactionsDraft_1" as we do now, we will need to make some adjustments:
What alternative solutions did you explore? (Optional)We can save the "Track Expense" information to a new ONYX state (transactionDraft_sideFlow), keeping the data for both flows completely separate. However, the downside of this approach is that any shared information between the two flows will not be available in both. |
I'll hold off on |
Bumped in thread: https://expensify.slack.com/archives/C07HPDRELLD/p1728580440064929?thread_ts=1728363084.092579&cid=C07HPDRELLD Doesn't look like @fabioh8010 has access to that channel though, so tagging you here! |
Hi @trjExpensify Could you assign me here so I can work on the fix? Thanks! |
Done! |
@fabioh8010 are you able to prioritize this one this week? Thanks! |
Created a Draft PR -> #50732 |
Excellent! When do you think you can have it in review? |
I asked for Georgia's feedback in DM but no answer yet, so I think I will just proceed into opening the PR today with screenshots / test videos and tag her again |
That would be great, thanks! |
PR was opened to review. |
I was assigned to the ^ PR, does that require C+ review ? |
bump on ^ @grgia |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.53-1 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-01. 🎊 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:
|
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.45-2
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Receipt will not appear on the invoice confirmation page because invoice does not support receipt (evident from Step 4).
Actual Result:
Receipt appears on invoice confirmation page if receipt is added from track expense first.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6625725_1728157302093.20241006_033817.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: