fix: Show positive amount when manually entering tax amount #45050
fix: Show positive amount when manually entering tax amount #45050hayata-suenaga merged 2 commits intoExpensify:mainfrom
Conversation
|
@aimane-chnaif 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] |
| const shouldShowAllFields = !!isDistanceRequest || shouldExpandFields || !shouldShowSmartScanFields || isTypeSend || !!isEditingSplitBill; | ||
| // Calculate the formatted tax amount based on the transaction's tax amount and the IOU currency code | ||
| const formattedTaxAmount = CurrencyUtils.convertToDisplayString(transaction?.taxAmount, iouCurrencyCode); | ||
| // Calculate the formatted tax amount based on the transaction's tax amount returned from getTaxAmount and the IOU currency code |
There was a problem hiding this comment.
Is this comment update necessary?
There was a problem hiding this comment.
I think the existing comment is enough. I will undo the change.
There was a problem hiding this comment.
I have changed the comment to its previous version.
Reviewer Checklist
Screenshots/VideosiOS: mWeb Safari |
|
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
|
✋ 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/hayata-suenaga in version: 9.0.7-3 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|





Details
Fixed Issues
$ #44632
PROPOSAL: #44632 (comment)
Tests
Same as QA steps
Offline tests
Same as QA steps
QA Steps
Precondition:
Verify that tax amount is positive
Verify that no errors appear in the JS console
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.mp4
Android: mWeb Chrome
Android.mweb.mp4
iOS: Native
iOS.mp4
iOS: mWeb Safari
ios.safari.mp4
MacOS: Chrome / Safari
Desktop.web.mp4
MacOS: Desktop
Desktop.mp4