---
id: object/codeunit/18440-in
type: object
title: Codeunit 18440 "GST Service Validations" (IN)
summary: Codeunit 18440 "GST Service Validations" (IN) in the IN country layer (Microsoft.Finance.GST.Services). 3 public procedures, 1 events, 34 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: a15df1aa57b1299644e779634bca05db5e7209a017d38a71756d1ea2b5705d06
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/IN/INGST/app/GSTService/src/Codeunit/GSTServiceValidations.Codeunit.al
    title: src/Apps/IN/INGST/app/GSTService/src/Codeunit/GSTServiceValidations.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: 18440
name: GST Service Validations
namespace: Microsoft.Finance.GST.Services
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: 52
  events: 1
  subscribers: 34
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 18440 "GST Service Validations" (IN)

> Codeunit 18440 "GST Service Validations" (IN) in the IN country layer (Microsoft.Finance.GST.Services). 3 public procedures, 1 events, 34 event subscribers. Introduced in BC29, still in BC30.

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

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

## Events published

- `OnBeforeServiceLineHSNSACEditable(ServiceLine: Record "Service Line"; var IsEditable: Boolean; var IsHandled: Boolean)` (integration)

## Event subscriptions

- CallTaxEngine subscribes to Table "Service Line" OnAfterInsertEvent
- CopyServiceContractFields subscribes to Codeunit "ServContractManagement" OnAfterCreateServHeader
- UpdateStateCreditMemo subscribes to Codeunit "ServContractManagement" OnAfterCreateOrGetCreditHeader
- OnCreateContractLineCreditMemo subscribes to Codeunit "ServContractManagement" OnCreateContractLineCreditMemoOnAfterCreateAllCreditLines
- CallTaxEngineCreditMemo subscribes to Codeunit "ServContractManagement" OnAfterCreateContractLineCreditMemo
- UpdateGSTCustomerType subscribes to Table "Service Contract Header" OnAfterValidateEvent (Customer No.)
- UpdateGSTBillToStateCode subscribes to Table "Service Contract Header" OnAfterValidateEvent (Bill-to Customer No.)
- OnPostLedgerEntryOnBeforeGenJnlPostLine subscribes to Codeunit "Service Post Invoice Events" OnPostLedgerEntryOnBeforeGenJnlPostLine
- OnAddUseCaseEventstoLibrary subscribes to Codeunit "Use Case Event Library" OnAddUseCaseEventstoLibrary
- HandleServiceLineCases subscribes to Table "Service Line" OnAfterValidateEvent (Unit Price)
- OnServiceLineFilter subscribes to Table "Tax Transaction Value" OnBeforeTableFilterApplied
- OnServiceInvoiceLineFilter subscribes to Table "Tax Transaction Value" OnBeforeTableFilterApplied
- OnServiceCreditMemoLineFilter subscribes to Table "Tax Transaction Value" OnBeforeTableFilterApplied
- UpdateTradingInformation subscribes to Table "Service Header" OnAfterInsertEvent
- UpdateCustomerInfo subscribes to Table "Service Header" OnAfterCopyCustomerFields
- OnBeforeValidateBilltoCustomerNo subscribes to Table "Service Header" OnBeforeValidateEvent (Bill-to Customer No.)
- UpdateBilltoCustomerNoInfo subscribes to Table "Service Header" OnAfterCopyBillToCustomerFields
- OnBeforeValidateShipToCode subscribes to Table "Service Header" OnBeforeValidateEvent (Ship-To Code)
- OnAfterValidateShipToCode subscribes to Table "Service Header" OnAfterValidateEvent (Ship-To Code)
- OnAfterValidateEventLocationCode subscribes to Table "Service Header" OnAfterValidateEvent (Location Code)
- OnAfterValidateCurrencyCode subscribes to Table "Service Header" OnAfterValidateEvent (Currency Code)
- OnAfterValidateEventCurrencyFactor subscribes to Table "Service Header" OnAfterValidateEvent (Currency Factor)
- CopyGLAccountValues subscribes to Table "Service Line" OnAfterAssignGLAccountValues
- CopyServCostValues subscribes to Table "Service Line" OnAfterAssignServCostValues
- CopyItemValues subscribes to Table "Service Line" OnAfterAssignItemValues
- CopyResourceValue subscribes to Table "Service Line" OnAfterAssignResourceValues
- OnAfterValidateEventLocationCodeServiceLine subscribes to Table "Service Line" OnAfterValidateEvent (Location Code)
- CheckInvoiceType subscribes to Codeunit "Service-Post (Yes/No)" OnBeforeConfirmServPost
- UpdateShipToAddrfields subscribes to Table "Service Header" OnAfterCopyShipToCustomerAddressFieldsFromShipToAddr
- UpdateCustomerFields subscribes to Table "Service Header" OnAfterCopyShipToCustomerAddressFieldsFromCustomer
- ValidateGSTPlaceOfSupply subscribes to Table "Service line" OnAfterValidateEvent (GST Place Of Supply)
- CheckAccountignPeriod subscribes to Codeunit "Service-Post (Yes/No)" OnAfterConfirmPost
- OnBeforeUpdateShipToCode subscribes to Table "Service Header" OnBeforeValidateEvent (Ship-to Code)
- OnValidateShipToCodeOnAfterCalcShouldUpdateShipToAddressFields subscribes to Table "Service Header" OnValidateShipToCodeOnAfterCalcShouldUpdateShipToAddressFields

## Procedures

- `ReferenceInvoiceNoValidation(DocumentType: Enum "Service Document Type"; DocNo: Code[20]; CustNum: Code[20])`
- `CallTaxEngineOnServiceHeader(ServiceHeader: Record "Service Header")`
- `SetHSNSACEditable(ServiceLine: Record "Service Line"; var IsEditable: Boolean)`

Plus 14 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 Service Validations")`, 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.
