-
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] IOU - After an IOU SmartScan creation error, the file is not downloaded #31845
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01020d12092d3ed7d9 |
Triggered auto assignment to @garrettmknight ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
ProposalPlease re-state the problem that we are trying to solve in this issueAfter an IOU SmartScan creation error, the file is not downloaded What is the root cause of that problem?This is due to a missing filename (making it undefined) in
This confusion of type will go away with typescript What changes do you think we should make in order to solve the problem?Add argument for filename in getReceiptError function function getReceiptError(receipt, filename) {
return _.isEmpty(receipt)
? ErrorUtils.getMicroSecondOnyxError('iou.error.genericCreateFailureMessage')
: ErrorUtils.getMicroSecondOnyxErrorObject({error: CONST.IOU.RECEIPT_ERROR, source: receipt.source, filename});
} What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.After IOU SmartScan creation error, the file (receipt) is not downloaded, nothing happens when clicking on "Download the file". What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
The split bill flow can be fixed similarly. There's another issue, which is when we reload the page, we'll still see the What alternative solutions did you explore? (Optional)A |
For reference type Receipt = {
receiptID?: number;
source?: string;
state?: ValueOf<typeof CONST.IOU.RECEIPT_STATE>;
}; |
The |
Nope, I also checked from the backend. This is the structure I got. The confusion about receipt will be resolved when IOU.js gets migrated to TS. {
"amount": 0,
"billable": false,
"cardID": 17621655,
"category": "",
"comment": {
"comment": ""
},
"created": "2023-11-25",
"currency": "INR",
"filename": "w_2396d6280fa6bd05322c143e2810e745fe4e5d5f.jpg",
"hasEReceipt": false,
"merchant": "(none)",
"modifiedAmount": 0,
"modifiedCreated": "",
"modifiedCurrency": "",
"modifiedMerchant": "",
"originalAmount": 0,
"originalCurrency": "",
"parentTransactionID": "",
"receipt": {
"receiptID": 675782569,
"source": "https://staging.expensify.com/receipts/w_2396d6280fa6bd05322c143e2810e745fe4e5d5f.jpg",
"state": "SCANREADY"
},
"reimbursable": true,
"reportID": "2000492459104116",
"status": "Posted",
"tag": "",
"transactionID": "7229659494596007058"
} |
The offending PR will be reverted here |
Looks like we're going to apply a fix for the separate issue the PR introduced instead of reverting the PR. We do have another issue open for this here #28884 so I'm going to close this one. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.3.2
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:
Issue found when executing PR #29790
Action Performed:
Expected Result:
After the error of creating an IOU SmartScan file(check), the user should be able to download the file by clicking on "Download the file".
Actual Result:
After IOU SmartScan creation error, the file (receipt) is not downloaded, nothing happens when clicking on "Download the file".
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6288996_1700777171545.Recording_PR_29790_Desktop.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: