-
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
[$500] Smartscan: Expense report preview in LHN shows 0.00 when PDF receipt is scanned successfully #34178
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01e635178117bbd335 |
Triggered auto assignment to @JmillsExpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
I think this issue is related to #34064 |
This issue is related to the sidebar and I don't think this is related to #34064 |
@s-alves10 In this #34064 (comment), Tim Golden instructed.
If it is not related, then it should be fixed by #34064. What do you think? 🤔 |
ProposalPlease re-state the problem that we are trying to solve in this issue.LHN shows 0.00 for IOU report when receipt is scanned successfully What is the root cause of that problem?Let's take a look at getReportPreviewMessage function which is used for displaying second line of LHN For money request, we get the preview message here Lines 2140 to 2148 in 3acb14a
We get the preview message from the original message amount and report currency. This is the root cause What changes do you think we should make in order to solve the problem?We should get the preview message from the transaction details We are already doing this for split bill actions here Lines 2067 to 2087 in 3acb14a
Update the above code segments to
This works great What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Scan - Expense report preview in LHN shows 0.00 when PDF receipt is scanned successfully What is the root cause of that problem?libs/SidebarUtils.getOptionData sets alternateText incorrectly when last visible report action is an iou report action. This root cause is the same root cause as #33733. The changes proposed here fix both of these issues. What changes do you think we should make in order to solve the problem?In libs/SidebarUtils.getOptionData check to see if last visible report action is an iou. If so, set alternateText correctly, using the latest amount of the iou transaction. Otherwise, use existing logic to set alternateText. |
@fedirjh Thoughts on these proposals? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I think this bug and #34064 are related. I think the fix should be on the backend. Let's put it on hold for #34064. The backend should return the correct text for the IOU action: for reference, this is the IOU action which doesn’t contain the correct text: this action is used to get the text displayed in the LHN |
@JmillsExpensify, @fedirjh Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I think this will be fixed with #34717. |
#34717 is still being reviewed. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@trjExpensify This one has been in hot picks, though never got picked up. Maybe we re-highlight in #wave-collect? |
Will do! |
I can take a look at this 😁 |
Niceee! Removing the |
Actually, it seems I can't reproduce this. @kbecciv, could you give it another try and confirm you still see this issue? |
Checking |
Any news, @kbecciv? |
Closing, then! |
Issue is still reproducible on the latest build 9.0.18-1 20240808_204303.mp4 |
@JmillsExpensify, @Gonals, @fedirjh Huh... This is 4 days overdue. Who can take care of this? |
Can we create a fresh issue for this? |
I can't seem to reproduce this (once again). Closing for now 🤷 |
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.23-0
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:
Expense report preview in LHN shows the correct amount.
Actual Result:
Expense report preview in LHN shows 0.00.
This issue is only reproducible when PDF receipt is used.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: