-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-06-11] [$250] Expense - Undefined displayed in violation message instead of amount when tax enabled #41771
Comments
Triggered auto assignment to @kevinksullivan ( |
@kevinksullivan 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 |
We think that this bug might be related to #wave-collect - Release 1 |
Job added to Upwork: https://www.upwork.com/jobs/~016679daf410f80dd0 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
feels like collect polish to me, so moving it to that project. |
Could anyone provide the steps for enabling the recondition - "user is a member of a collect policy with enabled taxes"? |
@kevinksullivan, @fedirjh Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Based on #42173:
We have 2 issues:
What is the root cause of that problem?
App/src/components/ReportActionItem/MoneyRequestView.tsx Lines 408 to 409 in bd6595f
App/src/hooks/useViolations.ts Line 53 in 57751f1
What changes do you think we should make in order to solve the problem?Latest expectation:
Waiting for expected behavior confirmation
const getViolationsForField = (field, data?, types = ['violation']) => {
const fieldViolations = violationsByField.get(field) ?? [];
const currentViolations = fieldViolations.filter((violation) => types?.includes(violation.type));
...
}
getViolationsForField(field, data, ['violation', 'notice']); |
@kevinksullivan Could you please update the OP to reflect the complete expected results outlined in #42173? @JmillsExpensify |
@roitman-g Please check this thread: https://expensify.slack.com/archives/C01GTK53T8Q/p1708422807620599 |
@gijoe0295 Did you manage to replicate this issue? I'm unable to replicate it. |
@fedirjh I enabled I guess both the submitter and the approver need to be added to violations beta in the backend. Maybe @kevinksullivan could help. My test emails are |
@gijoe0295 Yes, that's right. I was only able to reproduce the issue after being added to the violations beta. cc @cead22 Could you please take a look at this issue? It seems like the backend does not return the correct data. @gijoe0295 has asked a valid question in #41771 (comment). Can you also review it? ![]() |
You're right. I'll submit a back end fix to send |
Looking closer, this is a notice that is being shown under the receipt, because I think we're showing all notices in that place, but maybe what we need to do here right now is to not show that. What do you think @JmillsExpensify Also, I think the setup for this isn't about taxes, but about having auto approval enabled and an auto approval limit set |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
We already covered App/src/components/ReportActionItem/MoneyRequestView.tsx Lines 396 to 397 in 182fb9f
And ![]() So I added notice type violation condition to the filter here. |
Should we remove this line instead |
@cead22 Thanks, that sounds much better! What's about |
|
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.78-5 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-06-11. 🎊 For reference, here are some details about the assignees on 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:
|
@fedirjh @kevinksullivan We're good for payment. |
Hey @fedirjh can you finish out the steps above? |
Payments made, just waiting on @fedirjh for final steps and then we're all set |
Moving to weekly since we're only held on steps here. |
BugZero Checklist:
Regression Test Proposal
|
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: 1.4.71.0
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
Action Performed:
recondition: user is a member of a collect policy with enabled taxes
and log in as member
Expected Result:
The violation message includes exceeding amount
Actual Result:
The violation message "Expense exceeds auto approval limit of undefined" is displayed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6473730_1715085447589.Recording__459.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @kevinksullivanThe text was updated successfully, but these errors were encountered: