---
id: object/codeunit/18318-in
type: object
title: Codeunit 18318 "GST Settlement" (IN)
summary: Codeunit 18318 "GST Settlement" (IN) in the IN country layer (Microsoft.Finance.GST.ReturnSettlement). 14 public procedures, 2 events. 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: 09077b8fce440e444a8c8540b5e2a03d6444a06b9011bc8586c7806484a23cb8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/IN/INGST/app/GSTReturnSettlement/src/codeunit/GSTSettlement.Codeunit.al
    title: src/Apps/IN/INGST/app/GSTReturnSettlement/src/codeunit/GSTSettlement.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/9354
object_type: codeunit
object_id: 18318
name: GST Settlement
namespace: Microsoft.Finance.GST.ReturnSettlement
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: 87
  events: 2
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 18318 "GST Settlement" (IN)

> Codeunit 18318 "GST Settlement" (IN) in the IN country layer (Microsoft.Finance.GST.ReturnSettlement). 14 public procedures, 2 events. Introduced in BC29, still in BC30.

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

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

## Events published

- `OnBeforeAllocateGstAppliedAmounts(TotalInvoiceAmount: Decimal; RemainingAmount: Decimal; var GSTLiabilityBuffer: Record "GST Liability Buffer"; var IsHandled: Boolean)` (integration)
- `OnAfterAllocateGstAppliedAmount(TotalInvoiceAmount: Decimal; RemainingAmount: Decimal; var GSTLiabilityBuffer: Record "GST Liability Buffer"; DocumentNo: Code[20])` (integration)

## Procedures

- `FillAdjustmentJournal(GSTINNo: Code[20]; VendorNo: Code[20]; PeriodMonth: Integer; PeriodYear: Integer; PostingDate: Date; DocumentNo2: Code[20]; ExternalDocNo: Code[40]; NatureOfAdj: Enum "Credit Adjustment Type"; AdjDocNo: Code[20]; ReverseCharge: Boolean; AdjustmentPerc: Decimal)`
- `PostCreditAdjustmentJnl(GSTCreditAdjustmentJournal: Record "GST Credit Adjustment Journal")`
- `GetNoSeriesCode(CreditLiability: Boolean): Code[20]`
- `FillGSTLiabilityAdjustmentJournal(GSTINNo: Code[20]; VendorNo: Code[20]; LiabilityDate: Date; DocumentNo1: Code[20]; ExternalDocNo: Code[35]; NatureOfAdj: Enum "Cr Libty Adjustment Type"; AdjDocNo: Code[20]; AdjPostingDate: Date)`
- `FillAppBufferInvoice(DocumentNo: Code[20]; LocationRegNo: Code[20]; LiabilityDate: Date; NatureOfAdj: Enum "Cr Libty Adjustment Type")`
- `PostLiabilityAdjustmentJnl(GSTLiabilityAdjustment: Record "GST Liability Adjustment")`
- `ApplyGSTSettlement(GSTINNo: Code[20]; PostingDate: Date; AccountType: Enum "GST Settlement Account Type"; AccountNo: Code[20]; BankRefNo: Code[10]; BankRefDate: Date)`
- `IsDuplicateDocumentNo(DocumentNo: Code[20])`
- `UpdateCreditAmount(GSTINNo: Code[20]; DocumentNo: Code[20])`
- `GetPeriodendDate(PostingDate: Date): Date`
- `PostGSTPayment(GSTINNo: Code[20]; DocumentNo: Code[20]; var NoMsg: Boolean): Boolean`
- `IsGSTPaymentApplicable(var GSTPaymentBuffer: Record "GST Payment Buffer"): Boolean`
- `UpdateAdjRemAmt()`
- `ValidateCreditUtilizedAmt(GSTINNo: Code[20]; DocumentNo: Code[20])`

Plus 71 local procedures.

## Recent changes

- 2026-07-13 [#9354 Incident 51000001074180 : [BC-IN] GST Component code alignment issue in Pay GST Calculation details.](../../changes/bcapps/9354.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: "GST Settlement")`, 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.
