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
[payment due 8-27][Track Tax] Support tax tracking when categorizing tracked expense #42114
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in review
Version Number: 1.4.73-0 Reproducible in staging?: y Reproducible in production?: no If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause internal team Slack conversation:
Action Performed:
Precondition:
Workspace has enabled taxes.
Go to staging.new.expensify.com
Go to FAB > Track expense.
Track a manual expense.
In 1:1 DM, click Categorize from the whisper.
Select a category.
On confirmation page, click Show more.
Expected Result:
Tax rate will be populated in the Tax rate row.
Actual Result:
Tax rate row is empty.
After the expense is submitted, the Tax rate row in transaction thread shows the selected tax rate.
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 Staging deploy checklist to see the list of PRs included in this release, then work quickly on the following:
If you find which PR caused the issue/bug, you can reassign it to the person responsible for it.
If the author is OOO or won’t get online before the daily deploy is due, you are responsible for finding the best fix/path forward. Don’t hesitate to ask for help!
Try to reproduce the issue, if the bug is on production, remove the DeployBlocker label but stay assigned to fix it (or find out which PR broke it to get help from the author).
You can adjust the urgency of the issue to better represent the gravity of the bug.
If the issue is super low priority, feel free to un-assign yourself.
Be careful with PHP warnings, sometimes it is more complex than just adding a null coalescing operator as they might be uncovering some bigger bug.
If it was a one-off issue that requires no action (for example, Bedrock was down or it is a duplicated issue), you can close it.
Remember rule #2: Never un-assign yourself from a real DeployBlocker unless you are 100% sure someone else is assigned and will take care of it.
👋 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.
changed the title [-][Track Tax] Support tax tracking when categorizing tracked expense[/-][+][payment due 8-27][Track Tax] Support tax tracking when categorizing tracked expense[/+]on Aug 27, 2024
Thanks @Christinadobrzyn ! I'm back from OOO and can take this back, feel free to keep on or unassign yourself
@eh2077 I've approved the payment ✔️
Please complete the checklist once you get a chance :D
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@eh2077] The PR that introduced the bug has been identified. Link to the PR:
[@eh2077] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@eh2077] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@eh2077] Determine if we should create a regression test for this bug.
[@eh2077] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@sonialiap] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
[@eh2077] The PR that introduced the bug has been identified. Link to the PR: I can't a PR directly caused this issue. The task ended up a larger scope than the original issue.
[@eh2077] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: N/A
[@eh2077] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
[@eh2077] Determine if we should create a regression test for this bug. Yes
Regression test
==== Prepare ====
Create a workspace
Set the workspace default currency to USD if it is not already that
Go to "More features" and enable "Distance rates" and "Taxes"
Go to "Taxes" and define 3 tax rates:
Tax USD40: 40%
Tax other currency10: 10%
Tax distance25: 25%
Still in "Taxes", click in "Settings" in the top and choose the following defaults:
Verify you end up with a configuration like this:
Go "Distance rates" and enable "Track tax" in the top right settings
Create a distance rate, assign a tax rate to it and input some amount smaller than the rate in "Tax reclaimable on":
==== case 1 ====
In the DM chat with yourself, click "+ > Track expense" and create an expense with the same currency as the workspace currency
Wait for the concierge message with actions and click "Categorize it"
The RHN should open with the workspace as the only alternative, select the workspace
Choose any category from the list
In the expense form, click "Show more"
Verify that the tax code is set to the default tax code for expenses with the currency of the workspace
Verify that the tax amount looks correct
Change the tax code manually
Verify that the tax amount is updated
==== case 2 ====
Dismiss the RHN clicking outside
In the DM chat with yourself, click "+ > Track expense" and create an expense with a different currency
Wait for the concierge message with actions and click "Categorize it"
The RHN should open with the workspace as the only alternative, select the workspace
Choose any category from the list
In the expense form, click "Show more"
Verify that the tax code is set to the default tax code for expenses with a different currency of the workspace
==== case 3 ====
Dismiss the RHN clicking outside
In the DM chat with yourself, click "+ > Track expense" and create a distance request
Wait for the concierge message with actions and click "Categorize it"
The RHN should open with the workspace as the only alternative, select the workspace
Choose any category from the list
Verify that the tax code is set to the default tax code for the distance rate selected
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in review
Activity
melvin-bot commentedon May 13, 2024
Triggered auto assignment to @aldo-expensify (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon May 13, 2024
Triggered auto assignment to @sonialiap (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.melvin-bot commentedon May 13, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open Staging deploy checklist to see the list of PRs included in this release, then work quickly on the following:
Remember rule #2: Never un-assign yourself from a real DeployBlocker unless you are 100% sure someone else is assigned and will take care of it.
github-actions commentedon May 13, 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:
84 remaining items
Christinadobrzyn commentedon Aug 20, 2024
looks like the PR is in staging so getting close
[-][Track Tax] Support tax tracking when categorizing tracked expense[/-][+][payment due 8-27][Track Tax] Support tax tracking when categorizing tracked expense[/+]Christinadobrzyn commentedon Aug 27, 2024
The payment summary didn't trigger, I think this is due for payment today.
Payouts due:
@eh2077 are you paid via Upwork or NewDot? Do we need a regression test for this?
Christinadobrzyn commentedon Aug 28, 2024
nuged @eh2077 can you confirm - #42114 (comment)
eh2077 commentedon Aug 29, 2024
@Christinadobrzyn Thanks for the ping. I'd like to pay via upwork. Yes, I think we need to add regression test for this issue.
eh2077 commentedon Aug 29, 2024
I'm away from keyboard and I'll complete the checklist asap, thanks 🙏
Christinadobrzyn commentedon Aug 30, 2024
Thanks @eh2077 I just send you an Upwork offer too.
sonialiap commentedon Sep 2, 2024
Thanks @Christinadobrzyn ! I'm back from OOO and can take this back, feel free to keep on or unassign yourself
@eh2077 I've approved the payment ✔️
Please complete the checklist once you get a chance :D
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
eh2077 commentedon Sep 2, 2024
Checklist
Regression test
==== Prepare ====
==== case 1 ====
==== case 2 ====
==== case 3 ====