Skip to content

Expense - Default Custom Tax Name Displays Incorrectly as “Tax rate” in Multiple Expense Edit #84735

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.34-0
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: #82948
Email or phone of affected tester (no customers): dreamnitethedragon+yydyd373@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:

Pre-condition

  1. Have workspace

  2. Enable category, tag ( add 2 tags), tax, rules

  3. Create 2 distance manual map expense

  4. Launch app

  5. Go to workspace settings

  6. Open tag - settings (note default custom tag name)

  7. Open tax - settings (note default custom tax name)

  8. Open workspace chat

  9. Select both expenses - edit multiple

  10. Open tag and tax row

  11. Note default custom tag name is shown correctly but tax name is shown incorrectly as "Tax rate" instead "Tax"

  12. Go to workspace settings - rules - add a merchant rule

  13. Open Tax row

  14. Note default custom tax name is shown correctly as "Tax"

Expected Result:

The default custom tax name configured in workspace settings should be displayed consistently as “Tax” in all relevant places, including Multiple Expense Edit.

Actual Result:

In multiple expense edit → Tax row, the default custom tax name is displayed incorrectly as “Tax rate” instead of “Tax”.
However, in merchant rule → Tax row, the default custom tax name is displayed correctly as “Tax”.

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

Activity

  1. added
    DeployBlockerCash
    Bug
    on Mar 10, 2026
  2. melvin-bot commented on Mar 10, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #82948

  3. melvin-bot commented on Mar 10, 2026

    @melvin-bot

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

  4. melvin-bot commented on Mar 10, 2026

    @melvin-bot

    Triggered auto assignment to @CortneyOfstad (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.

  5. github-actions commented on Mar 10, 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.
  6. OSBotify commented on Mar 10, 2026

    @OSBotify
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug
    Causing PR: #82948 - "Reapply "Feat: bulk edit multiple"" by @pasyukevich (High confidence)
    Related Issues: None

    Recommendation: REVERT

    This PR introduced the bulk edit multiple feature and included hardcoded tax field labels that do not respect the workspace custom tax name configuration.

    Labels: Keeping DeployBlockerCash (App deploy blocker). The DeployBlocker label was not present on this issue, so no label removal is needed.

    📋 Detailed Analysis

    Evidence

    The issue was introduced by PR #82948, which added the bulk edit multiple feature. The bot comment confirms this PR was merged and is the likely cause. The bug is reproducible on staging (version 9.3.34-0) where this PR is included, and not yet in production.

    Verification

    The PR added two files that contain the bug:

    1. src/pages/Search/SearchEditMultiple/SearchEditMultiplePage.tsx (line 224):
    description: translate(\"iou.taxRate\"),  // Returns "Tax rate"
    1. src/pages/Search/SearchEditMultiple/SearchEditMultipleTaxPage.tsx (line 59):
    title={translate(\"iou.taxRate\")}  // Returns "Tax rate"

    Both locations use the hardcoded translation key iou.taxRate which always returns "Tax rate", instead of using the custom tax name configured in the workspace settings.

    Root Cause

    The custom tax name is stored in policy.taxRates.name (as seen in WorkspaceTaxesSettingsPage.tsx line 34). The correct pattern used elsewhere in the codebase is:

    policy?.taxRates?.name ?? translate(\"common.tax\")

    This would display the custom tax name (e.g., "Tax", "Imposto", "VAT") when configured, falling back to "Tax" when not customized.

    The merchant rule page likely uses the correct pattern, which is why it displays "Tax" correctly as mentioned in the bug report.

    Fix Required

    Update both files to use policy?.taxRates?.name ?? translate(\"common.tax\") instead of translate(\"iou.taxRate\").

  7. MelvinBot commented on Mar 10, 2026

    @MelvinBot
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    When editing multiple expenses via bulk edit, the tax field label displays as "Tax rate" (a hardcoded translation string) instead of the workspace's custom tax field name (e.g., "Tax"). Tags display their custom name correctly in the same view, so the inconsistency is confusing.

    What is the root cause of that problem?

    In SearchEditMultiplePage.tsx (line 224), the tax field description is set to translate('iou.taxRate'), which always resolves to the hardcoded string "Tax rate". It does not read the workspace's custom tax name from policy?.taxRates?.name.

    The same issue exists in SearchEditMultipleTaxPage.tsx (line 59), where the page header title also uses translate('iou.taxRate').

    By contrast, other views correctly use the custom name:

    • MoneyRequestView.tsx uses taxRates?.name as the description (line 310)
    • MoneyRequestConfirmationListFooter.tsx uses taxRates?.name as the description (line 829)
    • Tags in the same bulk edit page use tagList.name from the policy (line 157)

    What changes do you think we should make in order to solve the problem?

    1. In SearchEditMultiplePage.tsx, change the tax field description from translate('iou.taxRate') to policy?.taxRates?.name ?? translate('iou.taxRate') so it uses the custom name with a fallback.

    2. In SearchEditMultipleTaxPage.tsx, change the page title from translate('iou.taxRate') to use policy?.taxRates?.name ?? translate('iou.taxRate') for consistency. The policy object is already available in this component via useOnyx.

    This mirrors the pattern used by single-expense views (MoneyRequestView, MoneyRequestConfirmationListFooter) and is analogous to how tags already handle custom names in the same bulk edit page.

    What alternative solutions did you explore? (Optional)

    Using translate('common.tax') (which resolves to "Tax") would match the merchant rule page's approach, but that's also hardcoded and would break if the admin set a custom name like "GST" or "VAT". Using policy?.taxRates?.name with a fallback is the correct approach, consistent with single-expense views.


    Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.

  8. 9 remaining items

  9. melvin-bot commented on Apr 3, 2026

    @melvin-bot

    @CortneyOfstad, @marcaaron Huh... This is 4 days overdue. Who can take care of this?

  10. melvin-bot commented on Apr 7, 2026

    @melvin-bot

    @CortneyOfstad, @marcaaron 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

  11. CortneyOfstad commented on Apr 8, 2026

    @CortneyOfstad
    Contributor

    @marcaaron any update here?

  12. CortneyOfstad commented on Apr 14, 2026

    @CortneyOfstad
    Contributor
  13. melvin-bot commented on Apr 21, 2026

    @melvin-bot

    @CortneyOfstad, @marcaaron Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  14. melvin-bot commented on Apr 23, 2026

    @melvin-bot

    @CortneyOfstad, @marcaaron Eep! 4 days overdue now. Issues have feelings too...

  15. melvin-bot commented on Apr 27, 2026

    @melvin-bot

    @CortneyOfstad, @marcaaron 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

  16. melvin-bot commented on Apr 29, 2026

    @melvin-bot

    @CortneyOfstad, @marcaaron 10 days overdue. Is anyone even seeing these? Hello?

  17. melvin-bot commented on May 1, 2026

    @melvin-bot

    @CortneyOfstad, @marcaaron 12 days overdue. Walking. Toward. The. Light...

  18. melvin-bot commented on May 4, 2026

    @melvin-bot

    This issue has not been updated in over 14 days. @CortneyOfstad, @marcaaron eroding to Weekly issue.

  19. marcaaron commented on May 7, 2026

    @marcaaron
    Contributor

    This was fixed in #84756

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

Metadata

Metadata

Labels

BugEngineeringReviewingWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions