Skip to content

[Due for payment 2026-07-21] Legacy/imported unreported expenses can't be moved to a report in NewDot (missing IOU report action) #93799

Closed

Description

@melvin-bot

Problem

Some unreported expenses don't expose the Move to report action in NewDot (neither the bulk/Search action nor the secondary action on the expense), even though equivalent expenses created natively in NewDot can be moved. This blocks users from organizing legacy/imported expenses into reports and forces them back to Classic.

Root cause

For an unreported expense, Move to report eligibility is gated on NewDot finding an IOU money-request report action (CREATE or TRACK) whose originalMessage.IOUTransactionID matches the transaction, via getIOUActionForTransactionID. That result feeds both:

Natively-created NewDot expenses have that IOU action → eligible. Legacy/imported transactions (e.g. scraper/emailed-in, or imported personal-card cash expenses from Classic) predate or skip that flow, so no IOU action links back to them → the option is hidden.

NewDot already compensates for viewing via the "Legacy transaction fallback: creating money request preview" path, which only runs if (transaction && !parentReportActionID): src/libs/actions/Report/index.ts#L1610-L1703. But that backfill only happens on OpenReport, so the missing report action — which the Move-to-report action keys off — is never created for expenses the user hasn't opened.

Note: this is not caused by a failed SmartScan. A native expense with a SCANFAILED receipt still moves fine; the gap is specifically the missing IOU/preview report action on legacy/imported transactions.

Proposed fix

Backfill the missing IOU/preview report action for legacy unreported transactions outside of OpenReport (so the data exists before the report is opened), and ensure imported personal-card cash expenses are created with NewDot-compatible report-action plumbing. This complements the migration tracked in #80180 (which removes the on-open fallback once all old transactions are migrated).

Repro transactions

  • 1176490375256638168 — legacy/imported unreported expense — can't be moved (no IOU action; legacy fallback fires on open).
  • 4466175716520248865 — natively-created unreported expense (SCANFAILED receipt) — can be moved.

Related: #80180

Activity

  1. added
    Daily
    Improvement
    on Jun 17, 2026
  2. melvin-bot commented on Jun 22, 2026

    @melvin-bot
    Author

    @mollfpr Huh... This is 4 days overdue. Who can take care of this?

  3. melvin-bot commented on Jun 24, 2026

    @melvin-bot
    Author

    @mollfpr Still overdue 6 days?! Let's take care of this!

  4. melvin-bot commented on Jun 26, 2026

    @melvin-bot
    Author

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

  5. mollfpr commented on Jun 29, 2026

    @mollfpr
    Contributor

    Sorry was OOO last week 🙏

    Picking up this!

  6. mollfpr commented on Jul 2, 2026

    @mollfpr
    Contributor

    PR is drafted. Going to finish it today.

  7. added
    Reviewing
    Weekly
    and removed
    Daily
    on Jul 2, 2026
  8. added
    Daily
    and removed
    Reviewing
    Weekly
    on Jul 14, 2026
  9. changed the title [-]Legacy/imported unreported expenses can't be moved to a report in NewDot (missing IOU report action)[/-] [+][Due for payment 2026-07-21] Legacy/imported unreported expenses can't be moved to a report in NewDot (missing IOU report action)[/+] on Jul 14, 2026
  10. melvin-bot commented on Jul 14, 2026

    @melvin-bot
    Author

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

  11. melvin-bot commented on Jul 14, 2026

    @melvin-bot
    Author

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.33-8 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-07-21. 🎊

  12. melvin-bot commented on Jul 17, 2026

    @melvin-bot
    Author

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

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

Metadata

Metadata

Assignees

Labels

DailyEngineeringImprovement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions