---
id: change/bcapps/9886
type: change
title: '#9886 [Master]  Expense Report posting FCY rounding mismatch "Expense Report Posting Test" fail in Spain only (Source Currency Amount 649.97 vs 650'
summary: Fixed foreign currency rounding mismatch in expense report posting for Spain by improving how source currency amounts are calculated for employee payables balancing entries.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit gen. jnl.-post line
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:08:40.738Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 818f30d64f06477f2012a46f56c93fccc5e3b995
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9886
    title: 'microsoft/BCApps#9886: [Master]  Expense Report posting FCY rounding mismatch "Expense Report Posting Test" fail in Spain only (Source Currency Amount 649.97 vs 650'
    date: "2026-08-18"
    commit: 818f30d64f06477f2012a46f56c93fccc5e3b995
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/12
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9886
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9886
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-18T04:33:34Z"
author: sanjmaurya
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 57
  deletions: 21
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/12
    page: codeunit/12
    type: codeunit
    id: 12
    name: Gen. Jnl.-Post Line
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 644891
systems:
  - finance
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9886 [Master]  Expense Report posting FCY rounding mismatch "Expense Report Posting Test" fail in Spain only (Source Currency Amount 649.97 vs 650

> Fixed foreign currency rounding mismatch in expense report posting for Spain by improving how source currency amounts are calculated for employee payables balancing entries.

[Pull request](https://github.com/microsoft/BCApps/pull/9886) · merged into `main` (BC30) on 2026-08-18 by sanjmaurya · 3 files (+57 -21), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Corrects source currency amount derivation in expense report posting for Spain
- Updates condition logic to properly use journal line source currency amount when applicable
- Applies absolute value comparison for LCY amounts to handle sign differences
- Resolves test failures where source currency amounts were being recalculated unnecessarily
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 12 "Gen. Jnl.-Post Line"](../../objects/codeunit/12.md), Base Application (ES layer): modified

## Context

- Work items: AB#644891
- Labels: Team: Finance
- Systems: finance

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