codeunitInventoryofficial - Microsoftderived - from the source, no model text

Codeunit 5836 "Cost Calculation Management"

Base Application · Microsoft.Inventory.Costing

Across versions

  1. BC23present
  2. BC244 events added, 2 procedures changed
  3. BC255 procedures removed, 3 procedures added
  4. BC2644 procedures added, 26 events removed
  5. BC271 procedures added, 1 events added
  6. BC283 procedures removed
  7. BC2946 procedures removed, 26 events removed
  8. BC30unchanged

Neighbourhood 22 connected objects and pages

Codeunit 99000758 "Mfg. Cost Calculation Mgt." (event subscribers)Mfg. Cost Calculation Mgt.Codeunit 5812 "Calculate Standard Cost" (calls, 6 links)Calculate Standard CostCodeunit 90 "Purch.-Post" (calls, 4 links)Purch.-PostCodeunit 5896 "Calc. Inventory Adjmt. - Order" (calls, 3 links)Calc. Inventory Adjmt. - OrderCodeunit 6476 "Serv. Cost Calculation Mgt." (calls, 3 links)Serv. Cost Calculation Mgt.Codeunit 1302 "Customer Mgt." (calls, 2 links)Customer Mgt.Codeunit 5402 "Unit of Measure Management" (calls, 2 links)Unit of Measure ManagementCodeunit 80 "Sales-Post" (calls, 2 links)Sales-PostPage 151 "Customer Statistics" (calls, 2 links)Customer StatisticsPage 397 "Sales Invoice Statistics" (calls, 2 links)Sales Invoice StatisticsPage 398 "Sales Credit Memo Statistics" (calls, 2 links)Sales Credit Memo StatisticsCodeunit 22 "Item Jnl.-Post Line" (calls)Item Jnl.-Post LineCodeunit 361 "MoveEntries" (calls)MoveEntriesCodeunit 5802 "Inventory Posting To G/L" (calls)Codeunit 5804 "ItemCostManagement" (calls)ItemCostManagementCodeunit 6225 "Sust. Purchase Subscriber" (calls)Codeunit 912 "Calculate Assembly Cost" (calls)Codeunit 924 "Asm. Item Journal Mgt." (calls)Codeunit 99000758 "Mfg. Cost Calculation Mgt." (calls)Report 5872 "BOM Cost Share Distribution" (calls)Table 83 "Item Journal Line" (calls)Table extension 99000751 "Mfg. Purchase Line" (calls)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · Microsoft.Inventory.Costing · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
SingleInstance true
Permissions TableData “Item Ledger Entry” = r, TableData “Value Entry” = r

Events published

  • OnBeforeCalcSalesLineCostLCY(SalesLine: Record "Sales Line"; QtyType: Option General,Invoicing; var IsHandled: Boolean; var TotalAdjCostLCY: Decimal) + BC24 (integration)
  • OnCalcSalesLineShptAdjCostLCYBeforeSalesShptLineFind(var SalesShptLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line") + BC24 (integration)
  • OnCalcCustActualCostLCYOnAfterFilterValueEntry(var Customer: Record Customer; var ValueEntry: Record "Value Entry") + BC24 (integration)
  • OnCalcCustActualCostLCYOnAfterFilterResLedgerEntry(var Customer: Record Customer; var ResLedgerEntry: Record "Res. Ledger Entry") + BC24 (integration)
  • OnBeforeRelatedReturnReceiptExists(var SalesShptLine: Record "Sales Shipment Line"; var ReturnRcptLine: Record "Return Receipt Line"; var IsHandled: Boolean) + BC25 (integration)
  • OnBeforeSetFiltersRelatedReturnReceiptExists(var SalesShptLine: Record "Sales Shipment Line"; var ReturnRcptLine: Record "Return Receipt Line"; var ReturnValue: Boolean; var IsHandled: Boolean) + BC25 (integration)
  • OnCanIncNonInvCostIntoProductionItem(var Result: Boolean) + BC27 (integration)

Procedures

  • ResourceCostPerUnit(No: Code[20]; var DirUnitCost: Decimal; var IndirCostPct: Decimal; var OvhdRate: Decimal; var UnitCost: Decimal)
  • CalcDirCost(Cost: Decimal; OvhdCost: Decimal; VarPurchCost: Decimal): Decimal
  • CalcDirUnitCost(UnitCost: Decimal; OvhdRate: Decimal; IndirCostPct: Decimal): Decimal
  • CalcOvhdCost(DirCost: Decimal; IndirCostPct: Decimal; OvhdRate: Decimal; QtyBase: Decimal): Decimal
  • CalcUnitCost(DirCost: Decimal; IndirCostPct: Decimal; OvhdRate: Decimal; RndgPrec: Decimal): Decimal
  • GetRndgSetup(var GLSetup: Record "General Ledger Setup"; var Currency: Record Currency; var RndgSetupRead: Boolean)
  • TransferCost(var Cost: Decimal; var UnitCost: Decimal; SrcCost: Decimal; Qty: Decimal; UnitAmtRndgPrec: Decimal)
  • SplitItemLedgerEntriesExist(var TempItemLedgEntry: Record "Item Ledger Entry" temporary; QtyBase: Decimal; ItemLedgEntryNo: Integer): Boolean
  • CalcSalesLineCostLCY(SalesLine: Record "Sales Line"; QtyType: Option General,Invoicing): Decimal
  • CalcSalesLineShptAdjCostLCY(SalesLine: Record "Sales Line"; QtyType: Option General,Invoicing; var TotalAdjCostLCY: Decimal; var PostedQtyBase: Decimal; var RemQtyToCalcBase: Decimal) Δ BC24
  • CalcSalesLineRcptAdjCostLCY(SalesLine: Record "Sales Line"; QtyType: Option General,Invoicing; var TotalAdjCostLCY: Decimal; var PostedQtyBase: Decimal; var RemQtyToCalcBase: Decimal) Δ BC24
  • CalcPostedDocLineCostLCY(var ItemLedgEntry: Record "Item Ledger Entry"; QtyType: Option General,Invoicing,Shipping,Consuming): Decimal Δ BC25
  • CalcSalesInvLineCostLCY(SalesInvLine: Record "Sales Invoice Line"): Decimal
  • CalcSalesInvLineNonInvtblCostAmt(SalesInvoiceLine: Record "Sales Invoice Line"): Decimal
  • CalcSalesCrMemoLineCostLCY(SalesCrMemoLine: Record "Sales Cr.Memo Line"): Decimal
  • CalcSalesCrMemoLineNonInvtblCostAmt(SalesCrMemoLine: Record "Sales Cr.Memo Line"): Decimal
  • CalcCustLedgAdjmtCostLCY(CustLedgEntry: Record "Cust. Ledger Entry"): Decimal
  • CalcCustAdjmtCostLCY(var Customer: Record Customer): Decimal
  • CalcCustLedgActualCostLCY(CustLedgEntry: Record "Cust. Ledger Entry"): Decimal
  • CalcCustActualCostLCY(var Customer: Record Customer): Decimal
  • NonInvtblCostAmt(var Customer: Record Customer): Decimal
  • SumValueEntriesCostAmt(var ValueEntry: Record "Value Entry"): Decimal
  • GetDocType(TableNo: Integer): Integer
  • AdjustForRevNegCon(var ActMatCost: Decimal; var ActMatCostCostACY: Decimal; var ItemLedgEntry: Record "Item Ledger Entry")
  • CanIncNonInvCostIntoProductionItem(): Boolean + BC27

Plus 4 local procedures.

Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.

Called by

Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Cost Calculation Management"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources