---
id: object/codeunit/18544-in
type: object
title: Codeunit 18544 "Tax Base Subscribers" (IN)
summary: Codeunit 18544 "Tax Base Subscribers" (IN) in the IN country layer (Microsoft.Finance.TaxBase). 7 public procedures, 12 events, 24 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: 0957132e3d0ee803952347314e5c6426bdc0184f069e447130666ac22dee8166
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/IN/INTaxBase/app/src/codeunit/TaxBaseSubscribers.Codeunit.al
    title: src/Apps/IN/INTaxBase/app/src/codeunit/TaxBaseSubscribers.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/in
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9550
    - change/bcapps/9199
object_type: codeunit
object_id: 18544
name: Tax Base Subscribers
namespace: Microsoft.Finance.TaxBase
app: INTaxBase
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: 49
  events: 12
  subscribers: 24
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 18544 "Tax Base Subscribers" (IN)

> Codeunit 18544 "Tax Base Subscribers" (IN) in the IN country layer (Microsoft.Finance.TaxBase). 7 public procedures, 12 events, 24 event subscribers. Introduced in BC29, still in BC30.

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

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

## Events published

- `OnBeforeGetTaxComponentValuesFromRecID(RecID: RecordId; TaxTypeCode: Code[20]; ComponentID: Integer; var ComponentRate: Decimal; var ComponentAmount: Decimal)` (integration)
- `OnBeforeCallingTaxEngineFromPurchLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line")` (integration)
- `OnBeforeSkipCallingTaxEngineForPurchLine(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeEnableCallingTaxEngineForPurchLine(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeCallingTaxEngineFromGenJnlLine(var GenJnlLine: Record "Gen. Journal Line")` (integration)
- `OnAfterGetTCSAmount(Amount: Decimal)` (integration)
- `OnAfterGetTCSAmountFromTransNo(TransactionNo: Integer; var Amount: Decimal)` (integration)
- `OnAfterGetTDSAmount(Amount: Decimal)` (integration)
- `OnAfterGetTDSAmountFromTransNo(TransactionNo: Integer; var Amount: Decimal)` (integration)
- `OnAfterGetGSTAmountFromTransNo(TransactionNo: Integer; DocumentNo: Code[20]; var GSTAmount: Decimal)` (integration)
- `OnAfterGetGSTAmountForSalesInvLines(SalesInvoiceLine: Record "Sales Invoice Line"; var GSTBaseAmount: Decimal; var GSTAmount: Decimal)` (integration)
- `OnAfterGetAmountFromDocumentNoForEInv(DocumentNo: Code[20]; var Amount: Decimal)` (integration)

## Event subscriptions

- TaxComponentValuesFromRecID subscribes to Codeunit "Tax Base Subscribers" OnBeforeGetTaxComponentValuesFromRecID
- OnAfterValidateEventAppliesToID subscribes to Table "Purchase Header" OnAfterValidateEvent (Applies-to ID)
- OnAfterValidateEventAppliesToDocNo subscribes to Table "Purchase Header" OnAfterValidateEvent (Applies-to Doc. No.)
- OnAfterAppliesToDocNoOnLookup subscribes to Table "Purchase Header" OnAfterAppliesToDocNoOnLookup
- OnAfterValidateAppliesToDoc subscribes to Table "Sales Header" OnAfterValidateEvent (Applies-to Doc. No.)
- OnAfterAppliesToDocNoOnLookupSales subscribes to Table "Sales Header" OnAfterAppliesToDocNoOnLookup
- OnAfterValidateAppliesToDocGeneral subscribes to Table "Gen. Journal Line" OnAfterValidateEvent (Applies-to Doc. No.)
- OnAfterValidateAppliesToID subscribes to Codeunit "Gen. Jnl.-Apply" OnAfterRun
- OnLookUpAppliesToDocVendOnAfterUpdateDocumentTypeAndAppliesTo subscribes to Table "Gen. Journal Line" OnLookUpAppliesToDocVendOnAfterUpdateDocumentTypeAndAppliesTo
- OnLookUpAppliesToDocCustOnAfterUpdateDocumentTypeAndAppliesTo subscribes to Table "Gen. Journal Line" OnLookUpAppliesToDocCustOnAfterUpdateDocumentTypeAndAppliesTo
- OnIsPreviewNotification subscribes to Codeunit "Role Center Notification Mgt." OnIsRunningPreview
- OnIsPreviewTrialDialog subscribes to Page "Thirty Day Trial Dialog" OnIsRunningPreview
- OnIsPreviewExtendTrialDialog subscribes to Page "Extend Trial Wizard" OnIsRunningPreview
- OnBeforeInitVAT subscribes to Codeunit "Gen. Jnl.-Post Line" OnBeforeInitVAT
- OnBeforeValidateVATProdPostingGroupSalesLine subscribes to Table "Sales Line" OnBeforeValidateVATProdPostingGroup
- OnBeforeValidateVATProdPostingGroupPurchaseLine subscribes to Table "Purchase Line" OnBeforeValidateVATProdPostingGroup
- OnBeforeValidateVATProdPostingGroupServiceLine subscribes to Table "Service Line" OnBeforeValidateVATProdPostingGroup
- OnValidateVATProdPostingGroupOnBeforeVATPostingSetupGet subscribes to Table "Finance Charge Memo Line" OnValidateVATProdPostingGroupOnBeforeVATPostingSetupGet
- OnAfterInitDefaultDimensionSources subscribes to Table "Gen. Journal Line" OnAfterInitDefaultDimensionSources
- OnInsertInvLineFromRcptLineOnBeforeValidateQuantity subscribes to Table "Purch. Rcpt. Line" OnInsertInvLineFromRcptLineOnBeforeValidateQuantity
- OnAfterInsertInvLineFromRcptLine subscribes to Table "Purch. Rcpt. Line" OnAfterInsertInvLineFromRcptLine
- OnAfterInsertReceiptLines subscribes to Codeunit "Purch.-Get Receipt" OnAfterInsertLines
- OnBeforePurchaseUseCaseHandleEvent subscribes to Codeunit "Use Case Event Handling" OnBeforePurchaseUseCaseHandleEvent
- OnBeforeCheckDeferralConditionForGenJournal subscribes to Codeunit "Deferral Utilities" OnBeforeCheckDeferralConditionForGenJournal

## Procedures

- `GetTCSAmount(Amount: Decimal)`
- `GetTCSAmountFromTransNo(TransactionNo: Integer; var Amount: Decimal)`
- `GetTDSAmount(Amount: Decimal)`
- `GetAmountFromDocumentNoForEInv(DocumentNo: Code[20]; var Amount: Decimal)`
- `GetTDSAmountFromTransNo(TransactionNo: Integer; var Amount: Decimal)`
- `GetGSTAmountFromTransNo(TransactionNo: Integer; DocumentNo: Code[20]; var GSTAmount: Decimal)`
- `GetGSTAmountForSalesInvLines(SalesInvoiceLine: Record "Sales Invoice Line"; var GSTBaseAmount: Decimal; var GSTAmount: Decimal)`

Plus 6 local procedures.

## Recent changes

- 2026-07-17 [#9550 [Main]-[BC-IN] Purchase invoice with a deferral schedule and Non-availment GST is not functioning correctly](../../changes/bcapps/9550.md) (main, BC30, fix)
- 2026-07-13 [#9199 [Main]-Incident 21000001049308 : [BC-IN] Purchase invoice with a deferral schedule and Non-availment GST is not functioning correctly](../../changes/bcapps/9199.md) (main, BC30, fix)

## 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: "Tax Base 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.
