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

[HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [Track Tax] Distance tax - Tax amount is zero when distance rate with non-zero tax rate is selected #42802

Closed
6 tasks done
lanitochka17 opened this issue May 29, 2024 · 27 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

lanitochka17 commented May 29, 2024

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: 1.4.77-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Issue found when executing PR #42342

Action Performed:

Precondition:

  • Track Tax distance is enabled on Old Dot.
  • Workspace has a few distance rates and tax rates.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat
  3. Open submit distance expense flow
  4. Proceed to distance expense confirmation page
  5. Click Distance rate
  6. Select a distance rate that has non-zero tax rate
  7. Note that tax amount is updated after selecting a distance rate
  8. Submit the expense
  9. Go to transaction thread

Expected Result:

The tax amount in the transaction thread will follow the amount based on the distance rate, which is the same amount on confirmation page

Actual Result:

The tax amount in the transaction thread changes to 0.00 after the expense is created

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

Add any screenshot/video evidence

Bug6495196_1716993750281.20240529_223703.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @trjExpensify
Issue OwnerCurrent Issue Owner: @trjExpensify
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels May 29, 2024
Copy link

melvin-bot bot commented May 29, 2024

Triggered auto assignment to @chiragsalian (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@lanitochka17
Copy link
Author

@chiragsalian 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

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@MonilBhavsar
Copy link
Contributor

Looking...

@MonilBhavsar
Copy link
Contributor

I'm not able to reproduce this issue. @lanitochka17 could you please help to retest

@kbecciv
Copy link

kbecciv commented May 30, 2024

Issue is reproducible, please try to wait until Distance is no longer pending.

bandicam.2024-05-30.23-32-31-593.mp4

@luacmartins
Copy link
Contributor

It seems like the API response is updating the amount to 0. Is this a Web deploy blocker?

@MonilBhavsar
Copy link
Contributor

MonilBhavsar commented May 30, 2024

I also have same suspicion. Unfortuanately my requests are getting timed out, so I haven't been able to confirm https://www.expensify.com/_devportal/tools/logSearch/#sort=asc&size=10000&query=request_id%3A%2288bfe11aba9489fc-BOM%22%20AND%20timestamp%3A%5B2024-05-30T00%3A00%20TO%202024-05-31T23%3A59%5D

But there is no new code deployed to staging related to this flow, so it's not a Web-E blocker

@MonilBhavsar MonilBhavsar removed the DeployBlocker Indicates it should block deploying the API label May 30, 2024
@MonilBhavsar
Copy link
Contributor

Finally succeeded.

I am still not able to reproduce, I waited till the distance was populated

Recording https://drive.google.com/file/d/1j8ZTxJzLTdoguUEzflSZPBagw4FYBZxw/view?usp=sharing

Anyways, this should not block deploy and can be treated as a bug, if reproducible. I'll assign myself and look

@MonilBhavsar MonilBhavsar self-assigned this May 30, 2024
@MonilBhavsar MonilBhavsar added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels May 30, 2024
@MonilBhavsar
Copy link
Contributor

Retried again and still no dice

@MonilBhavsar
Copy link
Contributor

Tom is helping to check if it's a real bug

@trjExpensify
Copy link
Contributor

  1. I have selected the Standard tax rate for distance expenses:
image
  1. The default tax rate for expenses in the workspace currency is the EC rate here:
image
  1. The distance expense is using the workspace default rate and not the tax rate set for distance expenses:
image

So I think the bug is that we're using the workspace default tax rate and not the tax rate set for the distance rate. 👍

@melvin-bot melvin-bot bot added the Overdue label Jun 3, 2024
@MonilBhavsar
Copy link
Contributor

Will start working tomorrow

@melvin-bot melvin-bot bot removed the Overdue label Jun 3, 2024
@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Jun 5, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jun 5, 2024
@MonilBhavsar
Copy link
Contributor

PR is in review

@MonilBhavsar
Copy link
Contributor

assigning @hungvu193 for helping with PR review

@trjExpensify trjExpensify changed the title Distance tax - Tax amount is zero when distance rate with non-zero tax rate is selected [Track Tax] Distance tax - Tax amount is zero when distance rate with non-zero tax rate is selected Jun 6, 2024
Copy link

melvin-bot bot commented Jun 6, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 11, 2024
@melvin-bot melvin-bot bot changed the title [Track Tax] Distance tax - Tax amount is zero when distance rate with non-zero tax rate is selected [HOLD for payment 2024-06-18] [Track Tax] Distance tax - Tax amount is zero when distance rate with non-zero tax rate is selected Jun 11, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 11, 2024
Copy link

melvin-bot bot commented Jun 11, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jun 11, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.81-11 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-06-18. 🎊

For reference, here are some details about the assignees on this issue:

  • @hungvu193 requires payment (Needs manual offer from BZ)

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jun 13, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-06-18] [Track Tax] Distance tax - Tax amount is zero when distance rate with non-zero tax rate is selected [HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [Track Tax] Distance tax - Tax amount is zero when distance rate with non-zero tax rate is selected Jun 13, 2024
Copy link

melvin-bot bot commented Jun 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 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-06-20. 🎊

For reference, here are some details about the assignees on this issue:

  • @hungvu193 requires payment (Needs manual offer from BZ)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 18, 2024
@trjExpensify
Copy link
Contributor

👋 can we confirm on this deploy blocker being a regression for this issue? #42802 (comment)

@hungvu193
Copy link
Contributor

No. I think @MonilBhavsar already commented on the DB here:

#43171 (comment)

That DB was caused by another PR.

@MonilBhavsar
Copy link
Contributor

Yes, it was not a regression from this PR

Copy link

melvin-bot bot commented Jun 20, 2024

Payment Summary

Upwork Job

  • ROLE: @hungvu193 paid $(AMOUNT) via Upwork (LINK)

BugZero Checklist (@trjExpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@trjExpensify
Copy link
Contributor

Great! Payment summary as follows:

Offer sent!

@hungvu193
Copy link
Contributor

Great! Payment summary as follows:

Offer sent!

Thanks Tom. I've just accepted!

@trjExpensify
Copy link
Contributor

Paid, closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering
Projects
Archived in project
Development

No branches or pull requests

7 participants