---
id: object/codeunit/18716-in
type: object
title: Codeunit 18716 "TDS Subscribers" (IN)
summary: Codeunit 18716 "TDS Subscribers" (IN) in the IN country layer (Microsoft.Finance.TDS.TDSOnPurchase). 4 events, 19 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - in 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: 898eca3388566e569f1d423cf5c318ad754d977d228bc2c91ce243da6ff795ab
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/IN/INTDS/app/TDSOnPurchase/src/codeunit/TDSSubscribers.Codeunit.al
    title: src/Apps/IN/INTDS/app/TDSOnPurchase/src/codeunit/TDSSubscribers.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/in
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 18716
name: TDS Subscribers
namespace: Microsoft.Finance.TDS.TDSOnPurchase
app: INTDS
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: IN
counts:
  fields: 0
  procedures: 29
  events: 4
  subscribers: 19
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 18716 "TDS Subscribers" (IN)

> Codeunit 18716 "TDS Subscribers" (IN) in the IN country layer (Microsoft.Finance.TDS.TDSOnPurchase). 4 events, 19 event subscribers. Introduced in BC29, still in BC30.

IN country layer · Microsoft.Finance.TDS.TDSOnPurchase · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/IN/INTDS/app/TDSOnPurchase/src/codeunit/TDSSubscribers.Codeunit.al) · facts from BC29

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

## Events published

- `OnBeforeValidatePurchLine(PurchaseHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeValidatePurchLineAppliesToID(PurchaseHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeRecalcTaxOnAfterCalcPurchaseDiscount(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)` (integration)
- `OnFindPurchaseLineOnAfterCalcPurchaseDiscount(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header")` (integration)

## Event subscriptions

- AssignTDSSectionCodePurchaseLine subscribes to Table "Purchase Line" OnAfterValidateEvent (No.)
- InsertTDSSectionCodeGenJnlLineOnPostLedgerEntryOnBeforeGenJnlPostLine subscribes to Codeunit "Purch. Post Invoice Events" OnPostLedgerEntryOnBeforeGenJnlPostLine
- CheckTANNo subscribes to Codeunit "Purch.-Post" OnBeforePostPurchaseDoc
- InsertTDSSectionCodeinVendLedgerEntry subscribes to Table "Vendor Ledger Entry" OnAfterCopyVendLedgerEntryFromGenJnlLine
- OnAfterCalcPurchaseDiscount subscribes to Codeunit "Purch.-Calc.Discount" OnAfterCalcPurchaseDiscount
- CheckPANDetails subscribes to Table "Purchase Line" OnAfterValidateEvent (TDS Section Code)
- CheckPANDetailsOnGenJnlLine subscribes to Table "Gen. Journal Line" OnAfterValidateEvent (TDS Section Code)
- OnBeforeCallingTaxEngineFromPurchLine subscribes to Codeunit "Tax Base Subscribers" OnBeforeCallingTaxEngineFromPurchLine
- OnAfterValidateAmount subscribes to Table "Purchase Line" OnAfterValidateEvent (Direct Unit Cost)
- OnAfterValidateQuantity subscribes to Table "Purchase Line" OnAfterValidateEvent (Quantity)
- OnAfterValidateAppliesToDocNo subscribes to Table "Purchase Header" OnAfterValidateEvent (Applies-to Doc. No.)
- OnAfterValidatePostingDateForTDS subscribes to Table "Purchase Header" OnAfterValidateEvent (Posting Date)
- OnAfterDeletePurchaseLine subscribes to Table "Purchase Line" OnAfterDeleteEvent
- OnAfterValidateGenJnlAmount subscribes to Table "Gen. Journal Line" OnAfterValidateEvent (Amount)
- OnAfterValidateGenJnlTDSSection subscribes to Table "Gen. Journal Line" OnAfterValidateEvent (TDS Section Code)
- OnAfterDeleteGenJnlLine subscribes to Table "Gen. Journal Line" OnAfterDeleteEvent
- CallTaxEngineOnCopyPurchDocPurchLineOnAfterCopyPurchLine subscribes to Codeunit "Copy Document Mgt." OnCopyPurchDocPurchLineOnAfterCopyPurchLine
- OnBeforeCalcAplication subscribes to Codeunit "Gen. Jnl.-Post Line" OnBeforeCalcAplication
- OnBeforeTestTDSPurchaseInvoiceIsPaid subscribes to Codeunit "Correct Posted Purch. Invoice" OnBeforeTestIfInvoiceIsPaid

## Procedures

6 local procedures, no public ones.

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

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