---
id: change/bcapps/12119
type: change
title: "#12119 Fixing an APAC-specific issue with applying a posted sales credit memo when using unrealized VAT (GST)"
summary: An infinite loop when applying a posted sales credit memo with unrealized VAT (GST) in APAC regions is fixed by correcting logic in the VAT Entry table.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table vat entry
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:02:50.402Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 282422d6cd04643685bb58218fe609eba8d931a6
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12119
    title: "microsoft/BCApps#12119: Fixing an APAC-specific issue with applying a posted sales credit memo when using unrealized VAT (GST)"
    date: "2026-10-01"
    commit: 282422d6cd04643685bb58218fe609eba8d931a6
    t: null
    quote: Fixing an infinite loop when applying a credit memo that uses unrealized VAT.
links:
  learn: []
  objects:
    - object/table/254
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 12119
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12119
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-01T09:04:27Z"
author: dcenic
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 59
  deletions: 1
  al: 1
apps:
  - Base Application
objects_touched:
  - key: table/254
    page: table/254
    type: table
    id: 254
    name: VAT Entry
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 12120
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/12120
fixes_issues: []
work_items:
  - 652063
systems:
  - finance
quote: Fixing an infinite loop when applying a credit memo that uses unrealized VAT.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #12119 Fixing an APAC-specific issue with applying a posted sales credit memo when using unrealized VAT (GST)

> An infinite loop when applying a posted sales credit memo with unrealized VAT (GST) in APAC regions is fixed by correcting logic in the VAT Entry table.

[Pull request](https://github.com/microsoft/BCApps/pull/12119) · merged into `main` (BC30) on 2026-10-01 by dcenic · 2 files (+59 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Resolves infinite loop during credit memo application with unrealized VAT
- Affects APAC-specific (GST) functionality
- Changes VAT Entry table logic
- Includes automated test coverage for the fix
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 254 "VAT Entry"](../../objects/table/254.md), Base Application (AU layer): modified

## Also merged into

- [#12120](https://github.com/microsoft/BCApps/pull/12120) into `releases/29.x` on 2026-10-01

## Context

- Work items: AB#652063
- Labels: Team: Finance
- Systems: finance
- From the description: "Fixing an infinite loop when applying a credit memo that uses unrealized VAT."

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).
