---
id: object/table/6786
type: object
title: Table 6786 "Withholding Tax Posting Setup"
summary: Table 6786 "Withholding Tax Posting Setup" in WithholdingTax (Microsoft.WithholdingTax). 21 fields, 2 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - withholdingtax
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 398dc87961b6b9b9d4ce3985f43c3e4eaada81edc7361cfaf03b97b433b831ae
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/WithholdingTax/app/src/Purchase/Setup/WithholdingTaxPostingSetup.Table.al
    title: src/Apps/W1/WithholdingTax/app/src/Purchase/Setup/WithholdingTaxPostingSetup.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/finance-set-up-withholding-tax
    - https://learn.microsoft.com/dynamics365/business-central/finance-withholding-tax-employees
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/finance
    - topic/business-central/business-functionality/set-up-business-central/set-up-finance
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10631
    - change/bcapps/10301
    - change/bcapps/9311
object_type: table
object_id: 6786
name: Withholding Tax Posting Setup
namespace: Microsoft.WithholdingTax
app: WithholdingTax
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 21
  procedures: 3
  events: 0
  subscribers: 0
relations:
  out: 11
  referenced_by: 0
  pages: 1
  extended_by: 1
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 6786 "Withholding Tax Posting Setup"

> Table 6786 "Withholding Tax Posting Setup" in WithholdingTax (Microsoft.WithholdingTax). 21 fields, 2 public procedures. Introduced in BC29, still in BC30.

WithholdingTax · Microsoft.WithholdingTax · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/WithholdingTax/app/src/Purchase/Setup/WithholdingTaxPostingSetup.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md) (2 Learn pages).

## Properties

| Property | Value |
|---|---|
| Caption | Withholding Tax Posting Setup |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Wthldg. Tax Bus. Post. Group | Code[20] | Specifies a Withholding Tax Business Posting group code. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | TableRelation [Table 6784 "Wthldg. Tax Bus. Post. Group"](../table/6784.md) (Wthldg. Tax Bus. Post. Group) |
| 2 | Wthldg. Tax Prod. Post. Group | Code[20] | Specifies a Withholding Tax Product Posting group code. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | TableRelation [Table 6785 "Wthldg. Tax Prod. Post. Group"](../table/6785.md) (Wthldg. Tax Prod. Post. Group) |
| 3 | Withholding Tax % | Decimal | Specifies the relevant Withholding Tax rate for the particular combination of Withholding Tax Business Posting group and Withholding Tax Product Posting group. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> |  |
| 4 | Prepaid Wthldg. Tax Acc. Code | Code[20] | Specifies the G/L account number used to post prepaid (advance) withholding tax for the selected combination of Withholding Tax business posting group and product posting group. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | TableRelation [Table 15 "G/L Account"](../table/15.md) (G/L Account) |
| 5 | Payable Wthldg. Tax Acc. Code | Code[20] | Specifies the G/L account number used to post payable withholding tax for the selected combination of Withholding Tax business posting group and product posting group. This account is used when withholding tax becomes due and payable to the tax authority, such as upon payment posting or when the wit... <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | TableRelation [Table 15 "G/L Account"](../table/15.md) (G/L Account) |
| 8 | Wthldg. Tax Rep Line No Series | Code[20] | Specifies the number series for the withholding tax report line. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | TableRelation No. Series |
| 9 | Revenue Type | Code[10] | Specifies the type of revenue. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | TableRelation [Table 6787 "Withholding Tax Revenue Types"](../table/6787.md) (Withholding Tax Revenue Types) |
| 10 | Bal. Prepaid Account Type | Option | Specifies the type of balancing account for withholding tax transactions. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | OptionCaption: Bank Account,G/L Account |
| 11 | Bal. Prepaid Account No. | Code[20] | Specifies the account number or bank name for sales withholding tax transactions, based on the type selected in the Bal. Prepaid Account Type field. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | TableRelation [Table 15 "G/L Account"](../table/15.md), [Table 270 "Bank Account"](../table/270.md) (if ("Bal. Prepaid Account Type" = const("Bank Account")) "Bank Account" else if ("Bal. Prepaid Account Type" = const("G/L Account")) "G/L Account") |
| 12 | Bal. Payable Account Type | Option | Specifies the type of balancing account for purchase withholding tax transactions. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | OptionCaption: Bank Account,G/L Account |
| 13 | Bal. Payable Account No. | Code[20] | Specifies the account number or bank name for purchase withholding tax transactions. This is based on the type selected in the Bal. Payable Account Type field. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | TableRelation [Table 15 "G/L Account"](../table/15.md), [Table 270 "Bank Account"](../table/270.md) (if ("Bal. Payable Account Type" = const("Bank Account")) "Bank Account" else if ("Bal. Payable Account Type" = const("G/L Account")) "G/L Account") |
| 20 | Purch. Wthldg. Tax Adj. Acc No | Code[20] | Specifies the account number on which to post purchase credit memo adjustments. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | TableRelation [Table 15 "G/L Account"](../table/15.md) (G/L Account) |
| 21 | Sales Wthldg. Tax Adj. Acc No | Code[20] | Specifies an account number for Sales Credit Memo adjustments. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | TableRelation [Table 15 "G/L Account"](../table/15.md) (G/L Account) |
| 22 | Sequence | Integer | Specifies the sequence in which the withholding tax posting setup information must be displayed in reports. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> |  |
| 23 | Realized Withholding Tax Type | Option | Specifies when the withholding tax is realized for the transaction. Choose whether the withholding is realized when the invoice is posted, when the payment is posted, or at the earliest of the two. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | OptionCaption: ,Invoice,Payment,Earliest |
| 24 | Wthldg. Tax Min. Inv. Amount | Decimal | Specifies the threshold amount for Withholding Tax, below which there will not be any Withholding Tax deduction. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> |  |
| 25 | Wthldg. Tax Calculation Rule | Option | Specifies the calculation rule for withholding tax, which is used with the amount specified in the withholding tax Minimum Invoice Amount field. This helps identify the transactions for which withholding tax isn't deducted. For example, if you select the Less than option here and enter 100 in the wi... <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | OptionCaption: Less than,Less than or equal to,Equal to,Greater than,Greater than or equal to |
| 100 | Calculation Base | Enum "Withholding Calculation Base" | Specifies whether withholding tax is calculated on the gross amount or the net amount (gross-up). Net (gross-up) is applicable for employee transactions where the entered amount represents the net payable. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | enum [Enum 6785 "Withholding Calculation Base"](../enum/6785.md) |
| 101 | Calculation Method | Enum "Withholding Calculation Method" | Specifies the calculation method. Simple calculates each component independently. Compound adjusts the base of later components to include earlier component taxes. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | enum [Enum 6786 "Withholding Calculation Method"](../enum/6786.md) |
| 102 | WHT Threshold Base | Enum "Withholding Threshold Base" | Specifies level at which the threshold is evaluated: per record/line, per document, per category in a period, or total across all categories in a period. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | enum [Enum 6787 "Withholding Threshold Base"](../enum/6787.md) |
| 103 | WHT Threshold Period | Enum "WHT Threshold Period Type" | Specifies the period for threshold accumulation: Month, Quarter, Year, or Fiscal Period. Applicable when Threshold Base is Category in Period or Total in Period. <small>via [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md)</small> | enum [Enum 6788 "WHT Threshold Period Type"](../enum/6788.md) |

