[CP Staging] Fix crash with zero tax rate and allow tax amount to be zero#39638
[CP Staging] Fix crash with zero tax rate and allow tax amount to be zero#39638jasperhuangg merged 2 commits intomainfrom
Conversation
|
@NikkiWines 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] |
|
Holding as I found another crash 🤦 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-04-05.at.12.55.16.AM.movAndroid: mWeb ChromeScreen.Recording.2024-04-05.at.12.53.50.AM.moviOS: NativeUploading Screen Recording 2024-04-05 at 12.52.55 AM.mov… iOS: mWeb SafariScreen.Recording.2024-04-05.at.12.51.56.AM.movMacOS: Chrome / SafariScreen.Recording.2024-04-05.at.12.48.05.AM.movMacOS: DesktopScreen.Recording.2024-04-05.at.12.50.13.AM.mov |
|
Yes, I think that's fine because that's the case with all amounts, not just the 0% amount right? which also occurs on prod? |
|
@allroundexperts I think the main thing we're trying to solve here is the crash, and I don't see anything about fixing optimistic data in the linked issues. Let's not block deploy on that since it seems unrelated to this PR. @MonilBhavsar just making a note so you know to check whether it is expected and handle it if necessary. |
|
Merging this in the interest of urgency and it seems like it's late for @MonilBhavsar |
[CP Staging] Fix crash with zero tax rate and allow tax amount to be zero (cherry picked from commit 07326c4)
|
🚀 Cherry-picked to staging by https://github.com/jasperhuangg in version: 1.4.60-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
Thanks all!
Yes this is known and WIP |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|

Details
Fixed Issues
Part of #39600
Fixes the crash, we still need to polish
MoneyRequestAmountFormcomponent, hence partially fixes the issuePROPOSAL:N/A
Tests
Same as QA
Offline tests
None
QA Steps
Precondition:
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: mWeb Chrome
iOS: Native
Screen.Recording.2024-04-05.at.12.49.57.AM.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
https://drive.google.com/file/d/1GuQtVmTT_mTwKLRCzTqoSvz4GoJq8KiG/view?usp=sharingMacOS: Desktop