---
id: change/bcapps/9481
type: change
title: "#9481 [Withholding Tax] FCY documents get wrongly rounded to LCY precision …"
summary: Foreign currency withholding tax documents no longer incorrectly round amounts to local currency precision, fixing a calculation issue in withholding tax management.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit withholding tax mgmt.
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:00.615Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 9a0e2de64db8bbfec9ee7bd6bc898cd79fcc8620
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9481
    title: "microsoft/BCApps#9481: [Withholding Tax] FCY documents get wrongly rounded to LCY precision …"
    date: "2026-07-29"
    commit: 9a0e2de64db8bbfec9ee7bd6bc898cd79fcc8620
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/6785
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9481
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9481
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-29T12:11:29Z"
author: ViditGupta1277
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - "AL: Apps (W1)"
  - From Fork
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 134
  deletions: 10
  al: 1
apps:
  - WithholdingTax
objects_touched:
  - key: codeunit/6785
    page: codeunit/6785
    type: codeunit
    id: 6785
    name: Withholding Tax Mgmt.
    app: WithholdingTax
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 641864
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9481 [Withholding Tax] FCY documents get wrongly rounded to LCY precision …

> Foreign currency withholding tax documents no longer incorrectly round amounts to local currency precision, fixing a calculation issue in withholding tax management.

[Pull request](https://github.com/microsoft/BCApps/pull/9481) · merged into `main` (BC30) on 2026-07-29 by ViditGupta1277 (community contribution) · 2 files (+134 -10), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Withholding tax amounts in foreign currency documents were being rounded using local currency precision instead of the correct currency's precision
- Corrected the rounding logic in the withholding tax management codeunit
- Added test cases to verify correct rounding behavior for foreign currency transactions
- Addresses issue AB#641864
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6785 "Withholding Tax Mgmt."](../../objects/codeunit/6785.md), WithholdingTax: modified

## Context

- Work items: AB#641864
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Finance
- Systems: development

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