---
id: object/codeunit/18080-in
type: object
title: Codeunit 18080 "GST Purchase Subscribers" (IN)
summary: Codeunit 18080 "GST Purchase Subscribers" (IN) in the IN country layer (Microsoft.Finance.GST.Purchase). 6 public procedures, 3 events, 66 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: d45e04a72d10539bf2e5028be60fa02a8458583cf55e84a7379ae8c3923054af
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/IN/INGST/app/GSTPurchase/src/Codeunit/GSTPurchaseSubscribers.codeunit.al
    title: src/Apps/IN/INGST/app/GSTPurchase/src/Codeunit/GSTPurchaseSubscribers.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: 18080
name: GST Purchase Subscribers
namespace: Microsoft.Finance.GST.Purchase
app: INGST
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: 135
  events: 3
  subscribers: 66
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 18080 "GST Purchase Subscribers" (IN)

> Codeunit 18080 "GST Purchase Subscribers" (IN) in the IN country layer (Microsoft.Finance.GST.Purchase). 6 public procedures, 3 events, 66 event subscribers. Introduced in BC29, still in BC30.

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

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

## Events published

- `OnBeforePurchaseLineHSNSACEditable(PurchaseLine: Record "Purchase Line"; var IsEditable: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeCheckHeaderLocation(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeCheckGSTRegistrationNo(RegistrationNo: Code[20]; var IsHandled: Boolean)` (integration)

## Event subscriptions

- SetPaytoVendorFields subscribes to Codeunit "Purch.-Post" OnBeforePostPurchaseDoc
- ValidatePaytoVendorFields subscribes to Codeunit "Copy Document Mgt." OnAfterCopyPostedPurchInvoice
- CallTaxEngineOnAfterCopyPurchLineFromPurchLineBuffer subscribes to Codeunit "Copy Document Mgt." OnAfterCopyPurchLineFromPurchLineBuffer
- OnAfterValidateLocationCodePurchase subscribes to Table "Purchase Line" OnAfterValidateEvent (Location Code)
- CheckBillofEntryValues subscribes to Codeunit "Purch.-Post" OnBeforePostLines
- CheckPOSAsVendorState subscribes to Codeunit "Purch.-Post" OnBeforePostLines
- CheckAccountignPeriod subscribes to Codeunit "Purch.-Post (Yes/No)" OnAfterConfirmPost
- CheckAccountignPeriodPostPreview subscribes to Codeunit "Purch.-Post (Yes/No)" OnRunPreviewOnBeforePurchPostRun
- CopyQuoteInfotoOrder subscribes to Codeunit "Purch.-Quote to Order" OnCreatePurchHeaderOnBeforePurchOrderHeaderModify
- CopyVendorInf subscribes to Table "Purchase Header" OnAfterCopyBuyFromVendorFieldsFromVendor
- CopyPayToVendorInfo subscribes to Table "Purchase Header" OnValidatePurchaseHeaderPayToVendorNoOnBeforeCheckDocType
- UpdateGstLocationCode subscribes to Table "Purchase Header" OnAfterValidateEvent (Location Code)
- ValidateGSTVendorType subscribes to Table "Purchase Header" OnAfterValidateEvent (GST Vendor Type)
- ValidateOrderAddressCode subscribes to Table "Purchase Header" OnBeforeValidateEvent (Order Address Code)
- UpdateBuyFromGSTInfo subscribes to Table "Purchase Header" OnAfterCopyBuyFromVendorAddressFieldsFromVendor
- ValidateInvoiceType subscribes to Table "Purchase Header" OnAfterValidateEvent (Invoice Type)
- ValidateLocationGSTRegNo subscribes to Table "Purchase Header" OnAfterValidateEvent (Location GST Reg. No.)
- ValidateBilltoLocationPOS subscribes to Table "Purchase Header" OnAfterValidateEvent (Bill to-Location(POS))
- ValidatePOSVedorState subscribes to Table "Purchase Header" OnAfterValidateEvent (POS as Vendor State)
- ValidatePOSoutIndia subscribes to Table "Purchase Header" OnAfterValidateEvent (POS Out Of India)
- ValidateWithoutBillOfEntry subscribes to Table "Purchase Header" OnAfterValidateEvent (Without Bill Of Entry)
- AfterValidateOrderAddressCode subscribes to Table "Purchase Header" OnAfterValidateEvent (Order Address Code)
- ValidateGSTGroupCode subscribes to Table "Purchase Line" OnAfterValidateEvent (GST Group Code)
- ValidateExempted subscribes to Table "Purchase Line" OnAfterValidateEvent (Exempted)
- ValidateCustomDutyAmount subscribes to Table "Purchase Line" OnAfterValidateEvent (Custom Duty Amount)
- ValidateSourceDocumentNo subscribes to Table "Purchase Line" OnAfterValidateEvent (Source Document No.)
- ValidateSourceDocumentType subscribes to Table "Purchase Line" OnAfterValidateEvent (Source Document Type)
- ValidateGSTAssessableValue subscribes to Table "Purchase Line" OnAfterValidateEvent (GST Assessable Value)
- ValidateNONGSTLine subscribes to Table "Purchase Line" OnAfterValidateEvent (Non-GST Line)
- ValidateGSTReverseCharge subscribes to Table "Purchase Line" OnAfterValidateEvent (GST Reverse Charge)
- ValidateSupplementary subscribes to Table "Purchase Line" OnAfterValidateEvent (Supplementary)
- AssignGLAccValue subscribes to Table "Purchase Line" OnAfterAssignGLAccountValues
- AssignItemValue subscribes to Table "Purchase Line" OnAfterAssignItemValues
- AssignFAValue subscribes to Table "Purchase Line" OnAfterAssignFixedAssetValues
- AssignItemChargeValue subscribes to Table "Purchase Line" OnAfterAssignItemChargeValues
- AssignResourceValue subscribes to Table "Purchase Line" OnAfterAssignResourceValues
- ValidateVendGSTRegistrationNo subscribes to Table "Vendor" OnAfterValidateEvent (GST Registration No.)
- ValidateVendGSTVEndorType subscribes to Table "Vendor" OnAfterValidateEvent (GST Vendor Type)
- ValidateAssociatedEnterprises subscribes to Table "Vendor" OnAfterValidateEvent (Associated Enterprises)
- ValidateAggregateTurnover subscribes to Table "Vendor" OnAfterValidateEvent (Aggregate Turnover)
- ValidateARNNo subscribes to Table "Vendor" OnAfterValidateEvent (ARN No.)
- ValidateVendStateCode subscribes to Table "Vendor" OnAfterValidateEvent (State Code)
- ValidateVendPANNo subscribes to Table "Vendor" OnAfterValidateEvent (P.A.N. No.)
- ValidateOrderaddressState subscribes to Table "Order Address" OnAfterValidateEvent (State)
- ValidateOrderAddressGSTRegistrationNo subscribes to Table "Order Address" OnAfterValidateEvent (GST Registration No.)
- ValidateOrderAssressARNNo subscribes to Table "Order Address" OnAfterValidateEvent (ARN No.)
- OnValidateCurrencyCode subscribes to Table "Purchase Header" OnAfterValidateEvent (Currency Factor)
- OnValidateOrderAddressCode subscribes to Table "Purchase Header" OnAfterValidateEvent (Order Address Code)
- OnBeforePurchOrderHeaderModify subscribes to Codeunit "Blanket Purch. Order to Order" OnBeforePurchOrderHeaderModify
- OnAfterCalculateCurrentShippingAndPayToOptionforOrder subscribes to Page "Purchase Order" OnAfterCalculateCurrentShippingAndPayToOption
- OnAfterCalculateCurrentShippingAndPayToOptionforInvoice subscribes to Page "Purchase Invoice" OnAfterCalculateCurrentShippingAndPayToOption
- OnAfterCalculateCurrentShippingAndPayToOptionforInvoiceforQuote subscribes to Page "Purchase Quote" OnAfterCalculateCurrentShippingAndPayToOption
- OnBeforePreviewActionEvent subscribes to Page "Purchase Invoice" OnBeforeActionEvent (Preview)
- OnBeforePostActionEvent subscribes to Page "Purchase Invoice" OnBeforeActionEvent (Post)
- OnBeforePostAndNewActionEvent subscribes to Page "Purchase Invoice" OnBeforeActionEvent (PostAndNew)
- OnBeforePostAndPrintActionEvent subscribes to Page "Purchase Invoice" OnBeforeActionEvent (PostAndPrint)
- OnBeforePreviewActionEventForOrder subscribes to Page "Purchase Order" OnBeforeActionEvent (Preview)
- OnBeforePostActionEventForOrder subscribes to Page "Purchase Order" OnBeforeActionEvent (Post)
- OnBeforePostAndNewActionEventForOrder subscribes to Page "Purchase Order" OnBeforeActionEvent (PostAndNew)
- OnBeforePostAndPrintActionEventForOrder subscribes to Page "Purchase Order" OnBeforeActionEvent (Post and &Print)
- OnBeforemakeOrderActionEventForQuote subscribes to Page "Purchase Quote" OnBeforeActionEvent (MakeOrder)
- OnAfterValidateGSTGroup subscribes to Table "Purchase Line" OnAfterValidateEvent (GST Group Code)
- OnAfterValidateGSTCredit subscribes to Table "Purchase Line" OnAfterValidateEvent (GST Credit)
- OnAfterValidateHSNSACCode subscribes to Table "Purchase Line" OnAfterValidateEvent (HSN/SAC Code)
- OnBeforCheckIfPurchaseInvoiceFullyOpen subscribes to Table "Purch. Inv. Header" OnBeforCheckIfPurchaseInvoiceFullyOpen
- SetGstHsnEditableforAllType subscribes to Codeunit "GST Purchase Subscribers" OnBeforePurchaseLineHSNSACEditable

## Procedures

- `ReCalculateGST(DocumentType: Enum "Purchase Document Type"; DocumentNo: Code[20])`
- `SetHSNSACEditable(PurchaseLine: Record "Purchase Line"; var IsEditable: Boolean)`
- `SetLocationCodeVisibleConditionally(var IsLocationVisible: Boolean; ShipToOptions: Option "Default (Company Address)",Location,"Customer Address","Custom Address")`
- `SetLocationCodeVisibleForQuoteandInvoice(var IsLocationVisible: Boolean; ShipToOptions: Option "Default (Company Address)",Location,"Custom Address")`
- `ValidateLocationCodeForShiptoCustomAddForOrder(PurchaseHeader: Record "Purchase Header"; ShipToOptions: Option "Default (Company Address)",Location,"Customer Address","Custom Address")`
- `ValidateLocationCodeForShiptoCustomAddForQuoteAndInvoice(PurchaseHeader: Record "Purchase Header"; ShipToOptions: Option "Default (Company Address)",Location,"Custom Address")`

Plus 60 local procedures.

## 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: "GST Purchase 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.
