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
[Due for payment 2025-08-26] [$250] Expense-Unreported per diem expense can be added to workspace chat without per diem but it fail #65402
Submit two per diem expenses to the workspace chat A.
Open the expense report.
Click More > Delete > Delete the report.
Go to workspace chat B.
Click + > Create report.
Click Add expense > Add unreported expense.
Select the unreported per diem expense.
Click Add to report.
Expected Result:
In Step 7, the unreported per diem expense should not appear in the list of unreported expense because the workspace does not have per diem rates.
Actual Result:
In Step 7, the unreported per diem expense appears in the list of unreported expense when the workspace does not have per diem rates.
In Step 8, after adding the unreported per diem expense to the report, the expense disappears and moves back to self DM. Hidden chat appears in LHN after it fails to move to the report.
What changes do you think we should make in order to solve the problem?
We should modify the getUnreportedTransactions function to filter out per diem transactions when the target workspace doesn't support per diem expenses
Please re-state the problem that we are trying to solve in this issue.
In Step 7, the unreported per diem expense appears in the list of unreported expense when the workspace does not have per diem rates.
In Step 8, after adding the unreported per diem expense to the report, the expense disappears and moves back to self DM. Hidden chat appears in LHN after it fails to move to the report.
What is the root cause of that problem?
We don't filter out the perdiem request if the workspace doesn't have per diem
Because the selector function depends on canSubmitPerDiemExpense, it's important to add this as a dependency here so the transactions can be updated when canSubmitPerDiemExpense is changed
Optionally, we can add canSubmitPerDiemExpense as a parameter of getUnreportedTransactions function
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
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.
changed the title [-]Expense-Unreported per diem expense can be added to workspace chat without per diem but it fail[/-][+][$250] Expense-Unreported per diem expense can be added to workspace chat without per diem but it fail[/+]on Jul 4, 2025
📣 @ryntgh You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖
Activity
melvin-bot commentedon Jul 3, 2025
Triggered auto assignment to @garrettmknight (
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.ryntgh commentedon Jul 3, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense-Unreported per diem expense can be added to workspace chat without per diem but it fail
What is the root cause of that problem?
We only filters transactions by their
reportIDbut doesn't check if per diem transactions are compatible with the target workspace's per diem policyApp/src/pages/AddUnreportedExpense.tsx
Lines 48 to 53 in 9e3b5bd
What changes do you think we should make in order to solve the problem?
We should modify the
getUnreportedTransactionsfunction to filter out per diem transactions when the target workspace doesn't support per diem expensesWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We could create test for
getUnreportedTransactionsif neededWhat alternative solutions did you explore? (Optional)
Instead of modifying the selector function itself, we could keep the selector pure and add the per diem filtering logic using
useMemothelullabyy commentedon Jul 3, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
In Step 7, the unreported per diem expense appears in the list of unreported expense when the workspace does not have per diem rates.
In Step 8, after adding the unreported per diem expense to the report, the expense disappears and moves back to self DM. Hidden chat appears in LHN after it fails to move to the report.
What is the root cause of that problem?
We don't filter out the perdiem request if the workspace doesn't have per diem
App/src/pages/AddUnreportedExpense.tsx
Lines 48 to 56 in 9e3b5bd
What changes do you think we should make in order to solve the problem?
App/src/pages/AddUnreportedExpense.tsx
Line 48 in 9e3b5bd
canSubmitPerDiemExpense, it's important to add this as a dependency here so thetransactionscan be updated whencanSubmitPerDiemExpenseis changedApp/src/pages/AddUnreportedExpense.tsx
Line 56 in 9e3b5bd
Optionally, we can add
canSubmitPerDiemExpenseas a parameter ofgetUnreportedTransactionsfunctionWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
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.
[-]Expense-Unreported per diem expense can be added to workspace chat without per diem but it fail[/-][+][$250] Expense-Unreported per diem expense can be added to workspace chat without per diem but it fail[/+]melvin-bot commentedon Jul 4, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021941191961149602900
melvin-bot commentedon Jul 4, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (
External)parasharrajat commentedon Jul 4, 2025
@thelullabyy Please do not post duplicate proposals. It is against our contributing policy.
@ryntgh's proposal looks good to me.
🎀 👀 🎀 C+ reviewed
40 remaining items
melvin-bot commentedon Aug 28, 2025
Current assignee @parasharrajat is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Aug 28, 2025
📣 @ryntgh You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖
garrettmknight commentedon Aug 28, 2025
Payment Summary:
ryntgh commentedon Aug 29, 2025
@garrettmknight Could you please send the offer to my account? I’m not able to apply to the job on my side
garrettmknight commentedon Sep 1, 2025
@ryntgh offer sent!
ryntgh commentedon Sep 1, 2025
Offer accepted, thanks!
garrettmknight commentedon Sep 2, 2025
Paid, closing
parasharrajat commentedon Sep 3, 2025
Payment requested as per #65402 (comment)
quinthar commentedon Sep 15, 2025
Approved $250 to @parasharrajat