You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] Missing Tax rate section when merging expenses when expenses are created without Tax first #83098
Version Number: 9.3.24-1 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#71244 Email or phone of affected tester (no customers):soidjnsoidjonjonjsojnsdj@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.2 / Chrome App Component: Money Requests
Action Performed:
Go to staging.new.expensify.com
Create a workspace.
Go to workspace chat.
Create two expenses.
Go to workspace settings > More features.
Enable Taxes.
Open one of the expenses from Step 4.
Click Tax and select 5% rate.
Click More > Merge.
Select the other expense from Step 4 > Continue.
→ Tax rate section is missing.
Close the merge flow.
Open the other expense (not the 5% tax rate expense).
Click Tax and select 5% rate.
Click Tax and change back to 0% rate.
Open the 5% tax rate expense.
Click More > Merge.
Select the 0% tax rate expense from Step 4 > Continue.
→ Now Tax rate section is shown.
Expected Result:
In Step 10, Tax rate section should be shown because both expenses have different tax rates.
Actual Result:
In Step 10, Tax rate section is missing when both expenses have different tax rates.
In Step 17, Tax rate section is only shown after changing tax rate and reselecting 0% rate.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Classification: Frontend bug Causing PR: #71244 - "[Merge] Merging tax rates" by @dominictb (High confidence) Related Issues: N/A
Recommendation: REVERT
PR #71244 introduced a logic bug in the merge transaction flow that prevents the tax rate section from appearing when merging expenses that were created without tax rates initially, even when one expense is later assigned a tax rate.
Labels: No label changes needed - keeping DeployBlockerCash as this is a frontend bug requiring an App PR fix.
📋 Detailed Analysis
Evidence
The bug report describes a specific scenario where the tax rate section is missing when merging two expenses:
Both expenses were created WITHOUT tax rates initially (Step 4)
Taxes were enabled on the workspace (Step 6)
One expense was assigned a 5% tax rate (Step 8)
When merging, the tax rate section is missing (Step 10)
This matches exactly with the changes introduced in PR #71244, which added tax rate support to the merge transaction flow.
Verification
The PR modifies these key files related to merge transactions and tax handling:
All of these files are directly related to the affected merge transaction flow and tax display.
Root Cause
The bug is in src/libs/MergeTransactionUtils.ts at lines 296-299:
if(isTargetValueEmpty||isSourceValueEmpty||targetValue===sourceValue){if(field==='taxValue'&&isTargetValueEmpty){continue;// This skips the tax field entirely!}
When expenses are created without tax rates initially, the taxValue field is empty. Even after enabling taxes and assigning a rate to one expense, when merging:
Target transaction: empty/0% tax (created without tax)
Source transaction: 5% tax
The logic checks if (field === 'taxValue' && isTargetValueEmpty) and executes continue, which:
Does NOT add taxValue to mergeableData (auto-selection)
Does NOT add taxValue to conflictFields (user selection)
Result: Tax rate section never appears in the merge flow
Why the workaround works (Step 17):
When the user manually changes the 0% tax expense to 5% and back to 0%, the transaction now has taxValue explicitly set (even as "0%"), so isTargetValueEmpty becomes false, and the tax field is properly processed and displayed.
This is a regression introduced by the special case handling for tax values in the merge logic.
Activity
melvin-bot commentedon Feb 20, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #71244
melvin-bot commentedon Feb 20, 2026
💬 A slack conversation has been started in #expensify-open-source
melvin-bot commentedon Feb 20, 2026
Triggered auto assignment to @NicMendonca (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.github-actions commentedon Feb 20, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
OSBotify commentedon Feb 20, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #71244 - "[Merge] Merging tax rates" by @dominictb (High confidence)
Related Issues: N/A
Recommendation: REVERT
PR #71244 introduced a logic bug in the merge transaction flow that prevents the tax rate section from appearing when merging expenses that were created without tax rates initially, even when one expense is later assigned a tax rate.
Labels: No label changes needed - keeping
DeployBlockerCashas this is a frontend bug requiring an App PR fix.📋 Detailed Analysis
Evidence
The bug report describes a specific scenario where the tax rate section is missing when merging two expenses:
This matches exactly with the changes introduced in PR #71244, which added tax rate support to the merge transaction flow.
Verification
The PR modifies these key files related to merge transactions and tax handling:
src/libs/MergeTransactionUtils.ts- Core merge logicsrc/pages/TransactionMerge/DetailsReviewPage.tsx- Details review pagesrc/pages/TransactionMerge/ConfirmationPage.tsx- Confirmation pagesrc/components/ReportActionItem/MoneyRequestView.tsx- Display logicAll of these files are directly related to the affected merge transaction flow and tax display.
Root Cause
The bug is in
src/libs/MergeTransactionUtils.tsat lines 296-299:When expenses are created without tax rates initially, the
taxValuefield is empty. Even after enabling taxes and assigning a rate to one expense, when merging:The logic checks
if (field === 'taxValue' && isTargetValueEmpty)and executescontinue, which:taxValuetomergeableData(auto-selection)taxValuetoconflictFields(user selection)Why the workaround works (Step 17):
When the user manually changes the 0% tax expense to 5% and back to 0%, the transaction now has
taxValueexplicitly set (even as "0%"), soisTargetValueEmptybecomesfalse, and the tax field is properly processed and displayed.This is a regression introduced by the special case handling for tax values in the merge logic.
61 remaining items
melvin-bot commentedon Jul 1, 2026
@youssef-lr, @dominictb 12 days overdue. Walking. Toward. The. Light...
melvin-bot commentedon Jul 4, 2026
This issue has not been updated in over 14 days. @youssef-lr, @dominictb eroding to Weekly issue.
youssef-lr commentedon Sep 2, 2026
@dominictb is this done?
dominictb commentedon Sep 3, 2026
Not yet. This needs your confirmation #83098 (comment)