---
id: change/bcapps/11359
type: change
title: "#11359 [Master] - Bug 648886: [Sustainability][Value Chain] Transfer Order uses average emissions instead of Specific carbon tracking (lot/serial)"
summary: Sustainability posting now correctly tracks specific emissions for lots and serial numbers across transfer orders, preventing the use of average emissions on later sales.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit sustainability post mgt
system: sustainability
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:04:51.214Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: b6861a2327bddf153088a404df2e78ceec935b5e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11359
    title: "microsoft/BCApps#11359: [Master] - Bug 648886: [Sustainability][Value Chain] Transfer Order uses average emissions instead of Specific carbon tracking (lot/serial)"
    date: "2026-09-15"
    commit: b6861a2327bddf153088a404df2e78ceec935b5e
    t: null
    quote: Restrict the recursive transfer-shipment application traversal to entries with the same Lot No. and Serial No.
links:
  learn: []
  objects:
    - object/codeunit/6212
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11359
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11359
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-15T15:30:34Z"
author: v-rohangarg20
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 123
  deletions: 2
  al: 1
apps:
  - Sustainability
objects_touched:
  - key: codeunit/6212
    page: codeunit/6212
    type: codeunit
    id: 6212
    name: Sustainability Post Mgt
    app: Sustainability
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 648886
systems:
  - sustainability
quote: Restrict the recursive transfer-shipment application traversal to entries with the same Lot No. and Serial No.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11359 [Master] - Bug 648886: [Sustainability][Value Chain] Transfer Order uses average emissions instead of Specific carbon tracking (lot/serial)

> Sustainability posting now correctly tracks specific emissions for lots and serial numbers across transfer orders, preventing the use of average emissions on later sales.

[Pull request](https://github.com/microsoft/BCApps/pull/11359) · merged into `main` (BC30) on 2026-09-15 by v-rohangarg20 · 2 files (+123 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Transfer shipment application traversal is restricted to entries with the same Lot No. and Serial No. as the transfer entry
- Prevents emissions from other lots or serials in the same transfer from being aggregated
- Later sales of Specific-tracked items use the selected tracking emission instead of an average
- Added a posting test covering the scenario
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6212 "Sustainability Post Mgt"](../../objects/codeunit/6212.md), Sustainability: modified

## Context

- Work items: AB#648886
- Labels: AL: Apps (W1), Team: Finance
- Systems: sustainability
- From the description: "Restrict the recursive transfer-shipment application traversal to entries with the same Lot No. and Serial No."

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