-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
#admin
room. 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#admin
room, 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#admin
room, a message shows the exact amount and currency from step 6 (i.e.$0.001
)PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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