---
id: object/tableextension/6798
type: object
title: Table extension 6798 "Withholding Purch. Inv. Header"
summary: Table extension 6798 "Withholding Purch. Inv. Header" in WithholdingTax (Microsoft.WithholdingTax), extends "Purch. Inv. Header". 10 fields. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - tableextension
  - 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: 3668b32672adbfe500de61c78de70b50d44af0d07e33f473ae64b0ab617efe45
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/WithholdingTax/app/src/Purchase/History/WithholdingPurchInvHeader.TableExt.al
    title: src/Apps/W1/WithholdingTax/app/src/Purchase/History/WithholdingPurchInvHeader.TableExt.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/122
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: tableextension
object_id: 6798
name: Withholding Purch. Inv. Header
namespace: Microsoft.WithholdingTax
app: WithholdingTax
extends: Purch. Inv. Header
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 10
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 5
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table extension 6798 "Withholding Purch. Inv. Header"

> Table extension 6798 "Withholding Purch. Inv. Header" in WithholdingTax (Microsoft.WithholdingTax), extends "Purch. Inv. Header". 10 fields. 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/History/WithholdingPurchInvHeader.TableExt.al) · facts from BC29

Extends [Purch. Inv. Header](../table/122.md).

## 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 |
|---|---|---|---|---|
| 6784 | Wthldg. Tax Bus. Post. Group | Code[20] | Withholding Tax Bus. Post. Group <small>caption</small> | TableRelation [Table 6784 "Wthldg. Tax Bus. Post. Group"](../table/6784.md) (Wthldg. Tax Bus. Post. Group); DataClassification CustomerContent |
| 6790 | Rem. Wthldg. Tax Pre. Amt(LCY) | Decimal | Specifies the remaining Withholding Tax Amount, which is to be realized (deducted) for this invoice. <small>via [Page extension 6791 "WHT Purch. Invoice Statistics"](../pageextension/6791.md)</small> | FlowField: sum("Withholding Tax Entry"."Remaining Unrealized Amount" where("Document Type" = const(Invoice), "Document No." = field("No."))); not editable |
| 6791 | Paid Wthldg. Tax Pre. Amt(LCY) | Decimal | Specifies the paid (realized) Withholding Tax amount for this invoice. <small>via [Page extension 6791 "WHT Purch. Invoice Statistics"](../pageextension/6791.md)</small> | FlowField: sum("Withholding Tax Entry".Amount where("Document Type" = const(Payment), "Document No." = field("No."))); not editable |
| 6792 | Tot. Wthldg. Tax Pre. Amt(LCY) | Decimal | Specifies the total Withholding Tax amount for the invoice. <small>via [Page extension 6791 "WHT Purch. Invoice Statistics"](../pageextension/6791.md)</small> | FlowField: sum("Withholding Tax Entry"."Unrealized Amount" where("Document Type" = const(Invoice), "Document No." = field("No."))); not editable |
| 6793 | WHT Actual Vendor No. | Code[20] | Specifies the number of the Withholding Actual Vendor who delivers the products. <small>via [Page extension 6798 "Withholding Posted Purch Inv"](../pageextension/6798.md)</small> | DataClassification CustomerContent |
| 6794 | WHT Printed Tax Document | Boolean | Printed Tax Document <small>caption</small> | not editable; DataClassification CustomerContent |
| 6795 | WHT Posted Tax Document | Boolean | Posted Tax Document <small>caption</small> | not editable; DataClassification CustomerContent |
| 6796 | Wthldg. Tax Date Filter | Date | Tax Date Filter <small>caption</small> | FlowFilter |
| 6797 | Wthldg. Tax Document Marked | Boolean | Tax Document Marked <small>caption</small> | not editable; DataClassification CustomerContent |
| 6798 | WHT Invoice Print Type | Option | Invoice Print Type <small>caption</small> | OptionCaption: Invoice,Tax Invoice (Items),Tax Invoice (Services); not editable; DataClassification CustomerContent |

## Relations

- extends [Table 122 "Purch. Inv. Header"](../table/122.md)
- Wthldg. Tax Bus. Post. Group: TableRelation [Table 6784 "Wthldg. Tax Bus. Post. Group"](../table/6784.md)
- Paid Wthldg. Tax Pre. Amt(LCY): CalcFormula [Table 6788 "Withholding Tax Entry"](../table/6788.md)
- Rem. Wthldg. Tax Pre. Amt(LCY): CalcFormula [Table 6788 "Withholding Tax Entry"](../table/6788.md)
- Tot. Wthldg. Tax Pre. Amt(LCY): CalcFormula [Table 6788 "Withholding Tax Entry"](../table/6788.md)

## 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: "tableextension", object_name: "Withholding Purch. Inv. Header")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
