-
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
IOU - Currency in the amount editor is USD when the request is created in local currency #40543
Comments
Triggered auto assignment to @Beamanator ( |
Triggered auto assignment to @joekaufmanexpensify ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@joekaufmanexpensify 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. |
We think this issue might be related to the #collect project. |
Production bandicam.2024-04-19.07-21-56-741.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The currency in Amount editor is USD, when the request is created in local currency. What is the root cause of that problem?We're passing wrong
What changes do you think we should make in order to solve the problem?Update this line to
What alternative solutions did you explore? (Optional)NA |
Seems like a legit bug. I could see this being a legit blocker. @Beamanator you agree? |
Oof ya i would say this is a blocker, it's not great to show it's |
Hmm this one looks pretty sus: #38892 |
Posted in slack & tagged ^ those people - https://expensify.slack.com/archives/C01GTK53T8Q/p1713538343234679?thread_ts=1713521084.907369&cid=C01GTK53T8Q Sadly I'm unable to quickly revert the PR to test, probably b/c the PR was started a while ago |
Hmm, based on @nkdengineer root cause and solution which I already tested, it shouldn't be coming from our PR because we don't change the |
I think it's coming from #39144. In amount page, we are creating a backup transaction if we are editing a money request. App/src/pages/iou/request/step/IOURequestStepAmount.tsx Lines 107 to 114 in 4654d6e
That's why when we are editing, we pass the draftTransaction instead of transaction to get the data from the backup data.
Rename the key to transactionsBackup and the issue is fixed. App/src/pages/iou/request/step/IOURequestStepAmount.tsx Lines 269 to 272 in 4654d6e
|
Thanks @bernhardoj ! I agree it does look like #39144 is the real culprit - they modified |
Ok I have a PR up for the fix - note I used @bernhardoj 's solution |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
My proposal will cover this issue . @Beamanator please take a look |
@Beamanator @allroundexperts The new field |
@DylanDylann I see you were already paid for this PR in #40631 (comment), so I don't think any payment is due here. Closing this out for now, but LMK if you think that is not correct! |
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.63-5
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
The currency in Amount editor should be the local currency,.
Actual Result:
The currency in Amount editor is USD, when the request is created in local currency.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6454383_1713498999553.20240419_115228.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: