You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reports - Expense is submitted to Self DM instead of WS chat if submissions are disabled #76680
Version Number: 9.2.71-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack: undefined Email or phone of affected tester (no customers):ibellicotest+2154@gmail.com Issue reported by: Applause Internal Team Device used: Motorola MotoG60 / Android 12 / Chrome ( mWeb / Hybrid app) - Windows 11 / Chrome App Component: Search
Action Performed:
Prerequisite: Account has a workspace with submission frequency disabled and approvals enabled.
Prerequisite 2: Account has Self DM.
Open the Expensify app.
Navigate to "Reports" > "Reports"
Create a manual expense and submit it to a workspace.
Note that the just created expense is not displayed on "Reports"
Navigate to workspace chat.
Note that expense is not displayed.
Navigate to Self DM.
Note that expense was submitted to Self DM instead of workspace chat.
Expected Result:
Expense submitted to workspace while on "Reports", should correctly appear on chat.
Actual Result:
Expense submitted to workspace chat while on "Reports" section, is submitted to Self DM instead of workspace chat when submission frequency is disabled.
This issue is not reproducible if expense is created while on chat. It only happens when expense is created on "Reports"
Please re-state the problem that we are trying to solve in this issue.
Reports - Expense is submitted to Self DM instead of WS chat if submissions are disabled
What is the root cause of that problem?
When submission frequency is disabled (autoReporting is false), the transaction's reportID is set to CONST.REPORT.UNREPORTED_REPORT_ID, which makes isUnreported true
Activity
melvin-bot commentedon Dec 4, 2025
Triggered auto assignment to @twisterdotcom (
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.nyomanjyotisa commentedon Dec 4, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Reports - Expense is submitted to Self DM instead of WS chat if submissions are disabled
What is the root cause of that problem?
When submission frequency is disabled (
autoReportingis false), the transaction'sreportIDis set toCONST.REPORT.UNREPORTED_REPORT_ID, which makesisUnreportedtrueApp/src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Line 161 in e8bcafa
In the confirmation flow, when
isUnreportedis true, the expense is routed totrackExpenseinstead ofrequestMoneyApp/src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Line 973 in e8bcafa
The
trackExpensefunction callsgetTrackExpenseInformation, which defaults to Self DM when no chat report is passedApp/src/libs/actions/IOU.ts
Lines 4094 to 4096 in e8bcafa
This causes expenses created from the Reports section to go to Self DM instead of the workspace chat
What changes do you think we should make in order to solve the problem?
We should only route to
trackExpensewhenisUnreportedis true and the participant is not a policy expense chatApp/src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Line 973 in e8bcafa
What alternative solutions did you explore? (Optional)
None
Nodebrute commentedon Dec 4, 2025
It’s expected behavior, based on the implementation in this PR
twisterdotcom commentedon Dec 4, 2025
Yeah agree, expenses are unreported if reporting frequency is disabled.