Skip to content

[$250] Expense - Navigation error and tax message shown after merge in tax-not-enabled workspace #83153

Closed

Description

@jponikarchuk

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: V9.3.24-1
Reproducible in staging?: Yes
Reproducible in production?: No
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): dreamnitethedragon@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Redminote 10S Android 13
App Component: Money Requests

Action Performed:

  1. Launch app
  2. Create 2 workspaces
    *Tax - tax enabled
    *Non tax - tax not enabled
  3. Open non tax workspace chat
  4. Create a manual expense entering merchant
  5. Open tax enabled workspace
  6. Create a manual expense entering merchant
  7. Change tax rate to 5%
  8. Tap more - merge
  9. Select second option in all section in details and continue
  10. Tap merge
  11. Scroll down and note skeleton is shown in top section
  12. Navigate back using top arrow
  13. Note skeleton and hmm not here page shown
  14. Tap top arrow and note tax workspace chat page is shown
  15. Open non tax workspace chat
  16. Open the merged expense
  17. Scroll down and note changed tax rate system message is shown

Expected Result:

The merged report should load normally without skeleton loader.
Navigating back should not show “Hmm, not here”.
No tax-related system message should appear in a tax-not-enabled workspace.

Actual Result:

A skeleton loader appears after merge in top section of page when scroll down the page.
Navigating back briefly shows skeleton and “Hmm, not here” page.
In the tax-not-enabled workspace, the merged expense shows a “Tax rate changed” system message.
Note: loading issue in android, system message in web too

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

1.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @DylanDylann
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022025509261019205234
  • Upwork Job ID: 2025509261019205234
  • Last Price Increase: 2026-02-22

Activity

  1. added
    DeployBlockerCash
    Bug
    on Feb 22, 2026
  2. melvin-bot commented on Feb 22, 2026

    @melvin-bot

    @youssef-lr recently merged #71244, but they are OOO right now, so I'll auto-assign someone else.

  3. melvin-bot commented on Feb 22, 2026

    @melvin-bot

    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.

  4. melvin-bot commented on Feb 22, 2026

    @melvin-bot

    Triggered auto assignment to @srikarparsi (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  5. melvin-bot commented on Feb 22, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  6. github-actions commented on Feb 22, 2026

    @github-actions
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  7. OSBotify commented on Feb 22, 2026

    @OSBotify
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug
    Causing PR: #71244 - "[Merge] Merging tax rates" by @dominictb (High confidence)
    Related Issues: None

    Recommendation: REVERT

    PR #71244 introduced a change to MoneyRequestView.tsx that causes tax-related information to display in workspaces where tax is not enabled. The change on line 417 added !!transaction?.taxName to the shouldShowTax condition, which means that if a merged transaction has a taxName property (which it now does after merging), the tax field will be shown even in tax-disabled workspaces.

    This directly causes the reported symptom: "In the tax-not-enabled workspace, the merged expense shows a Tax rate changed system message."

    The navigation/skeleton loader issues are likely side effects of this rendering logic error.

    Labels: Keeping DeployBlockerCash as this is a Frontend bug requiring an App PR fix.

    📋 Detailed Analysis

    Evidence

    • The bug is reproducible in staging (v9.3.24-1) but NOT in production
    • PR [Merge] Merging tax rates #71244 was merged on 2026-02-19 and is included in the 9.3.24-1 release
    • The PR added tax rate merging functionality for expenses
    • The issue was caught during regression testing of PR [Merge] Merging tax rates #71244 (as noted in the issue body)

    Verification

    // Before:
    const shouldShowTax = isTaxTrackingEnabled(isPolicyExpenseChat || isExpenseUnreported, policy, isDistanceRequest, isPerDiemRequest, isTimeRequest);
    
    // After:
    const shouldShowTax = !!transaction?.taxName || isTaxTrackingEnabled(isPolicyExpenseChat || isExpenseUnreported, policy, isDistanceRequest, isPerDiemRequest, isTimeRequest);

    This change causes tax information to be displayed whenever a transaction has a taxName property, regardless of whether the workspace has tax enabled.

    Root Cause

    When merging expenses from a tax-enabled workspace into a tax-disabled workspace, the merged transaction retains the taxName property. The new logic in MoneyRequestView.tsx checks for transaction?.taxName first, causing it to show tax-related UI elements (including system messages about tax rate changes) even though the destination workspace does not have tax tracking enabled.

    The proper logic should only show tax fields when the workspace/policy has tax tracking enabled, not just because a transaction object happens to have a taxName property from a previous state.

  8. 29 remaining items

  9. melvin-bot commented on Mar 13, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  10. melvin-bot commented on Mar 13, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  11. melvin-bot commented on Mar 13, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  12. melvin-bot commented on Mar 13, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  13. dominictb commented on Mar 24, 2026

    @dominictb
    Contributor

    PR reach prod

  14. removed
    Reviewing
    on Mar 24, 2026
  15. dominictb commented on Mar 24, 2026

    @dominictb
    Contributor

    Not overdue

  16. dominictb commented on Mar 24, 2026

    @dominictb
    Contributor

    Bad luck with Melvin 😿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugEngineeringExternalWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions