-
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
Expense - Report action shows "changed tax rate to x(previously x)" when there is no rate change #54560
Comments
Triggered auto assignment to @anmurali ( |
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:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Report action shows "changed tax rate to x(previously x)" when there is no rate change What is the root cause of that problem?When update Lines 3730 to 3736 in 12e0941
However, this function does not compare transactionChanges with oldTransaction , which causes the system message to display incorrect text:
Lines 3778 to 3779 in 12e0941
What changes do you think we should make in order to solve the problem?We need to compare the const didTaxCodeChange = 'taxCode' in transactionChanges && oldTransaction?.taxCode !== transactionChanges.taxCode; and similar for const didTaxAmountChange = 'taxAmount' in transactionChanges && transactionChanges?.taxAmount !== TransactionUtils.getTaxAmount(oldTransaction, isFromExpenseReport) POCScreen.Recording.2024-12-25.at.9.09.20.PM.mp4What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can write automated tests for What alternative solutions did you explore? (Optional)We can modify the App/src/libs/ModifiedExpenseMessage.ts Lines 67 to 70 in 918488a
|
@linhvovan29546 can you point the offending PR here ? |
@allgandalf The logic originates from PR #42128. And in the PR Apply tax rule when selecting category, we added |
Dupe of #54559 |
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-2
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
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: Mac 15.0 / Chrome
App Component: Money Requests
Action Performed:
Precondition:
4 Click Default tax rate.
Expected Result:
There should be no system message for tax rate change since the before and after tax rate is still the same (tax rate B) after selecting a category.
Actual Result:
There is system message for tax rate change when there is no changes to the tax rate.
It shows "changed the tax rate to 5% (previously 5%)".
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6701998_1735113525757.20241225_154605.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: