-
Notifications
You must be signed in to change notification settings - Fork 455
[Master] - Bug 645043: [Expense Agent] Expense User with missing Employee Posting Group is exposed through the Expense Users API and gets stuck at submission #10804
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -135,9 +135,12 @@ page 6918 "Expense Users API" | |
| // and blocks sign-in there. Apply the constraint in FilterGroup 2 so it | ||
| // AND-combines with any caller-supplied $filter on Employee No., rather | ||
| // than replacing it in the default FilterGroup 0. | ||
| // The same applies when the employee posting group was removed from the | ||
| // employee after the expense user was linked. | ||
| OriginalFilterGroup := Rec.FilterGroup(); | ||
| Rec.FilterGroup(2); | ||
| Rec.SetFilter("Employee No.", '<>%1', ''); | ||
| Rec.SetFilter("Employee Posting Group", '<>%1', ''); | ||
|
v-rohangarg20 marked this conversation as resolved.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if we should completely block expense report line creation or let the admin fix the posting group during posting. That way we only block the posting scenarios. However, the pro of this check is that the expense user config will be complete.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please seek Toto's opinion. |
||
| Rec.FilterGroup(OriginalFilterGroup); | ||
| end; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.