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
[HOLD #305057] [Track Tax] Tax rate/amount page is still accessible when it is disabled #37414
@stephanieelliott 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.
📣 @apeyada! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
changed the title [-]Tax - Tax rate/amount page is still accessible when it is disabled[/-][+][HOLD #305057] Tax - Tax rate/amount page is still accessible when it is disabled[/+]on Mar 4, 2024
changed the title [-][HOLD #305057] Tax - Tax rate/amount page is still accessible when it is disabled[/-][+][HOLD #305057] [Track Tax] Tax rate/amount page is still accessible when it is disabled[/+]on Apr 4, 2024
Activity
melvin-bot commentedon Feb 28, 2024
Triggered auto assignment to @stephanieelliott (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.izarutskaya commentedon Feb 28, 2024
@stephanieelliott 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.
izarutskaya commentedon Feb 28, 2024
We think that this bug might be related to #wave6-collect-submitters
CC @greg-schroeder
apeyada commentedon Feb 28, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Tax - Tax rate/amount page is still accessible when it is disabled
What is the root cause of that problem?
There's no logic to show not found page on
IOURequestStepTaxRatePage,IOURequestStepTaxAmountPagewhenisTaxTrackingEnabled= falseWhat changes do you think we should make in order to solve the problem?
wrap with
FullPageNotFoundViewon those components withshouldShowprop (using similar condition as below line)App/src/components/MoneyTemporaryForRefactorRequestConfirmationList.js
Lines 273 to 274 in bee752a
What alternative solutions did you explore? (Optional)
If that condition isn't met, early return
<NotFoundPage />melvin-bot commentedon Feb 28, 2024
📣 @apeyada! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Format:
melvin-bot commentedon Feb 28, 2024
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
ShridharGoel commentedon Feb 28, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Tax page is still accessible after tax tracking is disabled.
What is the root cause of that problem?
IOURequestStepTaxRatePagedoesn't have any check which can ensure that it changes based on the latest tax enabled/disabled info.What changes do you think we should make in order to solve the problem?
Use
isTaxTrackingEnabledinfo and navigate back if the tax tracking switches to false state.neonbhai commentedon Feb 28, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Tax rate/amount page is still accessible when it is disabled
What is the root cause of that problem?
We don't have logic to show notFound page when TaxTracking is disabled
What changes do you think we should make in order to solve the problem?
We shoud pass
policy.isTaxTrackingEnabledtoshouldShowNotFoundPageprop forScreenWrapperhere:App/src/pages/iou/request/step/IOURequestStepTaxRatePage.js
Lines 75 to 79 in fe6d902
and here:
App/src/pages/iou/request/step/IOURequestStepTaxAmountPage.js
Lines 158 to 162 in fe6d902
MonilBhavsar commentedon Feb 28, 2024
Feature is WIP, so we can put this HOLD until we finish the implementation as it is being rolled out in phases https://github.com/Expensify/Expensify/issues/305057
[-]Tax - Tax rate/amount page is still accessible when it is disabled[/-][+][HOLD #305057] Tax - Tax rate/amount page is still accessible when it is disabled[/+]ShridharGoel commentedon Mar 29, 2024
@MonilBhavsar Should we look at this now?
[-][HOLD #305057] Tax - Tax rate/amount page is still accessible when it is disabled[/-][+][HOLD #305057] [Track Tax] Tax rate/amount page is still accessible when it is disabled[/+]stephanieelliott commentedon Apr 4, 2024
This is not reproducible anymore -- when tax is disabled from the workspace, the field disappears from the in-progress request.