-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 incorrect tax rate selected with distance rate #43052
Conversation
@hungvu193 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] |
@@ -78,10 +76,12 @@ function IOURequestStepDistanceRate({ | |||
const initiallyFocusedOption = sections.find((item) => item.isSelected)?.keyForList; | |||
|
|||
function selectDistanceRate(customUnitRateID: string) { | |||
if (policy?.customUnits && customUnitID && shouldShowTax) { |
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.
For distance policy?.customUnits && customUnitID
are always set, so I found it redundant and hence removed and cleaned up the code
Since this issue linked to a DB, let me know if we need C+ here 😁 |
a24822e
to
941dd37
Compare
Yes, we need a C+ here. This is actually not a bug from the PR. We just missed implementing this logic |
Cool. I'll start my review in minutes |
Thanks a lot @hungvu193 ! |
Hey @MonilBhavsar How can I enable |
Like this- Screen.Recording.2024-06-05.at.9.17.02.PM.mov |
Thank you. I figured it out. I needed to enable tax under Xero config |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeScreen.Recording.2024-06-05.at.23.33.55.moviOS: mWeb SafariScreen.Recording.2024-06-05.at.23.45.39.movMacOS: Chrome / SafariChrome.distance.movChrome.manual.movMacOS: DesktopScreen.Recording.2024-06-05.at.23.51.06.mov |
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.
Tests well 🎉
There are conflicts, looking... |
I have resolved conflicts. @hungvu193 could you please take a look again |
Sure |
Confirmed, it worked as expected Screen.Recording.2024-06-06.at.13.58.36.movScreen.Recording.2024-06-06.at.14.14.47.mov |
🚀 Deployed to staging by https://github.com/grgia in version: 1.4.80-1 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.81-11 🚀
|
Details
Fixed Issues
$ #42802
PROPOSAL:
Tests
Same as QA
Offline tests
Same as QA
QA Steps
On oldDot, configure some distance rates with tax percentages
+
and create distance requestFor regression, test manual request
+
and create manual requestPR 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
See MacOS: Chrome / SafariAndroid: mWeb Chrome
See MacOS: Chrome / SafariiOS: Native
See MacOS: Chrome / SafariiOS: mWeb Safari
See MacOS: Chrome / SafariMacOS: Chrome / Safari
Distance request:
https://drive.google.com/file/d/17fyJ2A2NdtgIxJuDU45TEFrAAXv6MiAL/view?usp=sharing
Manual request:
Screen.Recording.2024-06-05.at.8.24.37.PM.mov
MacOS: Desktop
See MacOS: Chrome / Safari