---
id: change/bcapps/9398
type: change
title: "#9398 [Main]Incorrect Cost Amount (Actual) in Value Entries after posting Assembly Process and calulating the assembly standard costsInitial commit"
summary: Fixes wrong Cost Amount (Actual) in value entries for assembly orders after Calc. Assembly Std. Cost. For assembly orders, the inventory adjustment now recalculates overhead from the cost shares and re-rounds it, so per-unit and per-output indirect costs match.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit calc. inventory adjmt. - order
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:31.222Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 6964344f37630df269a31156b45a4e8c6b0d00f1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9398
    title: "microsoft/BCApps#9398: [Main]Incorrect Cost Amount (Actual) in Value Entries after posting Assembly Process and calulating the assembly standard costsInitial commit"
    date: "2026-07-24"
    commit: 6964344f37630df269a31156b45a4e8c6b0d00f1
    t: null
    quote: Incorrect Cost Amount (Actual) in Value Entries after posting Assembly Process and calulating the assembly standard costs
links:
  learn: []
  objects:
    - object/codeunit/5896
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9398
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9398
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-24T05:53:22Z"
author: sanjmaurya
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - From Fork
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 239
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/5896
    page: codeunit/5896
    type: codeunit
    id: 5896
    name: Calc. Inventory Adjmt. - Order
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 642126
systems:
  - inventory
quote: Incorrect Cost Amount (Actual) in Value Entries after posting Assembly Process and calulating the assembly standard costs
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9398 [Main]Incorrect Cost Amount (Actual) in Value Entries after posting Assembly Process and calulating the assembly standard costsInitial commit

> Fixes wrong Cost Amount (Actual) in value entries for assembly orders after Calc. Assembly Std. Cost. For assembly orders, the inventory adjustment now recalculates overhead from the cost shares and re-rounds it, so per-unit and per-output indirect costs match.

[Pull request](https://github.com/microsoft/BCApps/pull/9398) · merged into `main` (BC30) on 2026-07-24 by sanjmaurya (community contribution) · 2 files (+239 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Root cause: per-unit and per-output indirect costs were rounded inconsistently after the standard cost was recalculated with high precision
- For assembly orders, overhead is recomputed after the if/else in codeunit 5896, whichever branch ran
- Costs are rounded, then indirect cost and unit cost are recalculated
- A test was added to SCMCalculateAssemblyCost
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 5896 "Calc. Inventory Adjmt. - Order"](../../objects/codeunit/5896.md), Base Application: modified

## Context

- Work items: AB#642126
- Labels: ADO: Sync, From Fork, Team: SCM
- Systems: inventory
- From the description: "Incorrect Cost Amount (Actual) in Value Entries after posting Assembly Process and calulating the assembly standard costs"

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