Skip to content

[QA Retest & Close] Expense - Tax amount is negative when expense amount is not negative when merging expenses #103707

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.7-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #102175
Email or phone of affected tester (no customers): jsoidjndoiniodnsjojd@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Money Requests

Action Performed:

Precondition:

  • Enable Taxes.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Create expense A with negative amount.
  4. Open the report.
  5. Change tax rate to 5% rate.
  6. Create expense B with positive amount and 0% rate.
  7. Open the report.
  8. Bulk select both expenses.
  9. Click More > Merge.
  10. Select expense B amount, 5% rate and any other details.
  11. Click Continue.

Expected Result:

On confirm page, tax amount will not be negative because the expense amount is not negative.

Actual Result:

On confirm page, tax amount is negative when the expense amount is not negative.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7283139_1791643096608.7.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7283139

Activity

  1. added
    DeployBlockerCash
    on Oct 12, 2026
  2. added
    Bug
    on Oct 12, 2026
  3. applause-bot commented on Oct 12, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/f36d35f0d4fe6360e44c4933d28380e3aaff0d2c24e1e6d3929a0ce0a154de1e

  4. melvin-bot commented on Oct 12, 2026

    @melvin-bot

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

  5. melvin-bot commented on Oct 12, 2026

    @melvin-bot

    @grgia you have been assigned to this deploy blocker because you reviewed the offending PR: #102175

  6. melvin-bot commented on Oct 12, 2026

    @melvin-bot

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

  7. github-actions commented on Oct 12, 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.
  8. MelvinBot commented on Oct 12, 2026

    @MelvinBot
    Contributor

    Deploy Blocker Analysis

    Causing PR: Show negative tax amount for negative expenses on the expense details page (high confidence). It is on the current staging checklist.

    Recommendation: Revert. The bug only affects the merge confirmation page. The saved expense is correct, because the merge action never sends taxAmount.

    Root cause: The merge flow stores taxAmount with the sign the user sees. The PR now passes that value through getTaxAmount, which flips the sign again for expense reports. A positive tax then shows as negative (MoneyRequestView.tsx:380). Before the PR, the merge flow showed Math.abs(updatedTransaction.taxAmount), so the sign never mattered.

    Investigation details

    view run

  9. grgia commented on Oct 12, 2026

    @grgia
    Contributor

    Same cause as #103671, #103677 covers it. Tracking both there, no revert

  10. changed the title [-]Expense - Tax amount is negative when expense amount is not negative when merging expenses[/-] [+][QA Retest & Close] Expense - Tax amount is negative when expense amount is not negative when merging expenses[/+] on Oct 12, 2026
  11. kavimuru commented on Oct 12, 2026

    @kavimuru

    not reproducible

    Retest.103707.mp4
  12. removed
    DeployBlockerCash
    on Oct 13, 2026
  13. added
    Reviewing
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugEngineeringHourlyReviewing

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions