[CP Staging] Revert "Fix updates of distance and distance units when changing expense recipients"#82023
Conversation
|
@puneetlath 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] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 703de120ef
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| const customUnitRateID = getRateID(transaction); | ||
| const unit = DistanceRequestUtils.getRate({transaction, policy: shouldUseDefaultExpensePolicy ? defaultExpensePolicy : policy}).unit; | ||
| const distance = typeof transaction?.comment?.customUnit?.quantity === 'number' ? roundToTwoDecimalPlaces(transaction.comment.customUnit.quantity) : undefined; |
There was a problem hiding this comment.
Read manual distance from split draft when editing split expense
In IOURequestStepDistanceManual, split-edit mode builds currentTransaction from splitDraftTransaction, but these lines still read customUnitRateID, unit, and distance from transaction. When a user edits a split expense distance, navigates back, and reopens this step, the input is repopulated from the original transaction instead of the draft, so the UI shows stale data and a subsequent save can overwrite the already-updated split draft value.
Useful? React with 👍 / 👎.
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…/distance-conversion-different-distance-unit [CP Staging] Revert "Fix updates of distance and distance units when changing expense recipients" (cherry picked from commit 48538a5) (cherry-picked to staging by AndrewGable)
…879284777-1 🍒 Cherry pick PR #82023 to staging 🍒
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 9.3.16-7 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.16-9 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 9.3.17-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.17-9 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 9.3.19-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.19-5 🚀
|
Reverts #81017
$ #82009
$ #82004
PR 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
MacOS: Desktop