Skip to content

[$250] Track distance- Distance and rate fields are incorrect when submitting expense in offline mode #57730

@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.1.8-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
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+069485rw@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Money Requests

Action Performed:

Precondition:

  • Account has self DM.
  • There is at least one workspace.
  • Workspace distance rate unit (miles) is different from personal distance rate unit (kilometers).
  1. Go to staging.new.expensify.com
  2. Go to self DM.
  3. Track a distance expense in self DM.
  4. Go offline.
  5. Click Submit it to someone.
  6. Select a workspace.
  7. On confirmation page, click Rate and select a distance rate from the workspace.
  8. Note that the distance field does not update to the correct value except the distance unit has changed.
  9. Submit the expense to the workspace chat.
  10. Go to transaction thread.
  11. Note that Rate field does not show the rate that is selected in Step 7.

Expected Result:

In Step 8, the distance field will show pending if the unit conversion cannot be done in offline mode.
In Step 11, Rate field should show the same rate that is selected on the confirmation page in Step 7.

Actual Result:

In Step 8, the distance field shows the same value with updated unit.
In Step 11, Rate field does not show the same rate that is selected on the confirmation page in Step 7.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6760595_1741066500182.20250304_132702.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021897027679526781763
  • Upwork Job ID: 1897027679526781763
  • Last Price Increase: 2025-03-04
  • Automatic offers:
    • nkdengineer | Contributor | 106427453
Issue OwnerCurrent Issue Owner: @sobitneupane

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

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions