---
title: "Codeunit 912 Calculate Assembly Cost"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/912-calculate-assembly-cost/
type: codeunit
id: 912
name: "Calculate Assembly Cost"
app: "Base Application"
namespace: Microsoft.Assembly.Costing
versions: "26-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/912-calculate-assembly-cost/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 912 Calculate Assembly Cost

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/912-calculate-assembly-cost/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Assembly.Costing |
| Versions | 26-28 |
| Source file | Assembly/Costing/CalculateAssemblyCost.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetProperties | (Date, Boolean, Boolean, Text[50], Boolean) | - | public | 26-28 | - | - |
| TestPreconditions | (var Record Item) | - | public | 26-28 | - | - |
| CalcItem | (Code[20]) | - | public | 26-28 | - | - |
| CalcItems | (var Record Item, var Record Item) | - | public | 26-28 | - | - |
| CalcAssemblyItemPrice | (Code[20]) | - | public | 26-28 | - | - |
| CalculateAssemblyCostExp | (Record Assembly Header, var Decimal) | - | public | 26-28 | - | - |
| CalcOverHeadAmt | (Decimal, Decimal, Decimal) | Decimal | public | 26-28 | - | - |
| CalcAsmOrderStatistics | (Record Assembly Header, var Decimal) | - | public | 26-28 | - | - |
| CalcPostedAsmOrderStatistics | (Record Posted Assembly Header, var Decimal) | - | public | 26-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterSetProperties | (var Date, var Boolean, var Boolean, var Text[50], var Boolean) | 26-28 | - | - |
| Integration event | OnBeforeCalcItems | (var Record Item) | 26-28 | - | - |
| Integration event | OnBeforeCalcItem | (var Record Item, var Boolean) | 26-28 | - | - |
| Integration event | OnCalcAssemblyItemOnAfterInitItemCost | (var Record Item) | 26-28 | - | - |
| Integration event | OnCalcAssemblyItemOnAfterCalcItemRolledupCost | (var Record Item) | 26-28 | - | - |
| Integration event | OnCalcAssemblyItemOnAfterCalcSingleLevelCost | (var Record Item) | 26-28 | - | - |
| Integration event | OnCalcAssemblyItemOnAfterCalcItemCost | (var Record Item, Record Item, Record BOM Component, Decimal) | 26-28 | - | - |
| Integration event | OnCalcItemOnBeforeShowStrMenu | (var Record Item, var Boolean, var Boolean) | 26-28 | - | - |
| Integration event | OnCalcItemOnAfterCalcShowConfirm | (Record Item, var Boolean, var Boolean) | 26-28 | - | - |
| Integration event | OnAfterGetItem | (var Record Item, Text[50], Boolean) | 26-28 | - | - |
| Integration event | OnBeforeSetProperties | (var Date, var Boolean, var Boolean, var Text[50], var Boolean) | 26-28 | - | - |
| Integration event | OnBeforeDoCalcAssemblyItemPrice | (var Record Item, Integer, Integer, Boolean, var Boolean) | 26-28 | - | - |
| Integration event | OnDoCalcAssemblyItemPriceOnAfterSetBOMCompFilters | (var Record Item, var Record BOM Component) | 26-28 | - | - |
| Integration event | OnGetResCostOnBeforeAssignPriceListLineToTemp | (var Record Price List Line, var Record Item, Text[50]) | 26-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
