Skip to content

[$250] Distance rate - Distance rate unit on confirm page when submit track distance does not match actual settings #67924

Description

@vincdargento

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.1.89-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: https://test-management.browserstack.com/projects/2219752/test-runs/TR-79/folder/13176877/41237355/822776701?sort=%2Bidentifier
Email or phone of affected tester (no customers): njojisoidjsosi@gmail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.5 / Chrome
App Component: Money Requests

Action Performed:

Precondition:

  • Account has a self DM.
  1. Go to staging.new.expensify.com
  2. Go to self DM.
  3. Track a distance expense.
  4. Open transaction thread.
  5. Remember the distance rate unit used in the track distance expense.
  6. Create a workspace
  7. Go to workspace settings > More features.
  8. Enable Distance rates.
  9. Go to Distance rates.
  10. Click Settings.
  11. Make sure the distance rate unit is different from the distance rate unit in the track distance expense. If the rate is the same, change Kilometers to Miles or change Miles to Kilometers. For example. rate unit in track expense is Kilometers, so change the workspace distance rate unit to Miles.
  12. Go back to self DM.
  13. Click Submit it to someone.
  14. Select the workspace.
  15. On confirm page, note that the distance rate is 0.7 / kilometer, when the workspace distance rate unit is actually Miles.
  16. Click Create expense.
  17. Go to transaction thread.
  18. Note that the distance rate unit is 0.7 / mile which matches the workspace distance rate unit.

Expected Result:

In Step 15, the workspace distance rate on confirm page should match the distance rate settings. It should display 0.7 / mile because workspace distance rate unit is Miles.

Actual Result:

In Step 15, the workspace distance rate on confirm page does not match the distance rate settings. It displays 0.7 / kilometer when workspace distance rate unit is Miles.

In Step 18, after submitting the track expense to the workspace, the distance rate unit changes to 0.7 / mile which matches the workspace distance rate unit.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

bug.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021952760509565149561
  • Upwork Job ID: 1952760509565149561
  • Last Price Increase: 2025-08-26
  • Automatic offers:
    • FitseTLT | Contributor | 108880839
Issue OwnerCurrent Issue Owner: @alitoshmatov

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorMonthlyKSv2ReviewingHas a PR in review

Type

No type

Fields

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