You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] Tax code - Error shows up when attempting to save tax code without modifying it #45770
Version Number: 9.0.9-1 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
Action Performed:
Precondition:
Workspace is under Control plan
Go to staging.new.expensify.com
Go to Workspace settings > Taxes
Click on any tax
Click Tax code
Without modifying the existing tax code, save the tax code
Expected Result:
User will be able to save existing tax code when no changes are made
Actual Result:
Error shows up when attempting to save tax code without modifying it - This tax code is already in use
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 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:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
Error shows up when attempting to save tax code without modifying it
What is the root cause of that problem?
On submit, we call validateTaxCode passing current input value and policy as params. And validateTaxCode, compares current value with existing tax code keys and returns error when finding a matching key in policy.taxRates.taxes
What changes do you think we should make in order to solve the problem?
We should check if the input value is equal to the currentTaxCode tax code. Then return empty object if they are equal before returning result of validateTaxCode(policy, values);
changed the title [-]Tax code - Error shows up when attempting to save tax code without modifying it[/-][+][$250] Tax code - Error shows up when attempting to save tax code without modifying it[/+]on Jul 19, 2024
not overdue, solution has been deployed to prod. Didn't get the automation because the issue link didn't have $. I added it so hopefully we'll get it, but if not - payment due 8/9 i believe!
Activity
melvin-bot commentedon Jul 19, 2024
Triggered auto assignment to @puneetlath (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.github-actions commentedon Jul 19, 2024
👋 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:
etCoderDysto commentedon Jul 19, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Error shows up when attempting to save tax code without modifying it
What is the root cause of that problem?
On submit, we call
validateTaxCodepassing current input value and policy as params. AndvalidateTaxCode, compares current value with existing tax code keys and returns error when finding a matching key inpolicy.taxRates.taxesApp/src/pages/workspace/taxes/WorkspaceTaxCodePage.tsx
Lines 50 to 55 in b8b99d0
What changes do you think we should make in order to solve the problem?
We should check if the input value is equal to the
currentTaxCodetax code. Then return empty object if they are equal before returning result ofvalidateTaxCode(policy, values);What alternative solutions did you explore? (Optional)
trjExpensify commentedon Jul 19, 2024
@dangrous @Gonals @rushatgabhane @dylanexpensify - heads up!
melvin-bot commentedon Jul 19, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0100ee19e52f8bb5b6
[-]Tax code - Error shows up when attempting to save tax code without modifying it[/-][+][$250] Tax code - Error shows up when attempting to save tax code without modifying it[/+]17 remaining items
rushatgabhane commentedon Jul 22, 2024
@dangrous fixing it in PR - #45866 because it was a one liner
dangrous commentedon Jul 23, 2024
oh okay great! ping me as a reviewer when it's ready if you could - thanks!
melvin-bot commentedon Aug 2, 2024
@dangrous, @mollfpr, @rushatgabhane Whoops! This issue is 2 days overdue. Let's get this updated quick!
dangrous commentedon Aug 2, 2024
not overdue, solution has been deployed to prod. Didn't get the automation because the issue link didn't have
$. I added it so hopefully we'll get it, but if not - payment due 8/9 i believe!dangrous commentedon Aug 12, 2024
This one is all set in terms of timeline. Are we treating this as a regression, @rushatgabhane / @mollfpr ? Or do we need to grab a BZ for payment?
rushatgabhane commentedon Aug 12, 2024
this would be a regression @dangrous
dangrous commentedon Aug 12, 2024
okay cool i will go ahead and close then, if you need anything else let me know!