---
id: change/bcapps/10545
type: change
title: "#10545 [Master] - Bug 647253: [WHT] Inconsistency with the Payments"
summary: Fixes bug 647253 about withholding tax inconsistency with payments by 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
  - main
  - bc30
  - 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: b943a95a564b587937033d63e8a33e09eaf6ee00
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10545
    title: "microsoft/BCApps#10545: [Master] - Bug 647253: [WHT] Inconsistency with the Payments"
    date: "2026-09-17"
    commit: b943a95a564b587937033d63e8a33e09eaf6ee00
    t: null
    quote: Corrected the indentation and procedure closing structure.
links:
  learn: []
  objects:
    - object/codeunit/6785
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10545
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10545
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-17T18:24:31Z"
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: 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:
  - 647253
systems:
  - development
quote: Corrected the indentation and procedure closing structure.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10545 [Master] - Bug 647253: [WHT] Inconsistency with the Payments

> Fixes bug 647253 about withholding tax inconsistency with payments by 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/10545) · merged into `main` (BC30) on 2026-09-17 by ViditGupta1277 (community contribution) · 2 files (+59 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Withholding Tax Mgmt. codeunit 6785 is modified 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#647253
- Labels: ADO: Sync, AL: Apps (W1), From Fork, 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).
