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-09-26][$250] Violations - "Receipt required" error message is missing from the expense details #47105
Version Number: 9.0.18-3 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 Issue reported by: Applause - Internal Team
ND: Set any value that's above "Receipt Required Amount" set in OD but under "Max Expense Amount"
Expected Result:
"Receipt required" error message should be visible
Actual Result:
"Receipt required" error message is missing from the expense details. The RBR shows in the LHN but the message is missing. Affects "Receipt Required Amount" amount set in OD Expenses tab and "Max Amount" set in a Category too
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Please re-state the problem that we are trying to solve in this issue.
"Receipt required" error message is missing from the expense details. The RBR shows in the LHN but the message is missing. Affects "Receipt Required Amount" amount set in OD Expenses tab and "Max Amount" set in a Category too
What is the root cause of that problem?
We do not handle the case the transaction have violation receiptRequired when displaying audit messages. In there:
What alternative solutions did you explore? (Optional)
If we don't want to display the audit result in case of receiptRequired violation, beside the main solution above, add an additional && !receiptRequiredViolation to:
changed the title [-]Violations - "Receipt required" error message is missing from the expense details[/-][+][$250] Violations - "Receipt required" error message is missing from the expense details[/+]on Aug 14, 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:
[@] The PR that introduced the bug has been identified. Link to the PR:
[@] 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:
[@] 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:
[@] Determine if we should create a regression test for this bug.
[@] 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.
[@bz] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
[@akinwale] The PR that introduced the bug has been identified. Link to the PR:
[@akinwale] 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:
[@akinwale] 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:
Not a regression.
[@akinwale] Determine if we should create a regression test for this bug.
[@akinwale] 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.
Regression Test Steps New Dot
Launch Expensify
Log in with a new Gmail account
Create a Workspace
Navigate to Old Dot by accessing Account settings > Cards & Domains
Old Dot
Navigate to Settings > Workspaces > Group > "Created workspace" > Expenses
Enable Expense Violations
Upgrade the Workspace to a Control workspace
Set "Receipt Required Amount" to any value under the value set in "Max Expense Amount"
Switch back to New Dot
New Dot
Navigate to the workspace chat
Submit a new manual expense with an amount that is more than "Receipt Required Amount" and less than "Max Expense Amount"
Verify that the Receipt Required error message is displayed for the expense.
Activity
melvin-bot commentedon Aug 8, 2024
Triggered auto assignment to @puneetlath (
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.dominictb commentedon Aug 8, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
"Receipt required" error message is missing from the expense details. The RBR shows in the LHN but the message is missing. Affects "Receipt Required Amount" amount set in OD Expenses tab and "Max Amount" set in a Category too
What is the root cause of that problem?
We do not handle the case the transaction have violation
receiptRequiredwhen displaying audit messages. In there:App/src/components/ReportActionItem/MoneyRequestView.tsx
Line 388 in 107e7ba
we just display the audit if
hasReceiptistruealthough we have violationreceiptRequired.What changes do you think we should make in order to solve the problem?
Need to create new variable
receiptRequiredViolation:then update
shouldShowAuditMessage:What alternative solutions did you explore? (Optional)
If we don't want to display the audit result in case of
receiptRequiredviolation, beside the main solution above, add an additional&& !receiptRequiredViolationto:App/src/components/ReportActionItem/MoneyRequestView.tsx
Line 434 in 107e7ba
cead22 commentedon Aug 12, 2024
@ShridharGoel this case should've been covered in the tests for this PR #45760, right? If so, can you take this over and fix it please?
melvin-bot commentedon Aug 12, 2024
@puneetlath Whoops! This issue is 2 days overdue. Let's get this updated quick!
melvin-bot commentedon Aug 14, 2024
@puneetlath Eep! 4 days overdue now. Issues have feelings too...
[-]Violations - "Receipt required" error message is missing from the expense details[/-][+][$250] Violations - "Receipt required" error message is missing from the expense details[/+]melvin-bot commentedon Aug 14, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01da9c71405c9b9ab9
melvin-bot commentedon Aug 14, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale (
External)34 remaining items
dominictb commentedon Oct 1, 2024
@puneetlath Since this is awaiting payment. Can you remove the Monthly and Reviewing labels and add Daily?
mallenexpensify commentedon Oct 2, 2024
Contributor: @dominictb paid $250 via Upwork
Contributor+: @akinwale paid $250 via Upwork
@akinwale plz complete the BZ checklist.
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:
mallenexpensify commentedon Oct 7, 2024
@akinwale plz complete the BZ checklist above
melvin-bot commentedon Oct 8, 2024
@puneetlath, @akinwale, @mallenexpensify, @dominictb Huh... This is 4 days overdue. Who can take care of this?
akinwale commentedon Oct 10, 2024
Not a regression.
Regression Test Steps
New Dot
Old Dot
New Dot
Do we agree 👍 or 👎?
akinwale commentedon Oct 10, 2024
@mallenexpensify Done!
mallenexpensify commentedon Oct 11, 2024
Thx @akinwale