Prevent editing expense on unreported IOU#75854
Conversation
|
@ikevin127 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!
|
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good from a product perspective 👍
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-hybrid.mp4Android: mWeb Chromeandroid-mweb.mp4iOS: HybridAppios-hybrid.moviOS: mWeb Safariios-mweb.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
✅ Completed reviewer checklist. @bernhardoj Could you please update the testing steps to match the issue / expected result ? Here's the copy-paste ready markdown: **Precondition**:
- in WS Workflows Settings turn OFF: **Submission frequency**, **Add approvals** and **Make or track payments** (for all workspaces if the account has more than 1)
- account has working selfDM
1. Press global create button > Track distance > Manual.
2. Enter any number and press `Next`.
3. Verify that the Rate field is disabled / non-interactive.
4. Press `Create expense`.
5. Verify that the newly created expense's Rate field matches the Rate from step 3.
Let me know whether you think this is within the scope, then once this and the tests concerns are addressed - I can approve. |
|
@ikevin127 we only need to turn off the Submission frequency on the default workspace. Added the rest.
This is happening on |
ikevin127
left a comment
There was a problem hiding this comment.
Thanks for the updates, everything else looks ready!
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/srikarparsi in version: 9.2.67-0 🚀
|
|
🚀 Deployed to staging by https://github.com/srikarparsi in version: 9.2.70-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.70-0 🚀
|
Explanation of Change
We prevent users from editing the distance rate if the report is unreported.
Fixed Issues
$ #75613
PROPOSAL: #75613 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Prerequisite:
Next.Create expense.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