[CP Staging] Run distance update for GPS transactions only - #80604
Conversation
|
@ShridharGoel Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 @lakchote has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…x-update-gps-distance-for-gps-expenses-only [CP Staging] Run distance update for GPS transactions only (cherry picked from commit 68eaf86) (cherry-picked to staging by roryabraham)
|
🚀 Cherry-picked to staging by https://github.com/roryabraham in version: 9.3.9-2 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.9-2 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/roryabraham in version: 9.3.10-0 🚀
|
|
This PR is failing because of issue ##80661 The issue is reproducible in: IOS |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.10-6 🚀
|


Explanation of Change
The logic responsible for distance conversion while recipients change (default distance unit) for GPS transactions was added in #79914 but not constrained to only run for GPS transactions. Fixing it here
Fixed Issues
$ #80577
PROPOSAL: N/A
Tests
Prerequisite: Account has at least one workspace.
Prerequisite 2: Distance expense previously created so waypoints can be available while offline.
Offline tests
QA Steps
Same as tests
Regressions: Verify that creating other expenses in online and offline mode does has the correct "Distance" and "Amount" fields values/labels
Run tests from #79914:
Creating expense from FAB (create at least two works workspaces first with
More features>Distance ratesenabled and with rates with different currencies and distance units):NextCreateSelfDM:
NextCreateExisting report:
+at the bottom >Track distance>GPStab)Split expense:
More>SplitSkip confirmation:
Next.Creating expense from FAB without a valid default expense policy (billable actions restricted or is not a paid group policy) with user's Payment currency set to other than GBP or USD (so that the default mileage rate does not use miles as distance unit) in Preferences:
NextChoose recipientscreen, select yourself (selfDM)Create expensePR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-01-27.at.10.49.33.mov