#14346 [Main] Expense Management: add partner extension events and make Create Expense Report public
Expense management adds integration events for partners to customize expense report lines and posting without friend access, and makes the Create Expense Report codeunit public with a focused API surface.
- 6files
- 4AL files
- 4objects
Pull request · merged into main (BC30) on 2026-11-23 by t-prda · 6 files (+627 -7), 4 AL · feature · tier official · reviewed (checked by Opus)
What changed
- Seven new integration events cover copying expense fields to report lines, posting operations, per diem calculations, and post-posting follow-up actions
- Create Expense Report codeunit changed from internal to public, exposing only the AddSingleExpenseToExpenseReport procedure while keeping UI methods internal
- Integration events added to Expense Report-Post, Expense Ledger Entry, and Expense Per Diem Calculation objects to support localization and partner customizations
- Existing events like OnAfterReleaseExpense and OnCheckExpenseReportPostRestrictions are reused for consistency
- Per diem calculation refactored to delegate to a local procedure for event raising without changing behavior for non-subscribers
AL objects touched
- Codeunit 6983 “Create Expense Report”, ExpenseAgent: modified
- Codeunit 6987 “Expense Report-Post”, ExpenseAgent: modified
- Table 6912 “Expense Ledger Entry”, ExpenseAgent: modified
- Codeunit 6911 “Expense Per Diem Calculation”, ExpenseAgent: modified
Context
- Work items: AB#659840
- Labels: AL: Apps (W1), ExpenseManagement, Team: Finance
- Systems: copilot
- From the description: “adds a minimal set of integration events, each tied to a scenario, so partners can customize expense report lines and posting”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Post Expense Reports in Business Central — possibly related: Posting expense reports to general ledger with calculation and posting logic. (model-linked)
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).