fix: Tax no longer valid error shown on distance expense#72602
Conversation
Codecov Report❌ Patch coverage is
... and 6 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
@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] |
|
friendly bump here @abdulrahuman5196 |
|
Hi will check today |
| const isPolicyTrackTaxEnabled = !!policy?.tax?.trackingEnabled; | ||
| const isDistanceRequest = TransactionUtils.isDistanceRequest(updatedTransaction); | ||
| const isPerDiemRequest = TransactionUtils.isPerDiemRequest(updatedTransaction); | ||
| const isPolicyTrackTaxEnabled = isTaxTrackingEnabled(true, policy, isDistanceRequest, isPerDiemRequest); // we can use isPolicyExpenseChat here |
There was a problem hiding this comment.
@nkdengineer What is the comment here? I don't understand it?
There was a problem hiding this comment.
@abdulrahuman5196 i removed. Looks like I forgot to delete it after testing
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-10-22.at.12.00.33.AM.movAndroid: mWeb ChromeScreen.Recording.2025-10-22.at.12.07.01.AM.moviOS: HybridAppScreen.Recording.2025-10-21.at.11.27.20.PM.moviOS: mWeb SafariScreen.Recording.2025-10-21.at.11.28.36.PM.movMacOS: Chrome / SafariScreen.Recording.2025-10-21.at.11.24.52.PM.movMacOS: DesktopScreen.Recording.2025-10-21.at.11.25.48.PM.mov |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @chuckdries
🎀 👀 🎀
C+ Reviewed
|
Eslint failure doesn't seem to be related to these code changes. cc: @nkdengineer |
chuckdries
left a comment
There was a problem hiding this comment.
Works like a charm. Thanks!
|
@nkdengineer The ESlint should fix itself when you merge main! |
|
@chuckdries all good now |
|
✋ 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/chuckdries in version: 9.2.37-1 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.2.37-8 🚀
|
Explanation of Change
Fixed Issues
$ #71044
PROPOSAL: #71044 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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
am.mov
Android: mWeb Chrome
am.mov
iOS: Native
ios.mov
iOS: mWeb Safari
im.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop-resize.mp4