Open m-natarajan opened 1 month ago
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.
incorrect currency for p2p request
We get the currency from the personal policy output currency here https://github.com/Expensify/App/blob/0a178210f6ce87f30d8e819a08053d76c5cee632/src/components/ReportActionItem/MoneyRequestView.tsx#L231
Get the currency from the transaction data first
const currency = transaction?.currency ?? policy?.outputCurrency ?? PolicyUtils.getPersonalPolicy()?.outputCurrency ?? CONST.CURRENCY.USD;
Or just this:
const currency = transaction?.currency;
Or:
const currency = transaction?.currency ?? CONST.CURRENCY.USD;
I'd love to be C+ here as I've reported the bug and have been working tightly with the Distance expenses recently.
Job added to Upwork: https://www.upwork.com/jobs/~01fb1bf8d2bf2fb7c7
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External
)
📣 @paultsimura 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻 Keep in mind: Code of Conduct | Contributing 📖
Sure, all yours @paultsimura -- I've assigned you as C+!
Just a note: C+ can't request to be assigned because they have reported the issue (which was discussed). This is for fairness.
Sorry @thesahindia I was unaware of that discussion. Please take this issue back, it would be fair👍
No problem! I don't have any issue here. Feel free to take it.
I was just adding a note for awareness.
This issue should cover the mileage issue as well. What should we do when user A uses kilometers, and user B – miles?
a: Convert kilometers to miles and show the corresponding value in each user's mileage preference b: Show the original distance & mileage unit for both users
@stephanieelliott @neil-marcellini
Wow this is an interesting one. I think ideally each user will see it based on their own preferences. So if A is in EUR/km and B is in USD/mi, then both alway sees the values in their units.
However, I'm not sure if our system is going to support that very well right now. It would be helpful to know what happens with IOUs if two users create manual expenses with different currencies. We will probably want to follow that pattern.
@paultsimura would you please do that investigation and then make a post asking about the UX for this situation in #expensify-open-source? I will then share it with our internal team and we can all agree on what's best. It feels somewhat important and something we haven't considered much so I want to get a good amount of feedback.
The discussion is still in progress: https://expensify.slack.com/archives/C01GTK53T8Q/p1723152837593809
Assigning myself to help move that discussion along
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
To sum up the discussion:
P2P Distance] Rate: incorrect currency for p2p request
We were displaying based on currency setting of the user's personal policy https://github.com/Expensify/App/blob/d4d5a2586910ff46147219ee3e98bb3e936f8037/src/components/ReportActionItem/MoneyRequestView.tsx#L240-L241
We should change it to
const currency = policy ? policy.outputCurrency : transactionCurrency ?? CONST.CURRENCY.USD;
or
const currency = policy ? policy.outputCurrency : transactionCurrency ?? PolicyUtils.getPersonalPolicy()?.outputCurrency ?? CONST.CURRENCY.USD;
Unfortunately, so far none of the proposals is good enough. Let's hold this on both https://github.com/Expensify/App/issues/46753 and https://github.com/Expensify/App/issues/43588 - there are pending BE changes.
@paultsimura @neil-marcellini @stephanieelliott this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
@paultsimura, @neil-marcellini, @stephanieelliott Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Sounds good @paultsimura -- adjusted title and labels for the hold
FYI the conclusion from our last discussion is here. I think we should specifically focus this issue on the currencies displayed for the amount and rate. The unit can be handled with this issue https://github.com/Expensify/App/issues/43588#top. Also holding on it is still a good idea as the approach we use there can inform this one.
Still held on https://github.com/Expensify/App/issues/43588
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 Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1722875886722249
Action Performed:
Pre-requisites: Have 2 accounts with different personal currencies. For this, on User A:
Expected Result:
The amount and rate should be in the original currency
Actual Result:
The amount is in the original currency (GBP), while the rate shows User B's currency (0.45zl instead of 0.45 GBP)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
https://github.com/user-attachments/assets/fa7da7ec-8d9e-4f56-b936-891c69ce54ae
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @thesahindia