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
[$500] Smartscan: Expense report preview in LHN shows 0.00 when PDF receipt is scanned successfully #34178
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:
Go to workspace chat.
Create a Scan request with PDF file as receipt.
When the scanning is complete, open expense report.
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?
changed the title [-]Scan - Expense report preview in LHN shows 0.00 when PDF receipt is scanned successfully[/-][+][$500] Scan - Expense report preview in LHN shows 0.00 when PDF receipt is scanned successfully[/+]on Jan 9, 2024
#34064 is related to IOU report preview in chat report and LHN for the report
This issue is related to money request in IOU report and LHN for the IOU report
They are different.
Activity
[-]Scan - Expense report preview in LHN shows 0.00 when PDF receipt is scanned successfully[/-][+][$500] Scan - Expense report preview in LHN shows 0.00 when PDF receipt is scanned successfully[/+]melvin-bot commentedon Jan 9, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01e635178117bbd335
melvin-bot commentedon Jan 9, 2024
Triggered auto assignment to @JmillsExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jan 9, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh (
External)Tony-MK commentedon Jan 9, 2024
I think this issue is related to #34064
dummy-1111 commentedon Jan 9, 2024
This issue is related to the sidebar and I don't think this is related to #34064
Tony-MK commentedon Jan 9, 2024
@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? 🤔
dummy-1111 commentedon Jan 9, 2024
Proposal
Please 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
App/src/libs/ReportUtils.ts
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
App/src/libs/ReportUtils.ts
Lines 2067 to 2087 in 3acb14a
Update the above code segments to
This works great
Result
What alternative solutions did you explore? (Optional)
dummy-1111 commentedon Jan 9, 2024
@Tony-MK
#34064 is related to IOU report preview in chat report and LHN for the report
This issue is related to money request in IOU report and LHN for the IOU report
They are different.
77 remaining items
Gonals commentedon Mar 11, 2024
Closing, then!
lanitochka17 commentedon Aug 8, 2024
Issue is still reproducible on the latest build 9.0.18-1
20240808_204303.mp4
melvin-bot commentedon Aug 13, 2024
@JmillsExpensify, @Gonals, @fedirjh Huh... This is 4 days overdue. Who can take care of this?
JmillsExpensify commentedon Aug 14, 2024
Can we create a fresh issue for this?
Gonals commentedon Aug 19, 2024
I can't seem to reproduce this (once again). Closing for now 🤷