-
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
[Awaiting Payment] [$250] Distance - Tax amount shows value A then changes to value B after changing distance rate #50641
Comments
Triggered auto assignment to @garrettmknight ( |
@garrettmknight FYI 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 that this bug might be related to #wave-collect - Release 1 |
Job added to Upwork: https://www.upwork.com/jobs/~021844824122118463977 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
@neil-marcellini Can you please confirm it's bug or not since you worked on distance request? Thanks! |
@garrettmknight, @ntdiary Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Tax amount shows value A then changes to value B after changing distance rate What is the root cause of that problem?We are using the long (
So it is falling back to mile, when converting to meter, as this condition here will be false even if the unit is kmApp/src/libs/DistanceRequestUtils.ts Line 258 in 8ff185a
hence we are setting the tax amount to wrong value optimistically which changes when the BE sets the correct value. 👍 What changes do you think we should make in order to solve the problem?We should separately define the unitToDisplay here
Then use it here
What alternative solutions did you explore? (Optional) |
The tax amount should change based the rate change, but it looks like it's calculating it incorrectly, then correcting, instead of calculating the correct rate immediately. |
Triggered auto assignment to @mjasikowski, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@FitseTLT's proposal looks good indeed, let's go with the PR! |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Hi, @garrettmknight, curious, is there any compensation for C+ in this case? 😂 |
Yes I think the rule in this case 100% for the contributor and 50% for C+ for reviewing the proposal
@garrettmknight read #47712 (comment) for context |
@garrettmknight, yeah, I reviewed the PR locally and then tried resolving the conflicts myself to record test videos. Usually, resolving conflicts is easy and doesn’t affect test, but here I found that it had already been fixed by another PR, so just left a reminder comment. 😂 |
Sounds good, updated the payment summary. |
Please request when you're ready. |
Thx, have requested. 😄 |
$250 approved for @ntdiary |
@garrettmknight @mjasikowski @ntdiary @FitseTLT 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! |
It looks like all the payments have been completed, so we can close this issue? :) |
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: 9.0.48-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: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
Tax amount will be consistent after changing distance rate
Actual Result:
Tax amount shows value A then changes to value B after changing distance rate
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6631708_1728640172607.20241011_174609.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ntdiaryThe text was updated successfully, but these errors were encountered: