-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix: hide tax columns for time expenses in TransactionItemRow #81024
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
base: main
Are you sure you want to change the base?
fix: hide tax columns for time expenses in TransactionItemRow #81024
Conversation
Time expenses do not support taxes (established in Expensify#77748). This fix hides TAX_RATE and TAX_AMOUNT columns for time expense transactions in the Reports > Expenses view. Fixes Expensify#80208
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppIgnored as no column support in mobile versions Android: mWeb ChromeIgnored as no column support in mobile versions iOS: HybridAppIgnored as no column support in mobile versions iOS: mWeb SafariIgnored as no column support in mobile versions MacOS: Chrome / Safari81024-web-chrome-001.mp4 |
rojiphil
left a comment
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.
Thanks @cosmicvulpes for the PR.
@Gonals Changes LGTM and works well too.
Over to you. Thanks.
Explanation of Change
This PR fixes an issue where Tax Rate and Tax Amount columns in the Reports > Expenses view were displaying tax data for time expenses. According to PR #77748, time expenses should not display tax information since they don't support taxes.
The fix adds a check using the existing
isTimeRequest()function fromTransactionUtilsin theTransactionItemRowcomponent to conditionally hide tax data for time expenses:TAX_RATEcolumn: returns an empty string when the transaction is a time expenseTAX_AMOUNTcolumn: returnsnull(renders nothing) when the transaction is a time expenseThis aligns the Search/Reports view behavior with the
MoneyRequestViewbehavior established in PR #77748.Fixed Issues
$ #80208
PROPOSAL: #80208 (comment)
Tests
Offline tests
QA Steps
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
NA as column selection is disabled on narrow screens.
Android: mWeb Chrome
NA as column selection is disabled on narrow screens.
iOS: Native
NA as column selection is disabled on narrow screens.
iOS: mWeb Safari
NA as column selection is disabled on narrow screens.
MacOS: Chrome / Safari
Screen.Recording.2026-01-30.at.10.17.26.PM.mov