---
id: change/bcapps/11906
type: change
title: "#11906 [Main]-Incident 51000001968459: Issue while creating any import purchase invoice"
summary: Fixed cost-loading logic for import purchase invoices with Nil-Rated GST and Non-Availment setting to properly include Custom Duty in inventory and direct cost entries.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit gst purchase non availment
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:03:34.413Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 777e102e90a078b7256bf94b065ba50089abafa9
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11906
    title: "microsoft/BCApps#11906: [Main]-Incident 51000001968459: Issue while creating any import purchase invoice"
    date: "2026-09-26"
    commit: 777e102e90a078b7256bf94b065ba50089abafa9
    t: null
    quote: Custom Duty was not included in Inventory and Direct Cost Applied entries.
links:
  learn: []
  objects:
    - object/codeunit/18251-in
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11906
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11906
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-26T23:44:03Z"
author: v-ajaztabrez
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 6
  deletions: 4
  al: 1
apps:
  - INGST
objects_touched:
  - key: codeunit/18251
    page: codeunit/18251-in
    type: codeunit
    id: 18251
    name: GST Purchase Non Availment
    app: INGST
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 651528
systems:
  - finance
quote: Custom Duty was not included in Inventory and Direct Cost Applied entries.
joined_against:
  major: "30"
  commit: a4406cfa9e57437fedc49c53c327a199a854491e
---

# #11906 [Main]-Incident 51000001968459: Issue while creating any import purchase invoice

> Fixed cost-loading logic for import purchase invoices with Nil-Rated GST and Non-Availment setting to properly include Custom Duty in inventory and direct cost entries.

[Pull request](https://github.com/microsoft/BCApps/pull/11906) · merged into `main` (BC30) on 2026-09-26 by v-ajaztabrez · 1 file (+6 -4), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Custom Duty is now included in inventory cost for import invoices with Nil-Rated GST and Non-Availment
- Logic no longer exits prematurely when GST amount is zero if Custom Duty is present
- Non-Availment cost-loading is restricted to prevent duplicate Custom Duty capitalization in Availment scenarios
- Resolves issue where Custom Duty was missing from Inventory and Direct Cost Applied entries
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 18251 "GST Purchase Non Availment"](../../objects/codeunit/18251-in.md), INGST (IN layer): modified

## Context

- Work items: AB#651528
- Labels: Team: SCM
- Systems: finance
- From the description: "Custom Duty was not included in Inventory and Direct Cost Applied entries."

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