-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[CP Staging] Fix crash with zero tax rate and allow tax amount to be zero #39638
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
MoneyRequestAmountForm
component, hence partially fixes the issuePROPOSAL:N/A
Tests
Same as QA
Offline tests
None
QA Steps
Precondition:
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
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