---
id: change/bcapps/14009
type: change
title: "#14009 [MAIN] Avoid empty GST component lookup on customer reapplication (Bug 659069)"
summary: Fixed a bug where reapplying customer payments after unapplication would fail with an empty GST component lookup error by skipping GST account resolution when no GST entries are involved.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit gst application handler
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-11-20T00:57:47.506Z"
  flags: []
generated:
  at: "2026-11-30T13:33:07.232Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 9e4bb042c6c55d72956090a9c44480b488fab146
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14009
    title: "microsoft/BCApps#14009: [MAIN] Avoid empty GST component lookup on customer reapplication (Bug 659069)"
    date: "2026-11-19"
    commit: 9e4bb042c6c55d72956090a9c44480b488fab146
    t: null
    quote: Exit the GST application update routine when the temporary GST posting buffer is empty, avoiding unnecessary account resolution and posting.
links:
  learn: []
  objects:
    - object/codeunit/18430-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 customer advance payments during reapplication to sales invoices.
      by: model
number: 14009
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14009
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-19T19:09:18Z"
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: 1
  additions: 3
  deletions: 0
  al: 1
apps:
  - INGST
objects_touched:
  - key: codeunit/18430
    page: codeunit/18430-in
    type: codeunit
    id: 18430
    name: GST Application Handler
    app: INGST
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 659069
systems:
  - finance
quote: Exit the GST application update routine when the temporary GST posting buffer is empty, avoiding unnecessary account resolution and posting.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14009 [MAIN] Avoid empty GST component lookup on customer reapplication (Bug 659069)

> Fixed a bug where reapplying customer payments after unapplication would fail with an empty GST component lookup error by skipping GST account resolution when no GST entries are involved.

[Pull request](https://github.com/microsoft/BCApps/pull/14009) · merged into `main` (BC30) on 2026-11-19 by v-ajaztabrez · 1 file (+3 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Reapplying customer payments against invoices after unapplication now works without errors
- GST application routine exits early when the GST posting buffer is empty
- Prevents blank GST component code from triggering a failed lookup
- Avoids unnecessary account resolution and posting when no GST entries exist
- Behaviour changes for users or extensions.

## AL objects touched

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

## Context

- Work items: AB#659069
- Labels: Team: Finance
- Systems: finance
- From the description: "Exit the GST application update routine when the temporary GST posting buffer is empty, avoiding unnecessary account resolution and posting."

## 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 customer advance payments during reapplication to sales invoices. (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).
