-
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] Feature Request: show individual expense amounts in both the original currency and the policy currency #38970
Comments
Triggered auto assignment to @garrettmknight ( |
|
Since we're reusing existing patterns, I'm going to open to |
Job added to Upwork: https://www.upwork.com/jobs/~014de0b2f3db834923 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Feature Request: show individual expense amounts in both the original currency and the policy currency What is the root cause of that problem?New Feature What changes do you think we should make in order to solve the problem?In the BE we need to be returning the amount converted in the policy currency in App/src/components/ReportActionItem/MoneyRequestView.tsx Lines 169 to 170 in d8361ee
For MoneyRequestPreview: We are now displaying it in the original expense currency so we should add same as card transaction we need to display the amount in policy currency as the main amount and after the dot the amount in the expenses currency in money request preview After action.originalMessage is populated in BE with the policy currency converted values we can build the text hereApp/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx Lines 263 to 265 in d8361ee
by concatenating • ${translate('iou.original')} and then orignalAmount Of course We can tweek the styling of the texts as the design teams' recommendation What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.show individual expense amounts in both the original currency and the policy currency What is the root cause of that problem?We're only add the description for App/src/components/ReportActionItem/MoneyRequestView.tsx Lines 168 to 170 in 9dd66cf
What changes do you think we should make in order to solve the problem?
App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx Line 132 in 9dd66cf
3. BE need to return the converted amount of the transaction that isn't card transaction as well. What alternative solutions did you explore? (Optional)NA |
Updated to add some detail |
ProposalPlease re-state the problem that we are trying to solve in this issue.Show individual expense amounts in both the original currency and the policy currency What is the root cause of that problem?Feature Request What changes do you think we should make in order to solve the problem?
This is because on
App/src/components/ReportActionItem/MoneyRequestView.tsx Lines 105 to 108 in 9dd66cf
We want to show the details on every transaction and not only cards
App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx Lines 180 to 183 in 9dd66cf
What alternative solutions did you explore? (Optional)N/A Note Currently the |
@puneetlath I doubt if we return the original currency and amount in this case. Same was pointed out by multiple contributors. Tagging you since you had reported. Do tag others if required. |
I wasn't sure if this could be worked on by |
Current assignee @abdulrahuman5196 is eligible for the Internal assigner, not assigning anyone new. |
Still awaiting a volunteer |
Still awaiting a volunteer |
Still awaiting a volunteer. |
Looking into the backend change now. |
FWIW, this is what I'm seeing on a USD policy with a GBP expense. For a 100 GBP expense we're showing But then see this... I'm seeing us show USD (policy currency) with a possible conversion to USD from GBP happening. Then I see us use the policy currency with the unconverted amount in other places. And a "Company Spend" breakdown that seems like it shouldn't even be there at all (or maybe I'm not understanding why that's showing up in this case). I can't reproduce this with a manual request. It looks broken or possibly unimplemented. Are we following a Design Doc for this one? |
AFAICT we are returning everything we would need in the transaction object. Can we try to figure this out by using the transaction object instead of the reportAction? |
For multiple transactions created with different currencies the iou report will return the total in workspace currency but the transaction doesn't have the amount in the policy currency. The reason you were confused in ^ case is because you only created one transaction in an iou report you are seeing the converted total amount from the iou report, which in this case is equal to the transaction amount as there is only one transaction. |
Ok, but the amount shows with a |
@marcaaron you gonna take this one on? |
Actually, sorry, I forgot I assigned myself and got busy with other issues. Gonna remove myself so I won't be a blocker here. I'm admittedly having some difficulty in understanding the scope of what this issue is asking for. |
Dang, scared him off. 👹 |
Still awaiting a volunteer. |
Still awaiting a volunteer. |
Still awaiting a volunteer. |
1 similar comment
Still awaiting a volunteer. |
Still awaiting a volunteer. I'm going to close this until we have a request from a migration customer. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Problem:
If an expense is in a currency other than the policy currency, not showing what the converted amount is. We show the report total in the policy currency, but there is no indication on the individual expenses what the converted amount is.
Solution:
Ideally we'd show it on both the transaction preview on the report and in the transaction itself.
Should have the same design patterns as card transaction, where the converted amount is shown as the primary amount, with the original amount shown after the dot separator.
Context/Examples/Screenshots/Notes:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @puneetlath
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1711377096912369
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: