#9865 [Main] - 'Greater Than' Withholding Tax Calculation Rule is not app…
The withholding tax calculation now respects the configured calculation rule (Less than, Greater than, Equal to, etc.) instead of hard-coding comparisons, fixing incorrect withholding tax creation or suppression across different rule types.
- 4files
- 3AL files
- 3objects
Pull request · merged into main (BC30) on 2026-08-19 by ViditGupta1277 (community contribution) · 4 files (+274 -7), 3 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Multiple threshold checks hard-coded ‘Less than’ comparisons regardless of the configured calculation rule setting
- Added reusable IsWithholdingTaxApplicable procedure in Withholding Tax Mgmt to make all rule-aware decisions consistent
- Two sites previously used signed amount comparisons; now all sites evaluate absolute amounts to match intended behavior
- Negative vendor invoice amounts are no longer unconditionally treated as below minimum
- Comprehensive test coverage for Greater than rule, negative amounts, and Less than rule across invoice and credit memo paths
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 6786 “Withholding Tax Jnl Subscriber”, WithholdingTax: modified
- Codeunit 6785 “Withholding Tax Mgmt.”, WithholdingTax: modified
- Codeunit 6784 “Wthldg Tax Purch. Subscribers”, WithholdingTax: modified
Context
- Work items: AB#642326
- Labels: ADO: Sync, AL: Apps (W1), From Fork, 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).