feat: Add Billable and Tax subtotals to the report view#80079
feat: Add Billable and Tax subtotals to the report view#80079mjasikowski merged 13 commits intoExpensify:mainfrom
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@eVoloshchak 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] |
src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 84a1c92ade
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if (taxAmount) { | ||
| if (currency === report?.currency) { | ||
| taxTotal += taxAmount; | ||
| } else { | ||
| taxTotal -= transaction?.convertedTaxAmount ?? 0; |
There was a problem hiding this comment.
Avoid relying on missing convertedTaxAmount
In multi‑currency expense reports, this branch uses transaction.convertedTaxAmount to compute the tax subtotal when currency !== report.currency. That field is newly added but isn’t populated anywhere in the client transaction shape/optimistic updates, so for foreign‑currency transactions it will be undefined and the tax subtotal will end up as 0 (and the “Tax” row won’t show). This will misreport tax totals for any report with FX expenses until the backend supplies a converted tax value. Consider deriving the tax subtotal from taxAmount using the same conversion logic as convertedAmount, or at least falling back when convertedTaxAmount is missing.
Useful? React with 👍 / 👎.
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good from a product perspective 👍
Could you please change this to?
This doesn't work as expected offline (tax amount for an expense with non-default currency is ignored and properly calculated only after you go online) Screen.Recording.2026-01-25.at.19.30.00.mov |
@eVoloshchak, We can't have a way to detect the correct |
|
@eVoloshchak thoughts? Let's keep this moving. |
Let's mark it (and any other entry) disabled if it's not up to date. Like we mark the Screen.Recording.2026-01-29.at.13.24.36.mov |
|
@nkdengineer can you address the comments and conflicts today please? |
@eVoloshchak I updated. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2026-02-05.at.22.58.34.mov |
@nkdengineer, there are definitely some offline test steps we could include for the QA |
|
Verified this is working in both cases, nice job! |
|
@eVoloshchak Updated the offline test and unit test. |
|
@eVoloshchak we had another request for this today. Please can we get this reviewed and over the line. Thanks! |
|
🚧 @mjasikowski has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
Thanks all! Awesome to see this one merged. |
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.3.16-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.16-9 🚀
|




Explanation of Change
feat: Add Billable and Tax subtotals to the report view
Fixed Issues
$ #78927
PROPOSAL: #78927 (comment)
Tests
Offline tests
QA Steps
Same as above
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari