Skip to content
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] Web - Workspace request money message displays wrong currency before conversion #26309

Closed
1 of 6 tasks
kbecciv opened this issue Aug 30, 2023 · 60 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@kbecciv
Copy link

kbecciv commented Aug 30, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Open the app
  2. Open settings and click on new workspace
  3. In new workspace, if current currency is not 'USD' the change to USD and if 'USD', change to any other currency.
  4. In LHN, workspace chat will be created, open it
  5. Click on plus and click Request money
  6. In request money, select currency different then workspace currency eg: In video, INR is selected in request money and workspace currency is USD
  7. Complete the request with any amount
  8. Observe the IOU message displays the workspace currency even before conversion to it eg: In video, it displays $900 instead of ₹900 and few moments later, it converts to $10.9

Expected Result:

Before conversion to workspace currency, app should display request money selected currency symbol in request money message

Actual Result:

Before conversion to workspace currency, app still displays workspace selected currency symbol in request money message

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.59.0
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
Notes/Photos/Videos: Any additional supporting documentation

currency.displayed.as.workspace.currency.mp4
Recording.4089.mp4

Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692866442917089

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010daaf0b73a652083
  • Upwork Job ID: 1702053307519152128
  • Last Price Increase: 2023-09-13
  • Automatic offers:
    • DylanDylann | Contributor | 26746667
    • dhanashree-sawant | Reporter | 26746668
Issue OwnerCurrent Issue Owner: @dylanexpensify
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

Triggered auto assignment to @dylanexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@dylanexpensify
Copy link
Contributor

Reviewing today!

@melvin-bot melvin-bot bot added the Overdue label Sep 4, 2023
@dylanexpensify
Copy link
Contributor

Reviewing today while in the air! Currently taxi'd, will get to once I can hop on wifi! Sorry I didn't get to this last week, had head down on wave4 saastr

@melvin-bot melvin-bot bot removed the Overdue label Sep 4, 2023
@dylanexpensify
Copy link
Contributor

Reviewing today while in the air! Currently taxi'd, will get to once I can hop on wifi! Sorry I didn't get to this last week, had head down on wave4 saastr

1 similar comment
@dylanexpensify
Copy link
Contributor

Reviewing today while in the air! Currently taxi'd, will get to once I can hop on wifi! Sorry I didn't get to this last week, had head down on wave4 saastr

@melvin-bot melvin-bot bot added the Overdue label Sep 11, 2023
@dylanexpensify
Copy link
Contributor

Coming back from conference last week - updating today!

@melvin-bot melvin-bot bot removed the Overdue label Sep 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

@dylanexpensify this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Sep 13, 2023
@dylanexpensify dylanexpensify added the External Added to denote the issue can be worked on by a contributor label Sep 13, 2023
@melvin-bot melvin-bot bot changed the title Web - Workspace request money message displays wrong currency before conversion [$500] Web - Workspace request money message displays wrong currency before conversion Sep 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

Job added to Upwork: https://www.upwork.com/jobs/~010daaf0b73a652083

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

Current assignee @dylanexpensify is eligible for the External assigner, not assigning anyone new.

@dylanexpensify
Copy link
Contributor

confirmed

@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @robertKozik (External)

@DylanDylann
Copy link
Contributor

DylanDylann commented Sep 14, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Workspace request money message displays wrong currency before conversion

What is the root cause of that problem?

const currency = currentCurrency || iou.currency;

If there is no currency in the param we will use currency from iou but the iou field is used for all chats

What changes do you think we should make in order to solve the problem?

We should get currency from policy and use it like this

const policy = ReportUtils.getPolicy(report.policyID)
const currency = currentCurrency || lodashGet(policy, 'outputCurrency', undefined) || iou.currency;

Result

Screen.Recording.2023-09-14.at.12.11.31.mp4

@melvin-bot melvin-bot bot added the Overdue label Sep 18, 2023
@robertKozik
Copy link
Contributor

Hi @DylanDylann!
Your solution looks well designed and addresses the issue entirely, as it's the only one here let's see it in action 🚀

🎀 👀 🎀 C+ reviewed

@melvin-bot melvin-bot bot removed the Overdue label Sep 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 18, 2023

Triggered auto assignment to @danieldoglas, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Overdue label Oct 9, 2023
@DylanDylann
Copy link
Contributor

DylanDylann commented Oct 12, 2023

@dylanexpensify Are we eligible for compensation for our effort? Contributors are already assigned and started on the PR. It's just due to the expectation changes and the solution becomes outdated.

Some other similar cases where compensation is made are below:
#18664 (comment)
#21419 (comment)

@dylanexpensify
Copy link
Contributor

@danieldoglas mind confirming here? ^ If we agree, happy to do so!

@danieldoglas
Copy link
Contributor

@dylanexpensify Yeah, I think compensation is due in this case.

@dylanexpensify
Copy link
Contributor

Do we feel fine with $250 @danieldoglas @DylanDylann

@danieldoglas
Copy link
Contributor

That works for me.

@DylanDylann
Copy link
Contributor

DylanDylann commented Oct 27, 2023

@DylanDylann @danieldoglas Contributors are already assigned to this issue and were preparing to raise PR. We spent more time investigating to give the final decision. One more thing, there are many similar cases, where the payment is 100% price even without PR
#26470 (comment)
#26309 (comment)
#28844 (comment)
#22806 (comment)

So could you help to re-evaluate If we are eligible for 100% price in this issue? Thanks

Anyway, Happy with your decision.

@DylanDylann
Copy link
Contributor

DylanDylann commented Nov 7, 2023

bump @danieldoglas @dylanexpensify Could you help to move forward this issue?

@danieldoglas
Copy link
Contributor

Reopening the issue so we don't lose track of it

@danieldoglas danieldoglas reopened this Nov 7, 2023
@melvin-bot melvin-bot bot added the Overdue label Nov 9, 2023
@DylanDylann
Copy link
Contributor

@danieldoglas @dylanexpensify Could you help to check this comment

Copy link

melvin-bot bot commented Nov 10, 2023

@danieldoglas, @dylanexpensify, @robertKozik, @DylanDylann Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

1 similar comment
Copy link

melvin-bot bot commented Nov 10, 2023

@danieldoglas, @dylanexpensify, @robertKozik, @DylanDylann Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@danieldoglas
Copy link
Contributor

bump @dylanexpensify

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 10, 2023
@dylanexpensify
Copy link
Contributor

Apologies! Looking now

@melvin-bot melvin-bot bot removed the Overdue label Nov 14, 2023
@dylanexpensify
Copy link
Contributor

ah, confirming we paid $250, and the request is for an amount of $500? Is that right @DylanDylann ?

@DylanDylann
Copy link
Contributor

DylanDylann commented Nov 14, 2023

@dylanexpensify yep it is my opinion. But happy with your final decision

@melvin-bot melvin-bot bot added the Overdue label Nov 20, 2023
Copy link

melvin-bot bot commented Nov 21, 2023

@danieldoglas, @dylanexpensify, @robertKozik, @DylanDylann 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@dylanexpensify
Copy link
Contributor

Sounds good - thanks for understanding!

@DylanDylann
Copy link
Contributor

@dylanexpensify I haven't received any payment for this issue 😄 Could you help to check again? This is my opinion
cc @danieldoglas

@dylanexpensify
Copy link
Contributor

Oh apologies! Jeez - blonde time. Payment of $250 sent, as discussed above!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

5 participants