Fix: Inconsistency of currency decimal format#31299
Conversation
|
@abdulrahuman5196 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] |
|
Hey @abdulrahuman5196 just making sure you saw this. |
|
Hi, Taking a review now |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-11-15.at.10.47.32.PM.mp4Android: mWeb ChromeScreen.Recording.2023-11-15.at.10.49.27.PM.mp4iOS: NativeScreen.Recording.2023-11-15.at.10.41.49.PM.mp4iOS: mWeb SafariScreen.Recording.2023-11-15.at.10.43.10.PM.mp4MacOS: Chrome / SafariScreen.Recording.2023-11-15.at.10.36.39.PM.mp4MacOS: DesktopScreen.Recording.2023-11-15.at.10.40.14.PM.mp4 |
|
I noticed one other different issue during testing. Like, if we set the Reimbursement rate from 1.999 USD to JPY, the Reimbursement rate is still shown as 1.999 which should have been rounded off. @rlinoz If required kindly file a issue on the same. |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @rlinoz
🎀 👀 🎀
C+ Reviewed
|
Thanks, I will review it tomorrow. |
|
I think this is fine since we also don't make any changes to the rate value when the user changes currency or unit. |
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. |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.1-13 🚀
|
Details
Currency decimal formatting is inconsistent between Reimbursements page and
#adminroom. This PR allows one more decimal place than the number of decimal places in the currency and formats the rate in both pages in the same way.Fixed Issues
$ #27720
PROPOSAL: #27720 (comment)
Tests
Expected behavior: Allow one more decimal place for currency decimal. For example,
JPY's decimals value is0, we should allow up-to-1-decimal values likeJPY 1,JPY 0.1, but notJPY 0.01.USD - $0.0001) >> Save0.001) >> Save#adminroom, a message shows the exact amount and currency from step 6 (i.e.$0.001)Offline tests
NA
QA Steps
Expected behavior: Allow one more decimal place for currency decimal. For example,
JPY's decimals value is0, we should allow up-to-1-decimal values likeJPY 1,JPY 0.1, but notJPY 0.01.USD - $0.0001) >> Save0.001) >> Save#adminroom, a message shows the exact amount and currency from step 6 (i.e.$0.001)PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting 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 */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)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
Screen.Recording.2023-11-14.at.17.24.51-compressed.mov
Android: mWeb Chrome
Screen.Recording.2023-11-14.at.17.27.37-compressed.mov
iOS: Native
Screen.Recording.2023-11-14.at.17.17.49-compressed.mov
iOS: mWeb Safari
Screen.Recording.2023-11-14.at.17.19.11-compressed.mov
MacOS: Chrome / Safari
Screen.Recording.2023-11-14.at.17.13.39-compressed.mov
MacOS: Desktop
Screen.Recording.2023-11-14.at.17.23.06-compressed.mov