Repository navigation
Description
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: 9.0.16-5
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: @paultsimura
Initial slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1722875886722249
Additional in depth conversation and conclusion
Action Performed:
- User A uses EUR/km as currency and mileage unit
- User B uses USD/miles
- User A submits a distance expense to User B
Expected Result:
Show the rate in the original currency of the expense for both users, to match the fact that we use the original currency for the amount.
Also, some general notes:
- The currency of the IOU report is the reporting currency of the user that’s owed
- Transaction threads/individual expense views show amounts in the original currency they were requested in
- The only way a user can see the original currency vs the reporting currency for the amount, is when there is one expense on the report, in which case the reporting currency is used for the report total and it’s easy to see in comparison to the expense currency.
Note: The distance rate (mi or km) is being handled separately in this issue
Actual Result:
User B sees the rate in USD without it being converted at all, so it’s inaccurate.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android: Native
- Android: mWeb Chrome
- iOS: Native
- iOS: mWeb Safari
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Single expense report preview
User A

Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01fb1bf8d2bf2fb7c7
- Upwork Job ID: 1821378352686653817
- Last Price Increase: 2024-10-01
- Automatic offers:
- paultsimura | Contributor | 103443192
- nyomanjyotisa | Contributor | 104234962



Activity
melvin-bot commentedon Aug 5, 2024
Triggered auto assignment to @stephanieelliott (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.nyomanjyotisa commentedon Aug 6, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
incorrect currency for p2p request
What is the root cause of that problem?
We get the currency from the personal policy output currency here
App/src/components/ReportActionItem/MoneyRequestView.tsx
Line 231 in 0a17821
What changes do you think we should make in order to solve the problem?
Get the currency from the transaction data first
What alternative solutions did you explore? (Optional)
Or just this:
Or:
paultsimura commentedon Aug 6, 2024
I'd love to be C+ here as I've reported the bug and have been working tightly with the Distance expenses recently.
[-]Distance Rate: incorrect currency for p2p request (beta)[/-][+][$250] Distance Rate: incorrect currency for p2p request (beta)[/+]melvin-bot commentedon Aug 8, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01fb1bf8d2bf2fb7c7
melvin-bot commentedon Aug 8, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (
External)55 remaining items
[-][$250][P2P Distance] Rate currency doesn't match expense currency[/-][+][HOLD for payment 2024-10-25] [$250][P2P Distance] Rate currency doesn't match expense currency[/+]melvin-bot commentedon Oct 18, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Oct 18, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.50-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-10-25. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Oct 18, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
paultsimura commentedon Oct 21, 2024
Note
I wouldn't call this a bug with an offending PR – this is rather a follow-up after #38543, covering a specific multi-currency edge case and improving UX with the rates selection.
Regression Test Proposal
Pre-requisites:
Have 2 accounts with different personal currencies. For this:
Test 1:
Test 2:
Do we agree 👍 or 👎
stephanieelliott commentedon Oct 26, 2024
Regression test created: https://github.com/Expensify/Expensify/issues/439138
stephanieelliott commentedon Oct 26, 2024
Summarizing payment on this issue:
Upwork job is here: https://www.upwork.com/jobs/~01fb1bf8d2bf2fb7c7
melvin-bot commentedon Oct 26, 2024
@neil-marcellini @stephanieelliott Be sure to fill out the Contact List!