Do not make changes to IOU locally if currencies differ#12960
Conversation
|
@eVoloshchak @PauloGasparSv One of you needs to 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] |
|
lmao almost requested @vitHoracek for review 😆 |
|
@youssef-lr code changes look good, but let's get some screen recordings for all platforms :D Can help if you need |
|
@youssef-lr were we also going to add the change where we show the |
|
I think we're waiting for the new design and copy, I think for now this will fix the flickering issue, we can create a separate issue to handle how we show calculating state. cc @vitHoracek @JmillsExpensify what do you guys think? |
Reviewer ChecklistUpdating this checklist to make sure the check will pass, my checklist is below.
Screenshots/VideosWebWeb.movMobile Web - ChromeMobile Web - SafariiOS.Mobile.movDesktopDesktop.moviOSHad trouble with this test, couldn't fully test the offline feature and everything is buggy and flashing. I think it's a problem with my Simulator so I'll try again in a bit. Android |
|
@youssef-lr between steps 4 and 5 of the offline tests should there be an extra step saying to go back online? |
|
@PauloGasparSv you're right, updated! Thanks. |
|
Had some trouble with my VM while testing for Android and iOS, receiving a bunch of @mountiny @eVoloshchak feel free to merge if this gets approved, I think I'll be stuck for a while. |
mountiny
left a comment
There was a problem hiding this comment.
Code looks good to me, but havent got around to test this right now, I will try tomorrow!
This should not be related, there is other issue for that. Testing now. |
Reviewer ChecklistI have tested on all the platforms except Desktop, where the behaviour should be the same as on the web given the nature of this PR
Screenshots/VideosWebOnline pull12960webOnline.movOffline pull12960webOffline.movMobile Web - ChromeMobile Web - Safaripull12960mweb.movDesktopiOSUploading pull12960ios.mov… AndroidAppPull12926Android.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Coming back from OOO. I agree with this approach. Do we have the related issue yet? |
|
@JmillsExpensify We have this open issue, looking into the slack discussion we came to the conclusion that we will show a |
|
@techievivek I think that is correct, we need to create some simple design change there too to make it look nice. The problem here I see is that the IOUPreview will get redesigned for N7 so maybe we dont want to spend too much time on this. |
|
🚀 Deployed to production by @luacmartins in version: 1.2.32-2 🚀
|
|
🚀 Deployed to production by @luacmartins in version: 1.2.32-2 🚀
|
|
@youssef-lr I'm seeing some sort of error from this on dev for some reason:
The Lines 43 to 44 in 96ed054 |
|
Interesting, let me try to reproduce #13074 and get back to you. |
|
Though @yuwenmemon if |
|
Interesting, let me try again then. |
|
Ah, I figured it out it's because of the migration from the |

Details
This PR will prevent any changes to be made to an IOU locally if the request create/cancelled has a different currency than the report's.
Fixed Issues
$ #12792
Online Tests
Offline Tests
QA Steps
The same steps as in the Offline and Online tests section above.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)Screenshots/Videos
Web
Screen.Recording.2022-11-23.at.18.04.37.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android
cc @mountiny