-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$250] Reports - Responsive "Pay" button displayed on preview for unsubmitted expenses. #61149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Triggered auto assignment to @sakluger ( |
Job added to Upwork: https://www.upwork.com/jobs/~021917606620410984181 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ZhenjaHorbach ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.On the "Reports" page, a responsive "Pay" button is being incorrectly displayed in the preview for unsubmitted expenses when it should be showing a "Submit" button instead. The "Pay" button is also responsive despite the expenses not being marked as paid. What is the root cause of that problem?The root cause is in the What changes do you think we should make in order to solve the problem?We need to modify the
const isOpen = isOpenReport(report);
if (isExpense && isReportPayer && isPaymentsEnabled && !isOpen && isReportFinished && !hasAnyViolations && reimbursableSpend > 0) {
return true;
} DetailsThe issue occurs when delayed submissions are enabled and a workspace has an expense that has been already paid elsewhere before submitting two new expenses. The "Pay" button appears on the unsubmitted expenses in the Reports section instead of the "Submit" button. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We should add tests that cover:
What alternative solutions did you explore? (Optional)
|
Triggered auto assignment to @strepanier03 ( |
I will be OOO from May 5 - 16, so I have added another BZ member to watch over the issue while I'm out. Next steps: We just received our first proposal today, so the next step is for @ZhenjaHorbach to review. |
I will check the proposal tomorrow ! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@ZhenjaHorbach Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Not overdue |
@sakluger @strepanier03 @ZhenjaHorbach this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@ZhenjaHorbach this is pretty bad. Can you review that proposal today, please? |
Yes |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@Nick4dawin |
@Nick4dawin can you revert back to @ZhenjaHorbach here? |
@trjExpensify When I try to repro, instead of the pay button disappearing, it opens a new screen. Just to confirm, the fact the pay button is there at all is the issue, right? Since this was opened 2 weeks ago, I'm guessing something changed and now it opens a new screen instead of paying in one click. Screen.Recording.2025-05-15.at.10.18.34.AM.mov |
🚨 Edited by proposal-police: This proposal was edited at 2025-05-15 13:32:15 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Reports - Responsive "Pay" button displayed on preview for unsubmitted expenses. What is the root cause of that problem?We return pay action if canIOUBePaid here Lines 422 to 423 in 731370b
canIOUBePaid should not return true for open expense report Line 8896 in 731370b
but the problem is we only assume isOpenExpeseReport if the chatReport passed is policy expense chat Line 8887 in 731370b
So when sometimes the data from search lack chatReport (in my case it is empty object) isPolicyExpenseChat will become false
What changes do you think we should make in order to solve the problem?We should not add isPolicyExpenseChat in the condition the fact that the iouReport is expense report by itself will indirectly assert that the chat report is policy expense chat
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can add a test for What alternative solutions did you explore? (Optional) |
Yeah, it should be a |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.1.38-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 - Android 12 - Chrome / Windows 10 - Chrome
App Component: Money Requests
Action Performed:
Prerequisite: Delayed submissions enabled.
Prerequisite 2: Workspace should have an expense that has been already paid elsewhere before submitting the two new expenses.
9, Tap on "Pay"
Expected Result:
Expenses preview on "Reports" should display the word "Submit" for unsubmitted expenses.
Actual Result:
"Pay" button is displayed on preview for unsubmitted expenses on "Expense Reports" section. The button is also responsive, despite the expenses not being marked as paid after tapping on it.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6817278_1745991719627.Responsive.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ZhenjaHorbachThe text was updated successfully, but these errors were encountered: