---
id: change/bcapps/9168
type: change
title: "#9168 [QM] Fix internal put-away from Quality Inspection sourcing wrong bin"
summary: Internal put-away disposition from Quality Inspection now resolves the source bin from actual Bin Content in directed put-away locations instead of relying on field naming conventions, fixing errors when items no longer exist in their original receive bins.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit qlty. disp. internal put-away
  - codeunit qlty. inventory availability
  - codeunit qlty. notification mgmt.
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:12:39.374Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: b85440bb3b33eb3d097ac6ece18ba396adbbaddd
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9168
    title: "microsoft/BCApps#9168: [QM] Fix internal put-away from Quality Inspection sourcing wrong bin"
    date: "2026-07-15"
    commit: b85440bb3b33eb3d097ac6ece18ba396adbbaddd
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/20447
    - object/codeunit/20445
    - object/codeunit/20437
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9168
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9168
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-15T11:51:41Z"
author: 6CRIPT
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - Bug
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 204
  deletions: 24
  al: 3
apps:
  - Quality Management
objects_touched:
  - key: codeunit/20447
    page: codeunit/20447
    type: codeunit
    id: 20447
    name: Qlty. Disp. Internal Put-away
    app: Quality Management
    status: modified
  - key: codeunit/20445
    page: codeunit/20445
    type: codeunit
    id: 20445
    name: Qlty. Inventory Availability
    app: Quality Management
    status: modified
  - key: codeunit/20437
    page: codeunit/20437
    type: codeunit
    id: 20437
    name: Qlty. Notification Mgmt.
    app: Quality Management
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 641562
systems:
  - development
  - integration
  - platform
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9168 [QM] Fix internal put-away from Quality Inspection sourcing wrong bin

> Internal put-away disposition from Quality Inspection now resolves the source bin from actual Bin Content in directed put-away locations instead of relying on field naming conventions, fixing errors when items no longer exist in their original receive bins.

[Pull request](https://github.com/microsoft/BCApps/pull/9168) · merged into `main` (BC30) on 2026-07-15 by 6CRIPT · 4 files (+204 -24), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Resolves source bins from real Bin Content for bin-mandatory locations, excluding receive and adjustment bins
- Validates source bins for receive-bin issues before document creation to show actionable error messages
- Displays intended quantity instead of 0 in failed creation notifications
- Falls back to naming-convention logic only for non-bin-mandatory locations or when item has no current stock
- Extracted IsReceiveBin as a reusable helper function
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 20447 "Qlty. Disp. Internal Put-away"](../../objects/codeunit/20447.md), Quality Management: modified
- [Codeunit 20445 "Qlty. Inventory Availability"](../../objects/codeunit/20445.md), Quality Management: modified
- [Codeunit 20437 "Qlty. Notification Mgmt."](../../objects/codeunit/20437.md), Quality Management: modified

## Context

- Work items: AB#641562
- Labels: AL: Apps (W1), Bug, Team: SCM
- Systems: development, integration, platform

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