---
id: change/bcapps/10058
type: change
title: "#10058 [Master]-Withholding Tax Posting generates Unbalanced G/L Entries when Multiple Withholding Tax Rates are used on one Purchase Invoice."
summary: The withholding tax posting calculation is corrected to prevent unbalanced G/L entries when multiple withholding tax rates apply to a single purchase invoice.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit wthldg tax purch. subscribers
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:43.515Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 18f2e04dfea4b75f7720f423f06728aced2d343e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10058
    title: "microsoft/BCApps#10058: [Master]-Withholding Tax Posting generates Unbalanced G/L Entries when Multiple Withholding Tax Rates are used on one Purchase Invoice."
    date: "2026-08-11"
    commit: 18f2e04dfea4b75f7720f423f06728aced2d343e
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/6784
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10058
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10058
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-11T12:05:38Z"
author: neeleshsinghal
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: 1
  additions: 4
  deletions: 2
  al: 1
apps:
  - WithholdingTax
objects_touched:
  - key: codeunit/6784
    page: codeunit/6784
    type: codeunit
    id: 6784
    name: Wthldg Tax Purch. Subscribers
    app: WithholdingTax
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646139
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10058 [Master]-Withholding Tax Posting generates Unbalanced G/L Entries when Multiple Withholding Tax Rates are used on one Purchase Invoice.

> The withholding tax posting calculation is corrected to prevent unbalanced G/L entries when multiple withholding tax rates apply to a single purchase invoice.

[Pull request](https://github.com/microsoft/BCApps/pull/10058) · merged into `main` (BC30) on 2026-08-11 by neeleshsinghal · 1 file (+4 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixes unbalanced G/L entries when one purchase invoice uses several withholding tax rates
- The change is in the Wthldg Tax Purch. Subscribers codeunit of the WithholdingTax app
- Small change of 4 added and 2 removed lines in one file, with no tests included
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6784 "Wthldg Tax Purch. Subscribers"](../../objects/codeunit/6784.md), WithholdingTax: modified

## Context

- Work items: AB#646139
- Labels: AL: Apps (W1), 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).
