---
id: change/bcapps/14008
type: change
title: "#14008 [MAIN] Fix customer GST application posting sequence (Bug 659070)"
summary: Fixed a posting sequence error when applying GST advance payments against sales invoices with different customer posting groups by deferring GST journal posting until after customer application posting completes.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit gst application handler
  - codeunit gst application session mgt.
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-11-20T00:57:47.506Z"
  flags: []
generated:
  at: "2026-11-30T10:37:49.603Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 75874770fa2b3bb95fd77d91c6302c6643ca3549
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14008
    title: "microsoft/BCApps#14008: [MAIN] Fix customer GST application posting sequence (Bug 659070)"
    date: "2026-11-19"
    commit: 75874770fa2b3bb95fd77d91c6302c6643ca3549
    t: null
    quote: Defer offline customer GST journal posting until customer application posting finishes.
links:
  learn: []
  objects:
    - object/codeunit/18430-in
    - object/codeunit/18434-in
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/India/GST-TCS-on-Advance-Receipt-Application-to-Sales-Invoice
      title: GST and TCS on Advance Customer Payments
      label: possibly related
      why: GST calculation on advance customer payments and application in India localization, matches GST application handling.
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/India/GST-GST-on-Advance-Receipt-Application-to-Sales-Invoice
      title: GST on Advance Payment and Application with Sales Invoice
      label: possibly related
      why: GST on advance payment application with sales invoices in India, relevant to customer GST application posting.
      by: model
number: 14008
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14008
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-19T21:00:49Z"
author: v-ajaztabrez
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 22
  deletions: 7
  al: 2
apps:
  - INGST
objects_touched:
  - key: codeunit/18430
    page: codeunit/18430-in
    type: codeunit
    id: 18430
    name: GST Application Handler
    app: INGST
    status: modified
  - key: codeunit/18434
    page: codeunit/18434-in
    type: codeunit
    id: 18434
    name: GST Application Session Mgt.
    app: INGST
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 659070
systems:
  - finance
quote: Defer offline customer GST journal posting until customer application posting finishes.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14008 [MAIN] Fix customer GST application posting sequence (Bug 659070)

> Fixed a posting sequence error when applying GST advance payments against sales invoices with different customer posting groups by deferring GST journal posting until after customer application posting completes.

[Pull request](https://github.com/microsoft/BCApps/pull/14008) · merged into `main` (BC30) on 2026-11-19 by v-ajaztabrez · 2 files (+22 -7), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Resolves the 'G/L Entry already exists' error when applying a GST advance payment to a sales invoice with a different customer posting group
- Cause: GST application entries were posted early through a separate Gen. Jnl.-Post Line instance while customer application posting was still running
- Offline customer GST journal posting is now deferred until customer application posting finishes
- Uses the shared Gen. Jnl.-Post Line instance supplied by OnAfterPostApplyCustLedgEntry
- Affects both application posting and its preview
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 18430 "GST Application Handler"](../../objects/codeunit/18430-in.md), INGST (IN layer): modified
- [Codeunit 18434 "GST Application Session Mgt."](../../objects/codeunit/18434-in.md), INGST (IN layer): modified

## Context

- Work items: AB#659070
- Labels: Team: Finance
- Systems: finance
- From the description: "Defer offline customer GST journal posting until customer application posting finishes."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [GST and TCS on Advance Customer Payments](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/India/GST-TCS-on-Advance-Receipt-Application-to-Sales-Invoice) — possibly related: GST calculation on advance customer payments and application in India localization, matches GST application handling. (model-linked)
- [GST on Advance Payment and Application with Sales Invoice](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/India/GST-GST-on-Advance-Receipt-Application-to-Sales-Invoice) — possibly related: GST on advance payment application with sales invoices in India, relevant to customer GST application posting. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
