Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.34k stars 2.77k forks source link

[payment due 8-27][Track Tax] Support tax tracking when categorizing tracked expense #42114

Closed m-natarajan closed 2 weeks ago

m-natarajan commented 4 months ago

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


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:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Track expense.
  3. Track a manual expense.
  4. In 1:1 DM, click Categorize from the whisper.
  5. Select a category.
  6. 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?

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/Expensify/App/assets/38435837/576e9914-ae3d-4f59-a932-b416f9e8e1c1

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0163666547be770dfa
  • Upwork Job ID: 1793250352331440128
  • Last Price Increase: 2024-05-22
eh2077 commented 3 weeks ago

@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 commented 3 weeks ago

I'm away from keyboard and I'll complete the checklist asap, thanks 🙏

Christinadobrzyn commented 3 weeks ago

Thanks @eh2077 I just send you an Upwork offer too.

sonialiap commented 2 weeks ago

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 commented 2 weeks ago

Checklist

Regression test

==== Prepare ====

  1. Create a workspace

  2. Set the workspace default currency to USD if it is not already that

  3. Go to "More features" and enable "Distance rates" and "Taxes"

  4. Go to "Taxes" and define 3 tax rates:

    • Tax USD40: 40%
    • Tax other currency10: 10%
    • Tax distance25: 25%
  5. Still in "Taxes", click in "Settings" in the top and choose the following defaults:

  6. Verify you end up with a configuration like this:

  7. Go "Distance rates" and enable "Track tax" in the top right settings

  8. Create a distance rate, assign a tax rate to it and input some amount smaller than the rate in "Tax reclaimable on":

==== case 1 ==== 9. In the DM chat with yourself, click "+ > Track expense" and create an expense with the same currency as the workspace currency 10. Wait for the concierge message with actions and click "Categorize it" 11. The RHN should open with the workspace as the only alternative, select the workspace 12. Choose any category from the list 13. In the expense form, click "Show more" 14. Verify that the tax code is set to the default tax code for expenses with the currency of the workspace 15. Verify that the tax amount looks correct 16. Change the tax code manually 17. Verify that the tax amount is updated ==== case 2 ==== 18. Dismiss the RHN clicking outside 19. In the DM chat with yourself, click "+ > Track expense" and create an expense with a different currency 20. Wait for the concierge message with actions and click "Categorize it" 21. The RHN should open with the workspace as the only alternative, select the workspace 22. Choose any category from the list 23. In the expense form, click "Show more" 24. Verify that the tax code is set to the default tax code for expenses with a different currency of the workspace ==== case 3 ==== 25. Dismiss the RHN clicking outside 26. In the DM chat with yourself, click "+ > Track expense" and create a distance request 27. Wait for the concierge message with actions and click "Categorize it" 28. The RHN should open with the workspace as the only alternative, select the workspace 29. Choose any category from the list 30. Verify that the tax code is set to the default tax code for the distance rate selected