---
id: change/bcapps/11907
type: change
title: "#11907 [29.x]-Incident 51000001968459: Issue while creating any import purchase invoice"
summary: Fixed inventory cost-loading for import purchase invoices with Nil-Rated GST and Non-Availment by ensuring Custom Duty is included in calculations even when GST amounts are zero.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - 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: ec7bc408ddfd81511812eb8b8e3ff4be4377e324
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11907
    title: "microsoft/BCApps#11907: [29.x]-Incident 51000001968459: Issue while creating any import purchase invoice"
    date: "2026-09-28"
    commit: ec7bc408ddfd81511812eb8b8e3ff4be4377e324
    t: null
    quote: Updated the Non-Availment cost-loading logic to continue when Custom Duty exists and restricted it to Non-Availment lines
links:
  learn: []
  objects:
    - object/codeunit/18251-in
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11907
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11907
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-09-28T03:59:46Z"
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:
  - 651538
systems:
  - finance
quote: Updated the Non-Availment cost-loading logic to continue when Custom Duty exists and restricted it to Non-Availment lines
joined_against:
  major: "29"
  commit: 1d24dd5ee2a734510f0556ccc69342d0e616db2f
---

# #11907 [29.x]-Incident 51000001968459: Issue while creating any import purchase invoice

> Fixed inventory cost-loading for import purchase invoices with Nil-Rated GST and Non-Availment by ensuring Custom Duty is included in calculations even when GST amounts are zero.

[Pull request](https://github.com/microsoft/BCApps/pull/11907) · merged into `releases/29.x` (BC29) on 2026-09-28 by v-ajaztabrez · 1 file (+6 -4), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Custom Duty now correctly included in Inventory and Direct Cost Applied entries for Nil-Rated GST imports
- Cost-loading logic continues when Custom Duty exists instead of exiting prematurely
- Logic restricted to Non-Availment lines only to prevent duplicate capitalization
- Resolves issue where Custom Duty was previously omitted from cost calculations
- 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#651538
- Labels: Team: SCM
- Systems: finance
- From the description: "Updated the Non-Availment cost-loading logic to continue when Custom Duty exists and restricted it to Non-Availment lines"

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