-
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 2024-09-09][$250] Track tax - Track tax feature is still available when Taxes feature is disabled offline #47421
Comments
Triggered auto assignment to @lschurr ( |
@lschurr 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 |
We think that this bug might be related to #wave-collect - Release 2 |
Edited by proposal-police: This proposal was edited at 2024-08-14 13:28:19 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Track tax feature is still available when Taxes feature is disabled offline What is the root cause of that problem?We are using
When user disable tax rate in offline mode, we are not optimistialy updating What changes do you think we should make in order to solve the problem?We should check also for <Switch
isOn={isDistanceTrackTaxEnabled && isPolicyTrackTaxEnabled} We will do the same for tax rates, and tax reclaimable as well What alternative solutions did you explore? (Optional)We can optimistially update Some more details about creating optimistic customUnits data const policy = getPolicy(policyID);
const shouldAddDefaultTaxRatesData = (!policy?.taxRates || isEmptyObject(policy.taxRates)) && enabled;
const customUnits = policy?.customUnits ?? {};
const customUnit = customUnits[Object.keys(customUnits)[0]];
const customUnitID = customUnit?.customUnitID ?? ''; {
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.POLICY}${policyID}`,
value: {
customUnits: {
[customUnitID]: {
...customUnit,
attributes: {
...customUnit.attributes,
taxEnabled: customUnit.attributes.taxEnabled ? enabled : customUnit.attributes.taxEnabled,
},
},
},
tax: {
trackingEnabled: enabled, We check for |
Job added to Upwork: https://www.upwork.com/jobs/~0125dfa57845b9c94e |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
As taxes must be enabled on the policy in order to enable tax tracking on distance rates @etCoderDysto's proposal LGTM. |
Triggered auto assignment to @mountiny, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@mountiny - looks like we just need a quick check from you. Can I assign this over to @etCoderDysto? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Assigned, thanks for your patience |
📣 @etCoderDysto 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Due for payment tomorrow @lschurr, Thanks! |
Payment summary:
|
Requested on ND. |
$250 approved for @Ollyws |
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.20-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
When disabling Taxes feature offline
Step 9 - Track tax switch should be disabled and locked
Step 11 - Tax rate and Tax reclaimable on fields should disappear
Actual Result:
When disabling Taxes feature offline
Step 9 - Track tax switch is enabled and locked
Step 11 - Tax rate and Tax reclaimable on fields are still present
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6571862_1723628522366.20240814_173557.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @OllywsThe text was updated successfully, but these errors were encountered: