---
id: object/codeunit/28070-nz
type: object
title: Codeunit 28070 "TaxInvoiceManagement" (NZ)
summary: Codeunit 28070 "TaxInvoiceManagement" (NZ) in the NZ country layer (Microsoft.Finance.WithholdingTax). 21 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - nz layer
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: effe3199561487b86ca5d23808ec368fdb7d97fcf18cedbe8957b342a4c86f8e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/APAC/BaseApp/Local/FinancialMgt/WithholdingTax/TaxInvoiceManagement.Codeunit.al
    title: src/Layers/APAC/BaseApp/Local/FinancialMgt/WithholdingTax/TaxInvoiceManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/nz
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 28070
name: TaxInvoiceManagement
namespace: Microsoft.Finance.WithholdingTax
app: Base Application
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: NZ
counts:
  fields: 0
  procedures: 22
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 28070 "TaxInvoiceManagement" (NZ)

> Codeunit 28070 "TaxInvoiceManagement" (NZ) in the NZ country layer (Microsoft.Finance.WithholdingTax). 21 public procedures. Introduced in BC29, still in BC30.

NZ country layer · Microsoft.Finance.WithholdingTax · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/APAC/BaseApp/Local/FinancialMgt/WithholdingTax/TaxInvoiceManagement.Codeunit.al) · facts from BC29

An object of the [NZ localization](../../localizations/nz.md), not part of W1.

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "Cust. Ledger Entry" = rimd, TableData "Vendor Ledger Entry" = rimd, TableData "G/L Register" = rimd, TableData "Sales Invoice Header" = rimd, TableData "Sales Cr.Memo Header" = rimd, TableData "Purch. Inv. Header" = rimd, TableData "Purch. Cr. Memo Hdr." = rimd |

## Procedures

- `ApplyVendInvoiceWHT(var VendLedgerEntry: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line")`
- `ApplyCustInvoiceWHT(var CustLedgerEntry: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line")`
- `ApplyVendCreditWHT(var VendLedgerEntry: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line")`
- `ApplyCustCreditWHT(var CustLedgerEntry: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line")`
- `SalesTaxInvPost(SalesInvHeader: Record "Sales Invoice Header"): Code[20]`
- `PurchTaxInvPost(PurchInvHeader: Record "Purch. Inv. Header"): Code[20]`
- `SalesTaxCrMemoPost(SalesCrMemoHeader: Record "Sales Cr.Memo Header"): Code[20]`
- `PurchTaxCrMemoPost(PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."): Code[20]`
- `SalesTaxInvPosted(SalesInvHeader: Record "Sales Invoice Header"; Print: Boolean): Code[20]`
- `PurchTaxInvPosted(PurchInvHeader: Record "Purch. Inv. Header"; Print: Boolean): Code[20]`
- `SalesTaxCrMemoPosted(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; Print: Boolean): Code[20]`
- `PurchTaxCrMemoPosted(PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; Print: Boolean): Code[20]`
- `TaxInvoiceSales(var GenJnlLine: Record "Gen. Journal Line"; WHTUsed: Boolean; AmountWithDisc: Boolean)`
- `TaxInvoiceSalesCrMemo(var GenJnlLine: Record "Gen. Journal Line"; WHTUsed: Boolean; AmountWithDisc: Boolean)`
- `TaxInvoicePurchase(var GenJnlLine: Record "Gen. Journal Line"; AmountWithDisc: Boolean)`
- `TaxInvoicePurchaseCrMemo(var GenJnlLine: Record "Gen. Journal Line"; WHTUsed: Boolean; AmountWithDisc: Boolean)`
- `GroupSalesTaxInvPosted(var SalesInvHeader: Record "Sales Invoice Header"; Print: Boolean)`
- `BuildTaxPostBuffer(SourceNo: Code[20]; OrigNo: Text[30]; Type: Option "Purchase Invoice","Sales Invoice","Purchase Credit Memo","Sales Credit Memo")`
- `PrintTaxInvoices(ScheduleInJobQueue: Boolean)`
- `CheckPmtDisc(PostingDate: Date; PmtDiscDate: Date; Amount1: Decimal; Amount2: Decimal; Amount3: Decimal; Amount4: Decimal): Boolean`
- `CheckTaxableNoSeries(No.: Code[20]; Vend/Cust: Option Vendor,Customer): Boolean`

Plus 1 local procedures.

## Triggers

OnRun

## 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: "codeunit", object_name: "TaxInvoiceManagement")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A NZ country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
