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
[HOLD for payment 2024-02-19] [$500] IOU -Deleting submitted report shows unexpected error with amount crossed out #34538
Version Number: 1.4.25 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Action Performed:
Launch app
Login employee account
Tap on employee workspace chat
Tap plus icon near compose-- request money manual
Enter an amount and tap next
Enter merchant field
Tap request
Tap submit
Open submitted IOU to open IOU detail page
Tap 3 dots on top right and tap delete and confirm delete request
Expected Result:
User must not be shown option/allowed to delete submitted report & error should not be displayed with amount crossed out
Actual Result:
In employee WS, create manual request and submit it. User shown option/allowed to delete submitted report and deleted report shows unexpected error with amount crossed out
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.39-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@s77rt] The PR that introduced the bug has been identified. Link to the PR:
[@s77rt] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@s77rt] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@s77rt] Determine if we should create a regression test for this bug.
[@s77rt] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@sakluger] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Activity
[-]IOU - Android-Deleting submitted report shows unexpected error with amount crossed out[/-][+][$500] IOU - Android-Deleting submitted report shows unexpected error with amount crossed out[/+]melvin-bot commentedon Jan 15, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0165e8908305facf78
melvin-bot commentedon Jan 15, 2024
Triggered auto assignment to @sakluger (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jan 15, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav (
External)bernhardoj commentedon Jan 16, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Deleting a submitted money request gives an error.
What is the root cause of that problem?
We are not hiding the delete button when the money request is submitted. We only hide it if it's approved or settled.
App/src/components/MoneyRequestHeader.js
Line 88 in 8e2fb67
What changes do you think we should make in order to solve the problem?
We need to hide it if the money request is submitted. To know whether it's submitted or not, we can use the same check-in #32796, specifically:
App/src/libs/ReportUtils.ts
Lines 3815 to 3818 in 8e2fb67
We only check the submitted status (
isDraftExpenseReporttrue means open, not submitted) in an expense report that is linked with a paid policy.We need to apply this check in both MoneyRequestHeader and in ReportUtils.canDeleteReportAction.
App/src/libs/ReportUtils.ts
Lines 1139 to 1141 in 8e2fb67
App/src/components/MoneyRequestHeader.js
Lines 115 to 119 in 8e2fb67
0xmiroslav commentedon Jan 18, 2024
@sakluger once submitted (but not approved yet), request should not be deletable? I believe so but just to confirm
melvin-bot commentedon Jan 22, 2024
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
sakluger commentedon Jan 23, 2024
I'm checking on correct expected behavior in Slack: https://expensify.slack.com/archives/C02MW39LT9N/p1706052284329559
35 remaining items
[-][$500] IOU -Deleting submitted report shows unexpected error with amount crossed out[/-][+][HOLD for payment 2024-02-19] [$500] IOU -Deleting submitted report shows unexpected error with amount crossed out[/+]melvin-bot commentedon Feb 12, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Feb 12, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.39-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-02-19. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Feb 12, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
s77rt commentedon Feb 13, 2024
Regression Test Proposal
Requires a paid workspace e.g. collect workspace
sakluger commentedon Feb 20, 2024
Thanks @s77rt for completing the BZ checklist ahead of time!
Everyone has been paid out. 🙇