---
id: change/bcapps/10869
type: change
title: "#10869 [29.x]-[WHT] Inconsistency with the Payments"
summary: Backport to 29.x of a fix for withholding tax inconsistency with payments, changing the Withholding Tax Mgmt. codeunit. A test checks that posting a payment without a Purchases journal template fails with the expected missing template error.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - codeunit withholding tax mgmt.
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:05:06.605Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 2de6cf9f9d559427104793b3b1f33c310db0c193
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10869
    title: "microsoft/BCApps#10869: [29.x]-[WHT] Inconsistency with the Payments"
    date: "2026-09-17"
    commit: 2de6cf9f9d559427104793b3b1f33c310db0c193
    t: null
    quote: Corrected the indentation and procedure closing structure.
links:
  learn: []
  objects:
    - object/codeunit/6785
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10869
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10869
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-09-17T16:51:18Z"
author: ViditGupta1277
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: 2
  additions: 59
  deletions: 1
  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:
  - 648516
systems:
  - development
quote: Corrected the indentation and procedure closing structure.
joined_against:
  major: "29"
  commit: 1d24dd5ee2a734510f0556ccc69342d0e616db2f
---

# #10869 [29.x]-[WHT] Inconsistency with the Payments

> Backport to 29.x of a fix for withholding tax inconsistency with payments, changing the Withholding Tax Mgmt. codeunit. A test checks that posting a payment without a Purchases journal template fails with the expected missing template error.

[Pull request](https://github.com/microsoft/BCApps/pull/10869) · merged into `releases/29.x` (BC29) on 2026-09-17 by ViditGupta1277 · 2 files (+59 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Withholding Tax Mgmt. codeunit 6785 is modified in releases/29.x to address the payments inconsistency bug
- Test added that verifies posting fails when the Purchases journal template is missing
- Description only mentions test formatting, which understates the app code change
- Behaviour changes for users or extensions.

## AL objects touched

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

## Context

- Work items: AB#648516
- Labels: AL: Apps (W1), Team: Finance
- Systems: development
- From the description: "Corrected the indentation and procedure closing structure."

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