---
id: change/bcapps/13058
type: change
title: "#13058 Bug 656064: Expense Agent: Itemization table holds unrounded values, leading to rounding errors. Also missing currency code."
summary: Expense itemization records now store properly rounded currency amounts and include the missing currency code to prevent rounding errors in expense calculations.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page expense
  - page expense itemizations
  - page expenses
  - table expense
  - table expense itemization
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-10-23T01:11:43.908Z"
  flags: []
generated:
  at: "2026-11-10T00:14:28.203Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: e36310c59cf287cf49c90f9e946a8879e88318fc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13058
    title: "microsoft/BCApps#13058: Bug 656064: Expense Agent: Itemization table holds unrounded values, leading to rounding errors. Also missing currency code."
    date: "2026-10-21"
    commit: e36310c59cf287cf49c90f9e946a8879e88318fc
    t: null
    quote: Rounding of currency amounts
links:
  learn: []
  objects:
    - object/page/6988
    - object/page/6975
    - object/page/6989
    - object/table/6900
    - object/table/6902
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-create-expenses
      title: Create and Manage Expenses in Business Central
      label: possibly related
      why: touches Page 6988 "Expense"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-mileage-rate-setup
      title: Set Up Mileage Rates for Expense Management
      label: possibly related
      why: touches Page 6988 "Expense"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent
      title: Expense Agent Overview in Business Central
      label: possibly related
      why: Documents Expense Agent feature with itemization and currency handling that this fix addresses.
      by: model
number: 13058
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13058
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-21T10:52:32Z"
author: BardurKnudsen
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 7
  additions: 59
  deletions: 32
  al: 5
apps:
  - ExpenseAgent
objects_touched:
  - key: page/6988
    page: page/6988
    type: page
    id: 6988
    name: Expense
    app: ExpenseAgent
    status: modified
  - key: page/6975
    page: page/6975
    type: page
    id: 6975
    name: Expense Itemizations
    app: ExpenseAgent
    status: modified
  - key: page/6989
    page: page/6989
    type: page
    id: 6989
    name: Expenses
    app: ExpenseAgent
    status: modified
  - key: table/6900
    page: table/6900
    type: table
    id: 6900
    name: Expense
    app: ExpenseAgent
    status: modified
  - key: table/6902
    page: table/6902
    type: table
    id: 6902
    name: Expense Itemization
    app: ExpenseAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 656064
systems:
  - copilot
quote: Rounding of currency amounts
joined_against:
  major: "30"
  commit: eb2bfe5258a473c969a6b85cdc98ce8524408706
---

# #13058 Bug 656064: Expense Agent: Itemization table holds unrounded values, leading to rounding errors. Also missing currency code.

> Expense itemization records now store properly rounded currency amounts and include the missing currency code to prevent rounding errors in expense calculations.

[Pull request](https://github.com/microsoft/BCApps/pull/13058) · merged into `main` (BC30) on 2026-10-21 by BardurKnudsen · 7 files (+59 -32), 5 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Itemization table values are now properly rounded to match currency decimal places
- Currency code field added to expense itemization records
- Rounding logic applied when storing expense amounts in itemization table
- Fixes calculation discrepancies caused by accumulated unrounded values
- Test adjustments made to reflect rounding corrections
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 6988 "Expense"](../../objects/page/6988.md), ExpenseAgent: modified
- [Page 6975 "Expense Itemizations"](../../objects/page/6975.md), ExpenseAgent: modified
- [Page 6989 "Expenses"](../../objects/page/6989.md), ExpenseAgent: modified
- [Table 6900 "Expense"](../../objects/table/6900.md), ExpenseAgent: modified
- [Table 6902 "Expense Itemization"](../../objects/table/6902.md), ExpenseAgent: modified

## Context

- Work items: AB#656064
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot
- From the description: "Rounding of currency amounts"

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Create and Manage Expenses in Business Central](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-create-expenses) — possibly related: touches Page 6988 "Expense"
- [Set Up Mileage Rates for Expense Management](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-mileage-rate-setup) — possibly related: touches Page 6988 "Expense"
- [Expense Agent Overview in Business Central](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent) — possibly related: Documents Expense Agent feature with itemization and currency handling that this fix addresses. (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).
