-
Notifications
You must be signed in to change notification settings - Fork 3k
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 2025-01-13] Distance - Inconsistency in Tax field when both distance rate and category have different tax #54513
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Triggered auto assignment to @youssef-lr ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
hum... maybe related to - #53789? Asking |
Neil and the contributor of #53789 don't think it's related... I'll keep digging to see if I can find the culprit.. |
Edited by proposal-police: This proposal was edited at 2024-12-25 08:13:40 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.In Step 12, after selecting category with own tax rate, the Tax field changes to the rate from the selected category, while the tax amount remains unchanged. What is the root cause of that problem?Here, we always update tax code and tax amount when we change the category without checking the correct tax is the distance rate tax or not. Line 601 in 12e0941
What changes do you think we should make in order to solve the problem?Since the distance rate tax should be prioritized, we should update
Line 601 in 12e0941
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?Add a test case for What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@bernhardoj could this be coming from your PR? |
I reverted the PR locally and I can't reproduce. Please take look when you're online @bernhardoj |
@MonilBhavsar can you help clarify the expected behavior here? Should we ignore the tax rules for a category if there is a distance rate tax? |
I assume we want to ignore it since we don't allow the user to manually change the tax rate when it's a distance request. The PR is here: #54579 |
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. |
The PR fixes this issue mostly in the front-end, but we still need a back-end PR to fully solve this issue, so I'm adding the Web blocker label. |
Confirmed from oldDot, we don't need to update category when updating tax Screen.Recording.2024-12-26.at.1.38.48.PM.mov |
Self assigning and working on a backend PR |
Removing the Deploy blocker label as it is not really a Web blocker. The logic lies in Auth |
Sent backend PR https://github.com/Expensify/Auth/pull/13644 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.80-6 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 2025-01-13. 🎊 |
@youssef-lr / @MonilBhavsar @Christinadobrzyn @youssef-lr / @MonilBhavsar The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
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.78-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Windows 11
App Component: Money Requests
Action Performed:
Precondition:
4 Click Default tax rate.
Expected Result:
When submitting distance expense with distance rate that has tax rate and category with its own tax rate, the tax field should follow the tax rate from distance rate.
Actual Result:
In Step 12, after selecting category with own tax rate, the Tax field changes to the rate from the selected category, while the tax amount remains unchanged.
In Step 15, after submitting the distance expense, the Tax field changes back to the tax rate that follows distance rate.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6701707_1735032557064.bandicam_2024-12-24_17-18-24-974.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @ChristinadobrzynThe text was updated successfully, but these errors were encountered: