Skip to content

[HOLD for payment 2025-01-13] Distance - Inconsistency in Tax field when both distance rate and category have different tax #54513

@IuliiaHerets

Description

@IuliiaHerets

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: 9.0.78-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): applausetester+kh03120001@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: Windows 11
App Component: Money Requests

Action Performed:

Precondition:

  • Rules, Distance rates, and Taxes are enabled.
  • There are two non-zero tax rates - Tax rate A and Tax rate B.
  • Track tax is enabled.
  • Distance rate is assigned with tax rate A.
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Categories.
  3. Click Advertising category.
    4 Click Default tax rate.
  4. Select Tax rate B.
  5. Go to workspace chat.
  6. Click + > Submit expense > Distance.
  7. Enter waypoints > Next.
  8. On confirmation page, note that the distance tax rate is Tax rate A (follows distance rate track tax).
  9. Click Category.
  10. Select Advertising category from Step 3.
  11. Note that the distance tax rate is Tax rate B (follows the category).
  12. Submit the expense.
  13. Go to transaction thread.
  14. Note that the distance tax rate is back to Tax rate A.

Expected Result:

When submitting distance expense with distance rate that has tax rate and category with its own tax rate, the tax field should follow the tax rate from distance rate.

Actual Result:

In Step 12, after selecting category with own tax rate, the Tax field changes to the rate from the selected category, while the tax amount remains unchanged.
In Step 15, after submitting the distance expense, the Tax field changes back to the tax rate that follows distance rate.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6701707_1735032557064.bandicam_2024-12-24_17-18-24-974.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @Christinadobrzyn

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2Engineering

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions