---
id: change/bcapps/14136
type: change
title: "#14136 [Main] - Bug 659462: [Expense Agent]  Add configurable rounding precision for partial-day per diem"
summary: The Expense Agent now supports configurable rounding precision for partial-day per diem calculations, allowing administrators to set how fractional daily amounts are rounded.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit expense per diem calculation
  - page exp. per diem partial settings
  - page expense agent setup
  - page expense agent setup wizard
  - table expense agent setup
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-11-25T01:04:58.447Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ad1340a55a0ca918488f71e180781e5020c33881
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14136
    title: "microsoft/BCApps#14136: [Main] - Bug 659462: [Expense Agent]  Add configurable rounding precision for partial-day per diem"
    date: "2026-11-24"
    commit: ad1340a55a0ca918488f71e180781e5020c33881
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/6911
    - object/page/6994
    - object/page/6996
    - object/page/6991
    - object/table/6930
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent-configuration-page
      title: Set Up Expense Agent in Business Central
      label: possibly related
      why: Documents Expense Agent setup configuration including per diem calculation settings.
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-per-diem-mileage
      title: Set Up Per Diem and Mileage Allowances
      label: possibly related
      why: Details per diem allowance calculation methods for partial days that this fix improves.
      by: model
number: 14136
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14136
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-24T16:11:56Z"
author: v-rohangarg20
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: 6
  additions: 149
  deletions: 3
  al: 5
apps:
  - ExpenseAgent
objects_touched:
  - key: codeunit/6911
    page: codeunit/6911
    type: codeunit
    id: 6911
    name: Expense Per Diem Calculation
    app: ExpenseAgent
    status: modified
  - key: page/6994
    page: page/6994
    type: page
    id: 6994
    name: Exp. Per Diem Partial Settings
    app: ExpenseAgent
    status: modified
  - 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
  - key: table/6930
    page: table/6930
    type: table
    id: 6930
    name: Expense Agent Setup
    app: ExpenseAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 659462
systems:
  - copilot
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14136 [Main] - Bug 659462: [Expense Agent]  Add configurable rounding precision for partial-day per diem

> The Expense Agent now supports configurable rounding precision for partial-day per diem calculations, allowing administrators to set how fractional daily amounts are rounded.

[Pull request](https://github.com/microsoft/BCApps/pull/14136) · merged into `main` (BC30) on 2026-11-24 by v-rohangarg20 · 6 files (+149 -3), 5 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New rounding precision setting added to the Expense Agent Setup table and page
- The partial-day per diem settings page exposes the rounding setting
- The per diem calculation applies the configured rounding to partial-day amounts
- Small related change in the Expense Agent Setup Wizard
- Tests added for the rounding behavior
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6911 "Expense Per Diem Calculation"](../../objects/codeunit/6911.md), ExpenseAgent: modified
- [Page 6994 "Exp. Per Diem Partial Settings"](../../objects/page/6994.md), ExpenseAgent: modified
- [Page 6996 "Expense Agent Setup"](../../objects/page/6996.md), ExpenseAgent: modified
- [Page 6991 "Expense Agent Setup Wizard"](../../objects/page/6991.md), ExpenseAgent: modified
- [Table 6930 "Expense Agent Setup"](../../objects/table/6930.md), ExpenseAgent: modified

## Context

- Work items: AB#659462
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot

## 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 Agent in Business Central](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent-configuration-page) — possibly related: Documents Expense Agent setup configuration including per diem calculation settings. (model-linked)
- [Set Up Per Diem and Mileage Allowances](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-per-diem-mileage) — possibly related: Details per diem allowance calculation methods for partial days that this fix improves. (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).
