---
id: change/bcapps/11714
type: change
title: "#11714 [Main]-Adjust Cost creates an additional unexpected variance amount due to rounding precision during cost adjustment."
summary: Cost adjustment for assembly items now uses unit-amount rounding precision instead of general ledger setup precision, eliminating unexpected variance amounts from rounding differences.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit inventory adjustment
  - tableextension asm. inventory adjmt. entry
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-16T01:17:10.523Z"
  flags: []
generated:
  at: "2026-10-29T00:16:37.959Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 54c94ad8deb9378897f5e7b219862b923a699eeb
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11714
    title: "microsoft/BCApps#11714: [Main]-Adjust Cost creates an additional unexpected variance amount due to rounding precision during cost adjustment."
    date: "2026-10-14"
    commit: 54c94ad8deb9378897f5e7b219862b923a699eeb
    t: null
    quote: GetUnitCostsFromItem() rounds the cost shares using Unit-Amount Rounding Precision (0.00001).
links:
  learn: []
  objects:
    - object/codeunit/5895
    - object/tableextension/990
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/inventory-how-adjust-item-costs
      title: Manually adjust the costs of items
      label: possibly related
      why: Documents manually adjusting item costs and handling cost variances during inventory adjustments.
      by: model
number: 11714
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11714
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-14T20:39:20Z"
author: DeepsShukla
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 5
  additions: 101
  deletions: 5
  al: 4
apps:
  - Base Application
objects_touched:
  - key: codeunit/5895
    page: codeunit/5895
    type: codeunit
    id: 5895
    name: Inventory Adjustment
    app: Base Application
    status: modified
  - key: tableextension/990
    page: tableextension/990
    type: tableextension
    id: 990
    name: Asm. Inventory Adjmt. Entry
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/APAC/BaseApp/Inventory/Costing/InventoryAdjustment.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 651000
systems:
  - inventory
quote: GetUnitCostsFromItem() rounds the cost shares using Unit-Amount Rounding Precision (0.00001).
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #11714 [Main]-Adjust Cost creates an additional unexpected variance amount due to rounding precision during cost adjustment.

> Cost adjustment for assembly items now uses unit-amount rounding precision instead of general ledger setup precision, eliminating unexpected variance amounts from rounding differences.

[Pull request](https://github.com/microsoft/BCApps/pull/11714) · merged into `main` (BC30) on 2026-10-14 by DeepsShukla · 5 files (+101 -5), 4 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- During cost adjustment, cost shares are now rounded with unit-amount precision (0.00001) instead of the G/L Setup amount rounding precision
- Removes an unexpected extra variance that rounding created during cost adjustment of assembly items
- The Inventory Adjustment codeunit is changed in the W1, APAC and RU layers, and the Asm. Inventory Adjmt. Entry table extension in W1
- Adds a regression test to SCM Costing Bugs II
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 5895 "Inventory Adjustment"](../../objects/codeunit/5895.md), Base Application: modified
- [Table extension 990 "Asm. Inventory Adjmt. Entry"](../../objects/tableextension/990.md), Base Application: modified
- `src/Layers/APAC/BaseApp/Inventory/Costing/InventoryAdjustment.Codeunit.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#651000
- Labels: Team: SCM
- Systems: inventory
- From the description: "GetUnitCostsFromItem() rounds the cost shares using Unit-Amount Rounding Precision (0.00001)."

## Possibly related

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

- [Manually adjust the costs of items](https://learn.microsoft.com/dynamics365/business-central/inventory-how-adjust-item-costs) — possibly related: Documents manually adjusting item costs and handling cost variances during inventory adjustments. (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).
