#13721 [Expense Agent] Create per diem line when approving travel requests with Per Diem Included
When approving travel requests with Per Diem Included, the system now automatically creates a per diem expense line for each traveler based on matching expense rules, with blocking validation if no appropriate rule is found.
- 11files
- 7AL files
- 7objects
Pull request · merged into main (BC30) on 2026-11-06 by claudiuciumedean · 11 files (+1179 -30), 7 AL · feature · tier official · reviewed (checked by Opus)
What changed
- Approving a Per Diem Included travel request adds a per diem line to each traveler’s newly created expense report; existing reports are untouched
- The category is the first active Per Diem category whose rule matches the expense location and is effective on the trip start date
- Approval fails with an error, leaving the request Released, if no rule matches or the rule has no Daily Rate condition
- A per diem calculation of None still creates a zero-amount line
- Per diem lines are exempt from receipt and merchant requirements like Mileage, via ExpenseRuleValidation.IsMerchantReceiptRequirementApplicable
- Behaviour changes for users or extensions.
AL objects touched
- Query 7082 “Expense Per Diem Locations”, ExpenseAgent: modified
- Table extension 6908 “Expense Spend Request”, ExpenseAgent: modified
- Table 6906 “Expense Report Header”, ExpenseAgent: modified
- Page 6901 “Expense Rule Card”, ExpenseAgent: modified
- Table 6927 “Expense Rule Header”, ExpenseAgent: modified
- Codeunit 6908 “Expense Event Subscriber”, ExpenseAgent: modified
- Codeunit 6902 “Expense Rule Validation”, ExpenseAgent: modified
Also merged into
- #13788 into
releases/29.xon 2026-11-09
Context
- Work items: AB#656076
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot
- From the description: “When a travel request with Per Diem Included is approved, each traveler’s newly created expense report now gets a per diem line automatically.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Set Up Expense Categories, Rules, and Policies — possibly related: touches Page 6901 “Expense Rule Card”
- Manage Travel Requests in Business Central — possibly related: Documents travel request management and approval workflows. (model-linked)
- Set Up Per Diem and Mileage Allowances — possibly related: Documents per diem allowances setup and calculation in expense management. (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).