## Keys

- Key1: Wthldg. Tax Bus. Post. Group, Wthldg. Tax Prod. Post. Group (clustered)
- Key2: Wthldg. Tax Bus. Post. Group, Sequence

## Procedures

- `GetPrepaidWithholdingTaxAccount(): Code[20]`
- `GetPayableWithholdingTaxAccount(): Code[20]`

Plus 1 local procedures.

## Relations

- Bal. Payable Account No.: TableRelation [Table 15 "G/L Account"](../table/15.md) (conditional)
- Bal. Prepaid Account No.: TableRelation [Table 15 "G/L Account"](../table/15.md) (conditional)
- Payable Wthldg. Tax Acc. Code: TableRelation [Table 15 "G/L Account"](../table/15.md)
- Prepaid Wthldg. Tax Acc. Code: TableRelation [Table 15 "G/L Account"](../table/15.md)
- Purch. Wthldg. Tax Adj. Acc No: TableRelation [Table 15 "G/L Account"](../table/15.md)
- Sales Wthldg. Tax Adj. Acc No: TableRelation [Table 15 "G/L Account"](../table/15.md)
- Bal. Payable Account No.: TableRelation [Table 270 "Bank Account"](../table/270.md) (conditional)
- Bal. Prepaid Account No.: TableRelation [Table 270 "Bank Account"](../table/270.md) (conditional)
- Wthldg. Tax Bus. Post. Group: TableRelation [Table 6784 "Wthldg. Tax Bus. Post. Group"](../table/6784.md)
- Wthldg. Tax Prod. Post. Group: TableRelation [Table 6785 "Wthldg. Tax Prod. Post. Group"](../table/6785.md)
- Revenue Type: TableRelation [Table 6787 "Withholding Tax Revenue Types"](../table/6787.md)

## Pages and codeunits on this table

- [Page 6786 "Withholding Tax Posting Setup"](../page/6786.md) (source table)

## Extended by

- [Table extension 7056 "WHT Tax Posting Setup Ext"](../tableextension/7056.md)

## Recent changes

- 2026-08-26 [#10631 Integration/main to releases 29.x 31a860b5](../../changes/bcapps/10631.md) (releases/29.x, BC29, feature)
- 2026-08-21 [#10301 [Master]-Bug 646962: Withholding Tax Posting Setup](../../changes/bcapps/10301.md) (main, BC30, fix)
- 2026-07-29 [#9311 Withholding Tax for Employee](../../changes/bcapps/9311.md) (main, BC30, feature)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "Withholding Tax Posting Setup")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
