-
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
[$500] when adding amount details to a failed smartscan, default currency isn’t local #33258
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01afd06e1036c5deb0 |
Triggered auto assignment to @lschurr ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.when adding amount details to a failed smartscan, default currency isn’t local What is the root cause of that problem?The component App/src/pages/EditRequestPage.js Lines 78 to 85 in 19ca744
To retrieve the currency, is used some methods from App/src/libs/TransactionUtils.ts Lines 280 to 286 in 19ca744
What changes do you think we should make in order to solve the problem?We should change the For example: function getCurrency(transaction: OnyxEntry<Transaction>): string {
const currency = transaction?.modifiedCurrency ?? '';
const hasFieldErrors = hasMissingSmartscanFields(transaction);
if (hasFieldErrors || _.isEmpty(currency)) {
return transaction?.currency ?? CONST.CURRENCY.USD;
}
return currency;
} What alternative solutions did you explore? (Optional)N/A POC poc-issue-33258.mov |
This just needs a simple backend fix because once the scan fails, it sets the Check whether the backend is setting the @rushatgabhane, could you confirm this? |
Not exactly the same, but the currency is changed from the local one to USD here too, so I thought it good to mention the issue for reference sake. |
@rushatgabhane, @lschurr Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Bump on this one @rushatgabhane |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@rushatgabhane, @lschurr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@rushatgabhane - any update here? |
Bumped in Slack - https://expensify.slack.com/archives/C01GTK53T8Q/p1703871901016549 |
@wlegolas 's proposal LGTM #33258 (comment) |
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
This still stuck on me, I have done some progress in reproducing the original problem in dev. The Expensiwork/smartscan was a bit tricky to get to work. I need to do more testing to decide where is the best place to fix this (backend/frontend). |
Hi @aldo-expensify did you have time to execute your tests to check the better place to fix this issue? If there is something that I can help, please let me know. |
I found the code in the backend where we are setting the This issue is kind of low priority, so I have been getting pulled to other higher priority issues. I think what we should do is:
These don't have to necessarily happen in that order. |
Hi @aldo-expensify thank you for sharing your results. If the fix should be done by the backend, for me doesn't have a problem, I don't know how it's the process (just close the PR or pay something for my time), so I leave it open to you to understand the best way to close this issue. |
@wlegolas, @rushatgabhane, @lschurr, @aldo-expensify, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
@wlegolas, @rushatgabhane, @lschurr, @aldo-expensify, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
Not resolved yet! |
@wlegolas, @rushatgabhane, @lschurr, @aldo-expensify, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
@wlegolas, @rushatgabhane, @lschurr, @aldo-expensify, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
Payment summary: We agreed to pay half of the original job price since the PR wasn't merged but the job was assigned and @wlegolas put work into it.
|
@lschurr me too please, i had reviewed the issue and PR |
Ah, thanks @rushatgabhane. I'll add you to the payment summary |
All set. |
$250 approved for @rushatgabhane |
Hi folks. Thank you so much for giving me this payment ❤️ |
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.13-8
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: @dylanexpensify
Slack conversation:
Action Performed:
Expected Result:
the amount to input would default to your local currency
Actual Result:
the amount to input defaults to USD$
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
ENAL3616.1.MP4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: