code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

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

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