---
id: change/bcapps/9515
type: change
title: "#9515 [Master] - 'Greater Than' Withholding Tax Calculation Rule is not applied correctly in Withholding Tax Posting Setup."
summary: The 'Greater Than' withholding tax calculation rule and other rule options are now applied correctly in withholding tax posting setup by replacing hard-coded threshold checks with a rule-aware procedure.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit withholding tax jnl subscriber
  - codeunit withholding tax mgmt.
  - codeunit wthldg tax purch. subscribers
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:59.557Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 6e5e7ab0ea26611173f1e0fe28170c7ada2096dc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9515
    title: "microsoft/BCApps#9515: [Master] - 'Greater Than' Withholding Tax Calculation Rule is not applied correctly in Withholding Tax Posting Setup."
    date: "2026-07-20"
    commit: 6e5e7ab0ea26611173f1e0fe28170c7ada2096dc
    t: null
    quote: the other rule options (Greater than, etc.) were never honored
links:
  learn: []
  objects:
    - object/codeunit/6786
    - object/codeunit/6785
    - object/codeunit/6784
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9515
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9515
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-20T09:24:11Z"
author: DhavalMore88
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: 4
  additions: 117
  deletions: 7
  al: 3
apps:
  - WithholdingTax
objects_touched:
  - key: codeunit/6786
    page: codeunit/6786
    type: codeunit
    id: 6786
    name: Withholding Tax Jnl Subscriber
    app: WithholdingTax
    status: modified
  - key: codeunit/6785
    page: codeunit/6785
    type: codeunit
    id: 6785
    name: Withholding Tax Mgmt.
    app: WithholdingTax
    status: modified
  - 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:
  - 642326
systems:
  - development
quote: the other rule options (Greater than, etc.) were never honored
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9515 [Master] - 'Greater Than' Withholding Tax Calculation Rule is not applied correctly in Withholding Tax Posting Setup.

> The 'Greater Than' withholding tax calculation rule and other rule options are now applied correctly in withholding tax posting setup by replacing hard-coded threshold checks with a rule-aware procedure.

[Pull request](https://github.com/microsoft/BCApps/pull/9515) · merged into `main` (BC30) on 2026-07-20 by DhavalMore88 (community contribution) · 4 files (+117 -7), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Withholding tax was created or suppressed wrongly when the calculation rule was not 'Less than'
- New ShouldCreateWithholdingTax procedure in Withholding Tax Mgmt. respects the configured Wthldg. Tax Calculation Rule
- Hard-coded Abs(Amount) < Min. Inv. Amount checks replaced in the journal subscriber, the management codeunit and the purchase subscriber codeunits
- Tests added in the withholding tax test codeunit
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6786 "Withholding Tax Jnl Subscriber"](../../objects/codeunit/6786.md), WithholdingTax: modified
- [Codeunit 6785 "Withholding Tax Mgmt."](../../objects/codeunit/6785.md), WithholdingTax: modified
- [Codeunit 6784 "Wthldg Tax Purch. Subscribers"](../../objects/codeunit/6784.md), WithholdingTax: modified

## Context

- Work items: AB#642326
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Finance
- Systems: development
- From the description: "the other rule options (Greater than, etc.) were never honored"

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