code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#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 · 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

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