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
[$250] Expense - User can change the expense from SelfDM to a report in Expired Workspace #80205
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2
Version Number: v9.3.6-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:#79869 Email or phone of affected tester (no customers):luongquocvu92+070125@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Windows 10/Chrome App Component: Workspace Settings
Action Performed:
Preconditions: User is an admin of an expired workspace and has a draft report in it before
Log in to the NewDot app
Navigate to selfDM, create an expense
Click on the track expense
Click on the report row
Select the draft report in the expired Workspace
Expected Result:
Add card payment banner RHP display
Actual Result:
User can move the expense in the SelfDM to a draft report in an expired workspace
What changes do you think we should make in order to solve the problem?
We should check if the user is performing restricted billable action and navigate to the right page like we are already doing for handleCreateReport. We should check other places that require the same change
if (item?.policyID && shouldRestrictUserBillableActions(item.policyID)) {
Navigation.navigate(ROUTES.RESTRICTED_ACTION.getRoute(item.policyID));
return;
}
What alternative solutions did you explore? (Optional)
We can move shouldRestrictUserBillableActions to selectedReport function call
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Please re-state the problem that we are trying to solve in this issue.
Users can move expenses from selfDM to a draft report in an expired workspace. This should not be allowed - the app should show the "Add card payment" banner (restricted action RHP) instead of allowing the move.
What is the root cause of that problem?
In IOURequestEditReportCommon.tsx, the handleSelectReport function validates for PerDiem transactions but does NOT check if the destination workspace has an expired subscription using shouldRestrictUserBillableActions:
Other parts of the codebase (like MoneyRequestParticipantsSelector, FloatingActionButtonAndPopover, SettlementButton, etc.) correctly check shouldRestrictUserBillableActions before allowing billable actions, but this check is missing when moving expenses to a different report.
What changes do you think we should make in order to solve the problem?
Add a check for shouldRestrictUserBillableActions in handleSelectReport before allowing the expense to be moved:
import{shouldRestrictUserBillableActions}from'@libs/SubscriptionUtils';importROUTESfrom'@src/ROUTES';consthandleSelectReport=(item: TransactionGroupListItem)=>{if(item.value===selectedReportID){navigateBack();return;}// Check if destination workspace has expired subscriptionif(item.policyID&&shouldRestrictUserBillableActions(item.policyID)){Navigation.navigate(ROUTES.RESTRICTED_ACTION.getRoute(item.policyID));return;}if(!validatePerDiemMove(item.policyID)){return;}selectReport(item);};
The same check should also be added to handleCreateReport:
consthandleCreateReport=useCallback(()=>{// Check if policy for new report has expired subscriptionif(policyForMovingExpenses?.id&&shouldRestrictUserBillableActions(policyForMovingExpenses.id)){Navigation.navigate(ROUTES.RESTRICTED_ACTION.getRoute(policyForMovingExpenses.id));return;}if(!validatePerDiemMove(policyForMovingExpenses?.id)){return;}createReport?.();},[validatePerDiemMove,policyForMovingExpenses?.id,createReport]);
What alternative solutions did you explore? (Optional)
changed the title [-]Expense - User can change the expense from SelfDM to a report in Expired Workspace[/-][+][$250] Expense - User can change the expense from SelfDM to a report in Expired Workspace[/+]on Jan 26, 2026
📣 @etCoderDysto 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2
Activity
melvin-bot commentedon Jan 22, 2026
Triggered auto assignment to @greg-schroeder (
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.etCoderDysto commentedon Jan 22, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
User can change the expense from SelfDM to a report in Expired Workspace
What is the root cause of that problem?
We are not checking if user is performing restricted billable action
App/src/pages/iou/request/step/IOURequestEditReportCommon.tsx
Lines 250 to 258 in 3779ccf
What changes do you think we should make in order to solve the problem?
We should check if the user is performing restricted billable action and navigate to the right page like we are already doing for handleCreateReport. We should check other places that require the same change
What alternative solutions did you explore? (Optional)
We can move
shouldRestrictUserBillableActionstoselectedReportfunction callReminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
daledah commentedon Jan 22, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
Users can move expenses from selfDM to a draft report in an expired workspace. This should not be allowed - the app should show the "Add card payment" banner (restricted action RHP) instead of allowing the move.
What is the root cause of that problem?
In
IOURequestEditReportCommon.tsx, thehandleSelectReportfunction validates for PerDiem transactions but does NOT check if the destination workspace has an expired subscription usingshouldRestrictUserBillableActions:App/src/pages/iou/request/step/IOURequestEditReportCommon.tsx
Lines 250 to 259 in c9e36d3
Other parts of the codebase (like
MoneyRequestParticipantsSelector,FloatingActionButtonAndPopover,SettlementButton, etc.) correctly checkshouldRestrictUserBillableActionsbefore allowing billable actions, but this check is missing when moving expenses to a different report.What changes do you think we should make in order to solve the problem?
Add a check for
shouldRestrictUserBillableActionsinhandleSelectReportbefore allowing the expense to be moved:The same check should also be added to
handleCreateReport:What alternative solutions did you explore? (Optional)
[-]Expense - User can change the expense from SelfDM to a report in Expired Workspace[/-][+][$250] Expense - User can change the expense from SelfDM to a report in Expired Workspace[/+]melvin-bot commentedon Jan 26, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022015797782263639485
melvin-bot commentedon Jan 26, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 (
External)dukenv0307 commentedon Jan 27, 2026
@etCoderDysto'ss proposal looks good to me.
This is the first proposal that is sufficient to solve the problem.
🎀👀🎀 C+ reviewed
8 remaining items
melvin-bot commentedon Feb 3, 2026
📣 @etCoderDysto 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
dukenv0307 commentedon Feb 5, 2026
still waiting for @etCoderDystos's PR
etCoderDysto commentedon Feb 5, 2026
I will raise a PR today
etCoderDysto commentedon Feb 5, 2026
@dukenv0307 PR is ready for review
etCoderDysto commentedon Feb 26, 2026
Hi @greg-schroeder this ready for payment. Pr was deployed two weeks ago.
greg-schroeder commentedon Feb 26, 2026
Payment summary:
Author: @etCoderDysto - $250 - Upwork
Reviewer: @dukenv0307 - $250 - ND manual request
Approved for payments as outlined above ☝️
quinthar commentedon Mar 5, 2026
Approved $250 to @dukenv0307