---
id: change/bcapps/13334
type: change
title: "#13334 [Main] Fix #656831: Use location state for ISD purchase credit memo posting"
summary: Interstate ISD purchase credit memo posting now correctly uses the location's state instead of the vendor's state when retrieving GST posting setup and G/L accounts.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit gst tax configuration
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-30T01:10:02.802Z"
  flags: []
generated:
  at: "2026-10-31T00:15:35.028Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ec7a0d1364b7e14265075290b1dfc06267707a5f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13334
    title: "microsoft/BCApps#13334: [Main] Fix #656831: Use location state for ISD purchase credit memo posting"
    date: "2026-10-29"
    commit: ec7a0d1364b7e14265075290b1dfc06267707a5f
    t: null
    quote: Updated both lookups to use Location.State Code, filtered by Purchase Line.Location Code.
links:
  learn: []
  objects:
    - object/codeunit/18017-in
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/India/GST-Input-Service-Distribution-Overview
      title: GST Input Service Distribution Overview
      label: possibly related
      why: Documents GST Input Service Distribution requiring setup on locations for distributing input tax credits.
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/India/GST-001-Basic-Setup
      title: Set Up Goods and Services Tax
      label: possibly related
      why: Explains GST setup in India including location state configuration for tax calculations and posting.
      by: model
number: 13334
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13334
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-29T09:25:10Z"
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: 1459
  deletions: 1483
  al: 1
apps:
  - INGST
objects_touched:
  - key: codeunit/18017
    page: codeunit/18017-in
    type: codeunit
    id: 18017
    name: GST Tax Configuration
    app: INGST
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 656831
systems:
  - finance
quote: Updated both lookups to use Location.State Code, filtered by Purchase Line.Location Code.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13334 [Main] Fix #656831: Use location state for ISD purchase credit memo posting

> Interstate ISD purchase credit memo posting now correctly uses the location's state instead of the vendor's state when retrieving GST posting setup and G/L accounts.

[Pull request](https://github.com/microsoft/BCApps/pull/13334) · merged into `main` (BC30) on 2026-10-29 by v-ajaztabrez · 2 files (+1459 -1483), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixed GST posting setup lookup to filter by location state rather than vendor state
- Updated detailed GST ledger G/L account lookup to use location state code
- Resolves posting failures when vendor state differs from purchase line location state
- Incremented use case version from 2 to 3 and updated GST configuration registry
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 18017 "GST Tax Configuration"](../../objects/codeunit/18017-in.md), INGST (IN layer): modified

## Context

- Work items: AB#656831
- Labels: Team: Finance
- Systems: finance
- From the description: "Updated both lookups to use Location.State Code, filtered by Purchase Line.Location Code."

## Possibly related

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

- [GST Input Service Distribution Overview](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/India/GST-Input-Service-Distribution-Overview) — possibly related: Documents GST Input Service Distribution requiring setup on locations for distributing input tax credits. (model-linked)
- [Set Up Goods and Services Tax](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/India/GST-001-Basic-Setup) — possibly related: Explains GST setup in India including location state configuration for tax calculations and 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).
