Skip to content

[Due for payment 2026-04-30] Unreported per diem expense cannot be duplicated on Inbox, but can be duplicated on Reports #87597

Closed

Description

@mitarachim

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: 9.3.58-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: #84657
Email or phone of affected tester (no customers): iojnsdiojoisjnosnjido@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.2 / Chrome
App Component: Search

Action Performed:

Precondition:

  • Workspace has per diem rates.

1.Go to staging.new.expensify.com
2. Go to self DM.
3. Create a per diem expense.
4. Open the expense.
5. Click More > Duplicate.
→ Unreported per diem expense cannot be duplicated on Inbox.
6. Go to Reports > Expenses.
7. Select the unreported per diem expense via checkbox.
8. Click dropdown button > Duplicate expense.
→ Unreported per diem expense can be duplicated on Reports.

Expected Result:

Unreported per diem expense should not be allowed to be duplicated on Reports, similar to Step 5 on Inbox.

Actual Result:

Unreported per diem expense cannot be duplicated on Inbox, but can be duplicated on Reports.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7126611_1775816485890.2.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @Krishna2323

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    DeployBlocker
    on Apr 10, 2026
  2. melvin-bot commented on Apr 10, 2026

    @melvin-bot

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

  3. melvin-bot commented on Apr 10, 2026

    @melvin-bot

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

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

    @OSBotify
    Contributor

    Investigation Summary. Classification: Frontend bug. Causing PR: #84657 by @Krishna2323 (High confidence). Recommendation: REVERT. PR 84657 introduced the Duplicate expense bulk action to the Reports view but did not correctly exclude per diem expenses, causing the inconsistency between Inbox (blocks per diem duplication) and Reports (allows it). Assigned: @Krishna2323 (PR author), @JS00001, @situchan (approving reviewers). Labels: Keeping DeployBlockerCash (App PR caused the issue). Removing DeployBlocker (fix is in frontend, not backend). Evidence: PR 84657 merged 2026-04-09, issue filed 2026-04-10 - timing aligns exactly. Bug only reproduces on staging not production, and PR is confirmed in StagingDeployCash checklist 87562. Root Cause: In useSelectedTransactionsActions.ts line 182, the call to shouldShowBulkDuplicateOption passes typeExpenseReport: false. The shouldShowBulkDuplicateOption function in useSearchBulkActions.ts line 133 uses typeExpenseReport as an early-exit gate - if true, the duplicate option is suppressed. By hardcoding false here, per diem filtering logic is bypassed in the Reports view. The Inbox context uses a separate code path that correctly blocks per diem duplication, explaining the inconsistency.

  6. removed
    DeployBlocker
    on Apr 10, 2026
  7. 6 remaining items

  8. added
    Reviewing
    Weekly
    and removed
    Daily
    on Apr 13, 2026
  9. Krishna2323 commented on Apr 13, 2026

    @Krishna2323
    Contributor

    PR fixing this issue is up: #87697

    cc: @situchan

  10. JS00001 commented on Apr 17, 2026

    @JS00001
    Contributor

    PR to fix this blocker is merged: #87697

  11. melvin-bot commented on Apr 21, 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. added
    Daily
    and removed
    Reviewing
    Weekly
    on Apr 23, 2026
  13. changed the title [-]Unreported per diem expense cannot be duplicated on Inbox, but can be duplicated on Reports[/-] [+][Due for payment 2026-04-30] Unreported per diem expense cannot be duplicated on Inbox, but can be duplicated on Reports[/+] on Apr 23, 2026
  14. melvin-bot commented on Apr 23, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  15. melvin-bot commented on Apr 23, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.61-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-04-30. 🎊

    For reference, here are some details about the assignees on this issue:

    • @Krishna2323 requires payment through NewDot Manual Requests
    • @situchan requires payment through NewDot Manual Requests
  16. melvin-bot commented on Apr 23, 2026

    @melvin-bot

    @Krishna2323 / @situchan The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

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

Metadata

Metadata

Labels

BugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions