Open lanitochka17 opened 1 week ago
Triggered auto assignment to @VictoriaExpensify (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.
@VictoriaExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
The first approver does not have an option to unapprove.
When there are multiple approvers in the workflow, if the first approver approves the request, the iouReport.managerID will be updated to the next approver. If the last approver approves the request, the iouReport.managerID will remain set to the last approver
As a result, ReportUtils.isReportManager(report) will return false since the current manager ID is now set to the next approver
Additionally, ReportUtils.isReportApproved(report) will return false because the request still requires approval from other approvers.
We need to update the condition to allow users to unapprove requests in two separate cases:
After implementing the fix on the front end, we also need to update the API to ensure everything functions correctly
Yeah Approver A should have the ability to unapproved the expense, but I think they should only have this option up until it is approved by Approver B - believe that's how Classic logic works. Checking on this.
Job added to Upwork: https://www.upwork.com/jobs/~021843475137047948222
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (External
)
@alitoshmatov Currently, if an expense is awaiting approval from approver B, and approver A attempts to unapprove the expense, the backend throws an error: 'Only managers and admins can unapprove.'
I am not sure if the feature that "Allow approver A to unapprove" can be supported by BE, can you or any internal member confirm?
@VictoriaExpensify, @alitoshmatov Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.45-2 Reproducible in staging?: Y Reproducible in production?: Y 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): biruknew45+1399@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The first approver should have the option to unapprove the expense, similar to the second approver
Actual Result:
There is no option for the first approver to unapprove the expense in the header, but the second approver has
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/d8b5a7d2-e110-4df2-ba7a-a8fbbf8c0623
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @alitoshmatov