---
id: change/bcapps/9973
type: change
title: "#9973 [WHT]-Withholding Tax is not deducted from Expense Report lines based on the Expense Category during posting"
summary: Withholding tax is now deducted from expense report lines during posting based on the expense category. The change adds new objects in the ExpenseWithholdingTax app and touches Expense Report posting, the WithholdingTax employee codeunits and Gen. Jnl.-Post Line in all layers.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit expense report-post
  - permissionset exp. withholding tax
  - table wht exp. report buffer
  - codeunit wht exp. report post handler
  - codeunit wht expense category mgt.
  - pageextension wht general journal
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:08:45.380Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 782c296458f714846fd965267e85840c0fbb263b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9973
    title: "microsoft/BCApps#9973: [WHT]-Withholding Tax is not deducted from Expense Report lines based on the Expense Category during posting"
    date: "2026-08-17"
    commit: 782c296458f714846fd965267e85840c0fbb263b
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/6987
    - object/permissionset/7058
    - object/table/7059
    - object/codeunit/7057
    - object/codeunit/7056
    - object/pageextension/7058
    - object/codeunit/6790
    - object/codeunit/6791
    - object/codeunit/12
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9973
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9973
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-17T10:47:12Z"
author: ViditGupta1277
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - "AL: Apps (W1)"
  - "Build: scripts & configs"
  - From Fork
  - "Ownership: Needs Review"
  - "Team: Other"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 42
  additions: 578
  deletions: 17
  al: 19
apps:
  - Base Application
  - ExpenseAgent
  - ExpenseWithholdingTax
  - WithholdingTax
objects_touched:
  - key: codeunit/6987
    page: codeunit/6987
    type: codeunit
    id: 6987
    name: Expense Report-Post
    app: ExpenseAgent
    status: modified
  - key: permissionset/7058
    page: permissionset/7058
    type: permissionset
    id: 7058
    name: Exp. Withholding Tax
    app: ExpenseWithholdingTax
    status: added
  - key: table/7059
    page: table/7059
    type: table
    id: 7059
    name: WHT Exp. Report Buffer
    app: ExpenseWithholdingTax
    status: added
  - key: codeunit/7057
    page: codeunit/7057
    type: codeunit
    id: 7057
    name: WHT Exp. Report Post Handler
    app: ExpenseWithholdingTax
    status: added
  - key: codeunit/7056
    page: codeunit/7056
    type: codeunit
    id: 7056
    name: WHT Expense Category Mgt.
    app: ExpenseWithholdingTax
    status: modified
  - key: pageextension/7058
    page: pageextension/7058
    type: pageextension
    id: 7058
    name: WHT General Journal
    app: ExpenseWithholdingTax
    status: added
  - key: codeunit/6790
    page: codeunit/6790
    type: codeunit
    id: 6790
    name: WHT Employee Calculation
    app: WithholdingTax
    status: modified
  - key: codeunit/6791
    page: codeunit/6791
    type: codeunit
    id: 6791
    name: Wthldg Tax Empl. Subscribers
    app: WithholdingTax
    status: modified
  - key: codeunit/12
    page: codeunit/12
    type: codeunit
    id: 12
    name: Gen. Jnl.-Post Line
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 645160
systems:
  - finance
  - development
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9973 [WHT]-Withholding Tax is not deducted from Expense Report lines based on the Expense Category during posting

> Withholding tax is now deducted from expense report lines during posting based on the expense category. The change adds new objects in the ExpenseWithholdingTax app and touches Expense Report posting, the WithholdingTax employee codeunits and Gen. Jnl.-Post Line in all layers.

[Pull request](https://github.com/microsoft/BCApps/pull/9973) · merged into `main` (BC30) on 2026-08-17 by ViditGupta1277 (community contribution) · 42 files (+578 -17), 19 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Expense Report-Post codeunit updated so withholding tax is handled during expense report posting
- ExpenseWithholdingTax app gains a buffer table, a posting handler codeunit, a General Journal page extension and a permission set
- Gen. Jnl.-Post Line modified in W1 and every country layer, plus changes to the WithholdingTax employee calculation and subscriber codeunits
- Build configuration and AL-Go project settings updated across country projects
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6987 "Expense Report-Post"](../../objects/codeunit/6987.md), ExpenseAgent: modified
- [Permission set 7058 "Exp. Withholding Tax"](../../objects/permissionset/7058.md), ExpenseWithholdingTax: added
- [Table 7059 "WHT Exp. Report Buffer"](../../objects/table/7059.md), ExpenseWithholdingTax: added
- [Codeunit 7057 "WHT Exp. Report Post Handler"](../../objects/codeunit/7057.md), ExpenseWithholdingTax: added
- [Codeunit 7056 "WHT Expense Category Mgt."](../../objects/codeunit/7056.md), ExpenseWithholdingTax: modified
- [Page extension 7058 "WHT General Journal"](../../objects/pageextension/7058.md), ExpenseWithholdingTax: added
- [Codeunit 6790 "WHT Employee Calculation"](../../objects/codeunit/6790.md), WithholdingTax: modified
- [Codeunit 6791 "Wthldg Tax Empl. Subscribers"](../../objects/codeunit/6791.md), WithholdingTax: modified
- [Codeunit 12 "Gen. Jnl.-Post Line"](../../objects/codeunit/12.md), Base Application: modified

## Context

- Work items: AB#645160
- Labels: ADO: Sync, AL: Apps (W1), Build: scripts & configs, From Fork, Ownership: Needs Review, Team: Other
- Systems: finance, 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).
