---
id: change/bcapps/12868
type: change
title: "#12868 [29x]-Adjust Cost creates an additional unexpected variance amount due to rounding precision during cost adjustment"
summary: Fixed a rounding precision issue in the Adjust Cost process that was creating unexpected variance amounts during inventory cost adjustments.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - codeunit inventory adjustment
  - tableextension asm. inventory adjmt. entry
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-22T01:10:52.904Z"
  flags: []
generated:
  at: "2026-11-25T00:13:20.045Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: e9be5bb80644ee0302e5a7eb3b0b01e1c91cb5fc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12868
    title: "microsoft/BCApps#12868: [29x]-Adjust Cost creates an additional unexpected variance amount due to rounding precision during cost adjustment"
    date: "2026-10-21"
    commit: e9be5bb80644ee0302e5a7eb3b0b01e1c91cb5fc
    t: null
    quote: Adjust Cost creates an additional unexpected variance amount due to rounding precision during cost adjustment
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: Manually adjust item costs documents cost adjustment processes affected by rounding precision issues.
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/design-details-inventory-adjustment-value-entry-source-entry
      title: Posting date on adjustment value entry compared to the source entry
      label: possibly related
      why: Posting dates on adjustment value entries explains how General Ledger Setup affects cost adjustment timing.
      by: model
number: 12868
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12868
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-10-21T16:05:07Z"
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: 103
  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:
  - 654418
systems:
  - inventory
quote: Adjust Cost creates an additional unexpected variance amount due to rounding precision during cost adjustment
joined_against:
  major: "29"
  commit: e646fc169eb3bb7b1947b2089ed943d91dec46b0
---

# #12868 [29x]-Adjust Cost creates an additional unexpected variance amount due to rounding precision during cost adjustment

> Fixed a rounding precision issue in the Adjust Cost process that was creating unexpected variance amounts during inventory cost adjustments.

[Pull request](https://github.com/microsoft/BCApps/pull/12868) · merged into `releases/29.x` (BC29) on 2026-10-21 by DeepsShukla · 5 files (+103 -5), 4 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Rounding precision errors were causing additional variances during cost adjustment calculations
- The fix applies to inventory and assembly costing modules
- Test case added to verify the rounding behavior is correct
- Changes affect both W1 and localized versions (APAC, RU)
- 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 BC29 snapshot

## Context

- Work items: AB#654418
- Labels: Team: SCM
- Systems: inventory
- From the description: "Adjust Cost creates an additional unexpected variance amount due to rounding precision during cost adjustment"

## 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: Manually adjust item costs documents cost adjustment processes affected by rounding precision issues. (model-linked)
- [Posting date on adjustment value entry compared to the source entry](https://learn.microsoft.com/dynamics365/business-central/design-details-inventory-adjustment-value-entry-source-entry) — possibly related: Posting dates on adjustment value entries explains how General Ledger Setup affects cost adjustment timing. (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).
