#11431 [Master] - [Expense Management] Move missing Employee Posting Group validation to rule violation
The Expense Agent now validates Employee Posting Group through rule violations instead of hard errors, allowing users to review and resolve missing posting groups gracefully without getting stuck during submission.
- 5files
- 4AL files
- 4objects
Pull request · merged into main (BC30) on 2026-09-15 by v-rohangarg20 · 5 files (+231 -5), 4 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Moved Employee Posting Group validation from field-level hard errors to rule violation logic in Expense Rule Validation codeunit
- Added automatic line-level rule re-evaluation when Employee Posting Group is updated on Expense Report Header
- Exposed Employee Posting Group field on the Expense Report page
- Added comprehensive test coverage for the rule violation behavior
- Behaviour changes for users or extensions.
AL objects touched
- Table 6900 “Expense”, ExpenseAgent: modified
- Page 6910 “Expense Report”, ExpenseAgent: modified
- Table 6906 “Expense Report Header”, ExpenseAgent: modified
- Codeunit 6902 “Expense Rule Validation”, ExpenseAgent: modified
Context
- Work items: AB#645043
- Labels: AL: Apps (W1), Team: Finance
- Systems: development
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).