---
id: change/bcapps/11425
type: change
title: "#11425 Bug 650137: [29.x] Expense Locations and Per-diem rules in configuration - Backport"
summary: Backport to 29.x that adds more expense locations and per-diem rules to the Expense Agent's default and demo data. Three new setup codeunits create the default expense locations, rule headers and rule conditions.
tier: official
language: en
tags:
  - feature
  - releases/29.x
  - bc29
  - codeunit expense event subscriber at
  - codeunit exp. attach. buffer handler
  - table expense
  - codeunit create expense report
  - codeunit release exp. report document
  - table expense rule condition
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:05:14.684Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 9b1f60ae1094ccf9e5b56dfaeafe5bc0a41a12bc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11425
    title: "microsoft/BCApps#11425: Bug 650137: [29.x] Expense Locations and Per-diem rules in configuration - Backport"
    date: "2026-09-15"
    commit: 9b1f60ae1094ccf9e5b56dfaeafe5bc0a41a12bc
    t: null
    quote: More expense locations and rules added to demo/default data.
links:
  learn: []
  objects:
    - object/codeunit/6914-at
    - object/codeunit/6952
    - object/table/6900
    - object/codeunit/6983
    - object/codeunit/6984
    - object/table/6926
    - object/table/6927
    - object/permissionset/6952
    - object/permissionset/6904
    - object/codeunit/6973
    - object/codeunit/7124
    - object/codeunit/7126
    - object/codeunit/7128
    - object/page/6996
    - object/page/6991
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11425
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11425
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-09-15T07:14:52Z"
author: BardurKnudsen
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 22
  additions: 2891
  deletions: 197
  al: 15
apps:
  - ExpenseAgent
  - ExpenseAgent_AT
objects_touched:
  - key: codeunit/6914
    page: codeunit/6914-at
    type: codeunit
    id: 6914
    name: Expense Event Subscriber AT
    app: ExpenseAgent_AT
    status: modified
  - key: codeunit/6952
    page: codeunit/6952
    type: codeunit
    id: 6952
    name: Exp. Attach. Buffer Handler
    app: ExpenseAgent
    status: modified
  - key: table/6900
    page: table/6900
    type: table
    id: 6900
    name: Expense
    app: ExpenseAgent
    status: modified
  - key: codeunit/6983
    page: codeunit/6983
    type: codeunit
    id: 6983
    name: Create Expense Report
    app: ExpenseAgent
    status: modified
  - key: codeunit/6984
    page: codeunit/6984
    type: codeunit
    id: 6984
    name: Release Exp. Report Document
    app: ExpenseAgent
    status: modified
  - key: table/6926
    page: table/6926
    type: table
    id: 6926
    name: Expense Rule Condition
    app: ExpenseAgent
    status: modified
  - key: table/6927
    page: table/6927
    type: table
    id: 6927
    name: Expense Rule Header
    app: ExpenseAgent
    status: modified
  - key: permissionset/6952
    page: permissionset/6952
    type: permissionset
    id: 6952
    name: Expense Agent - Objects
    app: ExpenseAgent
    status: modified
  - key: permissionset/6904
    page: permissionset/6904
    type: permissionset
    id: 6904
    name: Expense Management - Objects
    app: ExpenseAgent
    status: modified
  - key: codeunit/6973
    page: codeunit/6973
    type: codeunit
    id: 6973
    name: Create Expense Categories
    app: ExpenseAgent
    status: modified
  - key: codeunit/7124
    page: codeunit/7124
    type: codeunit
    id: 7124
    name: Create Expense Locations
    app: ExpenseAgent
    status: added
  - key: codeunit/7126
    page: codeunit/7126
    type: codeunit
    id: 7126
    name: Create Expense Rule Conditions
    app: ExpenseAgent
    status: added
  - key: codeunit/7128
    page: codeunit/7128
    type: codeunit
    id: 7128
    name: Create Expense Rule Headers
    app: ExpenseAgent
    status: added
  - key: page/6996
    page: page/6996
    type: page
    id: 6996
    name: Expense Agent Setup
    app: ExpenseAgent
    status: modified
  - key: page/6991
    page: page/6991
    type: page
    id: 6991
    name: Expense Agent Setup Wizard
    app: ExpenseAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 650137
systems:
  - development
quote: More expense locations and rules added to demo/default data.
joined_against:
  major: "29"
  commit: 1d24dd5ee2a734510f0556ccc69342d0e616db2f
---

# #11425 Bug 650137: [29.x] Expense Locations and Per-diem rules in configuration - Backport

> Backport to 29.x that adds more expense locations and per-diem rules to the Expense Agent's default and demo data. Three new setup codeunits create the default expense locations, rule headers and rule conditions.

[Pull request](https://github.com/microsoft/BCApps/pull/11425) · merged into `releases/29.x` (BC29) on 2026-09-15 by BardurKnudsen · 22 files (+2891 -197), 15 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Backport from main to releases/29.x
- New setup codeunits Create Expense Locations, Create Expense Rule Headers and Create Expense Rule Conditions
- Demo data codeunits for locations, rules and categories were reworked to use the new defaults
- Small changes to the Expense Agent Setup page, the setup wizard, the rule tables and permission sets
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6914 "Expense Event Subscriber AT"](../../objects/codeunit/6914-at.md), ExpenseAgent_AT (AT layer): modified
- [Codeunit 6952 "Exp. Attach. Buffer Handler"](../../objects/codeunit/6952.md), ExpenseAgent: modified
- [Table 6900 "Expense"](../../objects/table/6900.md), ExpenseAgent: modified
- [Codeunit 6983 "Create Expense Report"](../../objects/codeunit/6983.md), ExpenseAgent: modified
- [Codeunit 6984 "Release Exp. Report Document"](../../objects/codeunit/6984.md), ExpenseAgent: modified
- [Table 6926 "Expense Rule Condition"](../../objects/table/6926.md), ExpenseAgent: modified
- [Table 6927 "Expense Rule Header"](../../objects/table/6927.md), ExpenseAgent: modified
- [Permission set 6952 "Expense Agent - Objects"](../../objects/permissionset/6952.md), ExpenseAgent: modified
- [Permission set 6904 "Expense Management - Objects"](../../objects/permissionset/6904.md), ExpenseAgent: modified
- [Codeunit 6973 "Create Expense Categories"](../../objects/codeunit/6973.md), ExpenseAgent: modified
- [Codeunit 7124 "Create Expense Locations"](../../objects/codeunit/7124.md), ExpenseAgent: added
- [Codeunit 7126 "Create Expense Rule Conditions"](../../objects/codeunit/7126.md), ExpenseAgent: added
- [Codeunit 7128 "Create Expense Rule Headers"](../../objects/codeunit/7128.md), ExpenseAgent: added
- [Page 6996 "Expense Agent Setup"](../../objects/page/6996.md), ExpenseAgent: modified
- [Page 6991 "Expense Agent Setup Wizard"](../../objects/page/6991.md), ExpenseAgent: modified

## Context

- Work items: AB#650137
- Labels: AL: Apps (W1), Team: Finance
- Systems: development
- From the description: "More expense locations and rules added to demo/default data."

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).
