Share via


Codeunit "Cost Calculation Management"

ID 5836
Namespace: Microsoft.Inventory.Costing

Properties

Name Value
Permissions TableData "Item Ledger Entry" = r, TableData "Value Entry" = r
SingleInstance True

Methods

ResourceCostPerUnit

procedure ResourceCostPerUnit(No: Code[20], var DirUnitCost: Decimal, var IndirCostPct: Decimal, var OvhdRate: Decimal, var UnitCost: Decimal)

Parameters

Name Type Description
No Code[20]
DirUnitCost Decimal
IndirCostPct Decimal
OvhdRate Decimal
UnitCost Decimal

CalcRoutingCostPerUnit

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcRoutingCostPerUnit(Type: Enum "Capacity Type", No: Code[20], var DirUnitCost: Decimal, var IndirCostPct: Decimal, var OvhdRate: Decimal, var UnitCost: Decimal, var UnitCostCalculation: Enum "Unit Cost Calculation Type")

Parameters

Name Type Description
Type Enum Microsoft.Manufacturing.Capacity."Capacity Type"
No Code[20]
DirUnitCost Decimal
IndirCostPct Decimal
OvhdRate Decimal
UnitCost Decimal
UnitCostCalculation Enum Microsoft.Foundation.Enums."Unit Cost Calculation Type"

CalcRoutingCostPerUnit

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcRoutingCostPerUnit(Type: Enum "Capacity Type", var DirUnitCost: Decimal, var IndirCostPct: Decimal, var OvhdRate: Decimal, var UnitCost: Decimal, var UnitCostCalculation: Enum "Unit Cost Calculation Type", WorkCenter: Record "Work Center", MachineCenter: Record "Machine Center")

Parameters

Name Type Description
Type Enum Microsoft.Manufacturing.Capacity."Capacity Type"
DirUnitCost Decimal
IndirCostPct Decimal
OvhdRate Decimal
UnitCost Decimal
UnitCostCalculation Enum Microsoft.Foundation.Enums."Unit Cost Calculation Type"
WorkCenter Table Microsoft.Manufacturing.WorkCenter."Work Center"
MachineCenter Table Microsoft.Manufacturing.MachineCenter."Machine Center"

CalcShareOfTotalCapCost

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcShareOfTotalCapCost(ProdOrderLine: Record "Prod. Order Line", var ShareOfTotalCapCost: Decimal)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ShareOfTotalCapCost Decimal

CalcProdOrderLineStdCost

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcProdOrderLineStdCost(ProdOrderLine: Record "Prod. Order Line", CurrencyFactor: Decimal, RndgPrec: Decimal, var StdMatCost: Decimal, var StdCapDirCost: Decimal, var StdSubDirCost: Decimal, var StdCapOvhdCost: Decimal, var StdMfgOvhdCost: Decimal)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
CurrencyFactor Decimal
RndgPrec Decimal
StdMatCost Decimal
StdCapDirCost Decimal
StdSubDirCost Decimal
StdCapOvhdCost Decimal
StdMfgOvhdCost Decimal

CalcProdOrderLineExpCost

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcProdOrderLineExpCost(ProdOrderLine: Record "Prod. Order Line", ShareOfTotalCapCost: Decimal, var ExpMatCost: Decimal, var ExpCapDirCost: Decimal, var ExpSubDirCost: Decimal, var ExpCapOvhdCost: Decimal, var ExpMfgOvhdCost: Decimal)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ShareOfTotalCapCost Decimal
ExpMatCost Decimal
ExpCapDirCost Decimal
ExpSubDirCost Decimal
ExpCapOvhdCost Decimal
ExpMfgOvhdCost Decimal

CalcProdOrderLineActCost

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcProdOrderLineActCost(ProdOrderLine: Record "Prod. Order Line", var ActMatCost: Decimal, var ActCapDirCost: Decimal, var ActSubDirCost: Decimal, var ActCapOvhdCost: Decimal, var ActMfgOvhdCost: Decimal, var ActMatCostCostACY: Decimal, var ActCapDirCostACY: Decimal, var ActSubDirCostACY: Decimal, var ActCapOvhdCostACY: Decimal, var ActMfgOvhdCostACY: Decimal)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ActMatCost Decimal
ActCapDirCost Decimal
ActSubDirCost Decimal
ActCapOvhdCost Decimal
ActMfgOvhdCost Decimal
ActMatCostCostACY Decimal
ActCapDirCostACY Decimal
ActSubDirCostACY Decimal
ActCapOvhdCostACY Decimal
ActMfgOvhdCostACY Decimal

CalcProdOrderExpCapNeed

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcProdOrderExpCapNeed(ProdOrder: Record "Production Order", DrillDown: Boolean): Decimal

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
DrillDown Boolean

Returns

Type Description
Decimal

CalcProdOrderActTimeUsed

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcProdOrderActTimeUsed(ProdOrder: Record "Production Order", DrillDown: Boolean): Decimal

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
DrillDown Boolean

Returns

Type Description
Decimal

CalcOutputQtyBaseOnPurchOrder

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcOutputQtyBaseOnPurchOrder(ProdOrderLine: Record "Prod. Order Line", ProdOrderRtngLine: Record "Prod. Order Routing Line"): Decimal

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

Returns

Type Description
Decimal

CalcActOutputQtyBase

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcActOutputQtyBase(var ProdOrderLine: Record "Prod. Order Line", ProdOrderRtngLine: Record "Prod. Order Routing Line"): Decimal

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

Returns

Type Description
Decimal

CalcActualOutputQtyWithNoCapacity

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcActualOutputQtyWithNoCapacity(ProdOrderLine: Record "Prod. Order Line", ProdOrderRtngLine: Record "Prod. Order Routing Line"): Decimal

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

Returns

Type Description
Decimal

CalcActQtyBase

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcActQtyBase(ProdOrderLine: Record "Prod. Order Line", ProdOrderRtngLine: Record "Prod. Order Routing Line"): Decimal

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

Returns

Type Description
Decimal

CalcActOperOutputAndScrap

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcActOperOutputAndScrap(ProdOrderLine: Record "Prod. Order Line", ProdOrderRtngLine: Record "Prod. Order Routing Line"): Decimal

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

Returns

Type Description
Decimal

CalcActNeededQtyBase

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcActNeededQtyBase(ProdOrderLine: Record "Prod. Order Line", ProdOrderComp: Record "Prod. Order Component", OutputQtyBase: Decimal): Decimal

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
OutputQtyBase Decimal

Returns

Type Description
Decimal

CalcActTimeAndQtyBase

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcActTimeAndQtyBase(ProdOrderLine: Record "Prod. Order Line", OperationNo: Code[10], var ActRunTime: Decimal, var ActSetupTime: Decimal, var ActOutputQty: Decimal, var ActScrapQty: Decimal)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
OperationNo Code[10]
ActRunTime Decimal
ActSetupTime Decimal
ActOutputQty Decimal
ActScrapQty Decimal

CalcCompItemQtyBase

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcCompItemQtyBase(ProdBOMComponent: Record "Production BOM Line", CalculationDate: Date, MfgItemQtyBase: Decimal, RtngNo: Code[20], AdjdForRtngScrap: Boolean): Decimal

Parameters

Name Type Description
ProdBOMComponent Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
CalculationDate Date
MfgItemQtyBase Decimal
RtngNo Code[20]
AdjdForRtngScrap Boolean

Returns

Type Description
Decimal

CalculateCostTime

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalculateCostTime(MfgItemQtyBase: Decimal, SetupTime: Decimal, SetupTimeUOMCode: Code[10], RunTime: Decimal, RunTimeUOMCode: Code[10], RtngLotSize: Decimal, ScrapFactorPctAccum: Decimal, FixedScrapQtyAccum: Decimal, WorkCenterNo: Code[20], UnitCostCalculation: Enum "Unit Cost Calculation Type", CostInclSetup: Boolean, ConcurrentCapacities: Decimal): Decimal

Parameters

Name Type Description
MfgItemQtyBase Decimal
SetupTime Decimal
SetupTimeUOMCode Code[10]
RunTime Decimal
RunTimeUOMCode Code[10]
RtngLotSize Decimal
ScrapFactorPctAccum Decimal
FixedScrapQtyAccum Decimal
WorkCenterNo Code[20]
UnitCostCalculation Enum Microsoft.Foundation.Enums."Unit Cost Calculation Type"
CostInclSetup Boolean
ConcurrentCapacities Decimal

Returns

Type Description
Decimal

CalcQtyAdjdForBOMScrap

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcQtyAdjdForBOMScrap(Qty: Decimal, ScrapPct: Decimal): Decimal

Parameters

Name Type Description
Qty Decimal
ScrapPct Decimal

Returns

Type Description
Decimal

CalcQtyAdjdForRoutingScrap

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure CalcQtyAdjdForRoutingScrap(Qty: Decimal, ScrapFactorPctAccum: Decimal, FixedScrapQtyAccum: Decimal): Decimal

Parameters

Name Type Description
Qty Decimal
ScrapFactorPctAccum Decimal
FixedScrapQtyAccum Decimal

Returns

Type Description
Decimal

CalcDirCost

procedure CalcDirCost(Cost: Decimal, OvhdCost: Decimal, VarPurchCost: Decimal): Decimal

Parameters

Name Type Description
Cost Decimal
OvhdCost Decimal
VarPurchCost Decimal

Returns

Type Description
Decimal

CalcDirUnitCost

procedure CalcDirUnitCost(UnitCost: Decimal, OvhdRate: Decimal, IndirCostPct: Decimal): Decimal

Parameters

Name Type Description
UnitCost Decimal
OvhdRate Decimal
IndirCostPct Decimal

Returns

Type Description
Decimal

CalcOvhdCost

procedure CalcOvhdCost(DirCost: Decimal, IndirCostPct: Decimal, OvhdRate: Decimal, QtyBase: Decimal): Decimal

Parameters

Name Type Description
DirCost Decimal
IndirCostPct Decimal
OvhdRate Decimal
QtyBase Decimal

Returns

Type Description
Decimal

CalcUnitCost

procedure CalcUnitCost(DirCost: Decimal, IndirCostPct: Decimal, OvhdRate: Decimal, RndgPrec: Decimal): Decimal

Parameters

Name Type Description
DirCost Decimal
IndirCostPct Decimal
OvhdRate Decimal
RndgPrec Decimal

Returns

Type Description
Decimal

FindRountingLine

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
procedure FindRountingLine(var RoutingLine: Record "Routing Line", ProdBOMLine: Record "Production BOM Line", CalculationDate: Date, RoutingNo: Code[20]): Boolean

Parameters

Name Type Description
RoutingLine Table Microsoft.Manufacturing.Routing."Routing Line"
ProdBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
CalculationDate Date
RoutingNo Code[20]

Returns

Type Description
Boolean

GetRndgSetup

procedure GetRndgSetup(var GLSetup: Record "General Ledger Setup", var Currency: Record Currency, var RndgSetupRead: Boolean)

Parameters

Name Type Description
GLSetup Table Microsoft.Finance.GeneralLedger.Setup."General Ledger Setup"
Currency Table Microsoft.Finance.Currency.Currency
RndgSetupRead Boolean

TransferCost

procedure TransferCost(var Cost: Decimal, var UnitCost: Decimal, SrcCost: Decimal, Qty: Decimal, UnitAmtRndgPrec: Decimal)

Parameters

Name Type Description
Cost Decimal
UnitCost Decimal
SrcCost Decimal
Qty Decimal
UnitAmtRndgPrec Decimal

SplitItemLedgerEntriesExist

procedure SplitItemLedgerEntriesExist(var TempItemLedgEntry: Record "Item Ledger Entry" temporary, QtyBase: Decimal, ItemLedgEntryNo: Integer): Boolean

Parameters

Name Type Description
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
QtyBase Decimal
ItemLedgEntryNo Integer

Returns

Type Description
Boolean

CalcSalesLineCostLCY

procedure CalcSalesLineCostLCY(SalesLine: Record "Sales Line", QtyType: Option): Decimal

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
QtyType Option

Returns

Type Description
Decimal

CalcSalesLineShptAdjCostLCY

procedure CalcSalesLineShptAdjCostLCY(SalesLine: Record "Sales Line", QtyType: Option, var TotalAdjCostLCY: Decimal, var PostedQtyBase: Decimal, var RemQtyToCalcBase: Decimal)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
QtyType Option
TotalAdjCostLCY Decimal
PostedQtyBase Decimal
RemQtyToCalcBase Decimal

CalcSalesLineRcptAdjCostLCY

procedure CalcSalesLineRcptAdjCostLCY(SalesLine: Record "Sales Line", QtyType: Option, var TotalAdjCostLCY: Decimal, var PostedQtyBase: Decimal, var RemQtyToCalcBase: Decimal)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
QtyType Option
TotalAdjCostLCY Decimal
PostedQtyBase Decimal
RemQtyToCalcBase Decimal

CalcPostedDocLineCostLCY

procedure CalcPostedDocLineCostLCY(var ItemLedgEntry: Record "Item Ledger Entry", QtyType: Option): Decimal

Parameters

Name Type Description
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
QtyType Option

Returns

Type Description
Decimal

CalcSalesInvLineCostLCY

procedure CalcSalesInvLineCostLCY(SalesInvLine: Record "Sales Invoice Line"): Decimal

Parameters

Name Type Description
SalesInvLine Table Microsoft.Sales.History."Sales Invoice Line"

Returns

Type Description
Decimal

CalcSalesInvLineNonInvtblCostAmt

procedure CalcSalesInvLineNonInvtblCostAmt(SalesInvoiceLine: Record "Sales Invoice Line"): Decimal

Parameters

Name Type Description
SalesInvoiceLine Table Microsoft.Sales.History."Sales Invoice Line"

Returns

Type Description
Decimal

CalcSalesCrMemoLineCostLCY

procedure CalcSalesCrMemoLineCostLCY(SalesCrMemoLine: Record "Sales Cr.Memo Line"): Decimal

Parameters

Name Type Description
SalesCrMemoLine Table Microsoft.Sales.History."Sales Cr.Memo Line"

Returns

Type Description
Decimal

CalcSalesCrMemoLineNonInvtblCostAmt

procedure CalcSalesCrMemoLineNonInvtblCostAmt(SalesCrMemoLine: Record "Sales Cr.Memo Line"): Decimal

Parameters

Name Type Description
SalesCrMemoLine Table Microsoft.Sales.History."Sales Cr.Memo Line"

Returns

Type Description
Decimal

CalcServCrMemoLineCostLCY

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit Serv. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Serv. Cost Calculation Mgt.,25.0)]
procedure CalcServCrMemoLineCostLCY(ServCrMemoLine: Record "Service Cr.Memo Line"): Decimal

Parameters

Name Type Description
ServCrMemoLine Table Microsoft.Service.History."Service Cr.Memo Line"

Returns

Type Description
Decimal

CalcCustLedgAdjmtCostLCY

procedure CalcCustLedgAdjmtCostLCY(CustLedgEntry: Record "Cust. Ledger Entry"): Decimal

Parameters

Name Type Description
CustLedgEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

Returns

Type Description
Decimal

CalcCustAdjmtCostLCY

procedure CalcCustAdjmtCostLCY(var Customer: Record Customer): Decimal

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer

Returns

Type Description
Decimal

CalcCustLedgActualCostLCY

procedure CalcCustLedgActualCostLCY(CustLedgEntry: Record "Cust. Ledger Entry"): Decimal

Parameters

Name Type Description
CustLedgEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

Returns

Type Description
Decimal

CalcCustActualCostLCY

procedure CalcCustActualCostLCY(var Customer: Record Customer): Decimal

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer

Returns

Type Description
Decimal

NonInvtblCostAmt

procedure NonInvtblCostAmt(var Customer: Record Customer): Decimal

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer

Returns

Type Description
Decimal

SumValueEntriesCostAmt

procedure SumValueEntriesCostAmt(var ValueEntry: Record "Value Entry"): Decimal

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

Returns

Type Description
Decimal

GetDocType

procedure GetDocType(TableNo: Integer): Integer

Parameters

Name Type Description
TableNo Integer

Returns

Type Description
Integer

CalcServLineCostLCY

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit Serv. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Serv. Cost Calculation Mgt.,25.0)]
procedure CalcServLineCostLCY(ServLine: Record "Service Line", QtyType: Option): Decimal

Parameters

Name Type Description
ServLine Table Microsoft.Service.Document."Service Line"
QtyType Option

Returns

Type Description
Decimal

CalcServInvLineCostLCY

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit Serv. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Serv. Cost Calculation Mgt.,25.0)]
procedure CalcServInvLineCostLCY(ServInvLine: Record "Service Invoice Line"): Decimal

Parameters

Name Type Description
ServInvLine Table Microsoft.Service.History."Service Invoice Line"

Returns

Type Description
Decimal

AdjustForRevNegCon

procedure AdjustForRevNegCon(var ActMatCost: Decimal, var ActMatCostCostACY: Decimal, var ItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ActMatCost Decimal
ActMatCostCostACY Decimal
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

CanIncNonInvCostIntoProductionItem

procedure CanIncNonInvCostIntoProductionItem(): Boolean

Returns

Type Description
Boolean

Events

OnAfterCalcShareOfTotalCapCost

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterCalcShareOfTotalCapCost(var ProdOrderLine: Record "Prod. Order Line", var ShareOfTotalCapCost: Decimal)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ShareOfTotalCapCost Decimal

OnAfterCalcProdOrderLineExpCost

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterCalcProdOrderLineExpCost(var ProdOrderLine: Record "Prod. Order Line", var ShareOfTotalCapCost: Decimal, var ExpMatCost: Decimal, var ExpCapDirCost: Decimal, var ExpSubDirCost: Decimal, var ExpCapOvhdCost: Decimal, var ExpMfgOvhdCost: Decimal)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ShareOfTotalCapCost Decimal
ExpMatCost Decimal
ExpCapDirCost Decimal
ExpSubDirCost Decimal
ExpCapOvhdCost Decimal
ExpMfgOvhdCost Decimal

OnAfterClearWorkCenter

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterClearWorkCenter(var CapacityLedgerEntry: Record "Capacity Ledger Entry", var WorkCenter: Record "Work Center")

Parameters

Name Type Description
CapacityLedgerEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"
WorkCenter Table Microsoft.Manufacturing.WorkCenter."Work Center"

OnBeforeCalcActNeededQtyBase

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcActNeededQtyBase(var OutputQtyBase: Decimal, ProdOrderComponent: Record "Prod. Order Component", ProdOrderLine: Record "Prod. Order Line", var Result: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
OutputQtyBase Decimal
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
Result Decimal
IsHandled Boolean

OnBeforeCalcCompItemQtyBase

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcCompItemQtyBase(ProdBOMComponent: Record "Production BOM Line", CalculationDate: Date, var MfgItemQtyBase: Decimal, RtngNo: Code[20], AdjdForRtngScrap: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ProdBOMComponent Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
CalculationDate Date
MfgItemQtyBase Decimal
RtngNo Code[20]
AdjdForRtngScrap Boolean
IsHandled Boolean

OnBeforeCalcProdOrderActTimeUsed

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcProdOrderActTimeUsed(ProductionOrder: Record "Production Order", var CapacityLedgerEntry: Record "Capacity Ledger Entry")

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
CapacityLedgerEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"

OnBeforeCalcProdOrderLineStdCost

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcProdOrderLineStdCost(var ProdOrderLine: Record "Prod. Order Line", QtyBase: Decimal, CurrencyFactor: Decimal, RndgPrec: Decimal, var StdMatCost: Decimal, var StdCapDirCost: Decimal, var StdSubDirCost: Decimal, var StdCapOvhdCost: Decimal, var StdMfgOvhdCost: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
QtyBase Decimal
CurrencyFactor Decimal
RndgPrec Decimal
StdMatCost Decimal
StdCapDirCost Decimal
StdSubDirCost Decimal
StdCapOvhdCost Decimal
StdMfgOvhdCost Decimal
IsHandled Boolean

OnBeforeCalcQtyAdjdForBOMScrap

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcQtyAdjdForBOMScrap(Qty: Decimal, ScrapPct: Decimal, var QtyAdjdForBomScrap: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
Qty Decimal
ScrapPct Decimal
QtyAdjdForBomScrap Decimal
IsHandled Boolean

OnBeforeCalcQtyAdjdForRoutingScrap

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcQtyAdjdForRoutingScrap(Qty: Decimal, ScrapFactorPctAccum: Decimal, FixedScrapQtyAccum: Decimal, var QtyAdjdForRoutingScrap: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
Qty Decimal
ScrapFactorPctAccum Decimal
FixedScrapQtyAccum Decimal
QtyAdjdForRoutingScrap Decimal
IsHandled Boolean

OnBeforeCalcProdOrderExpCapNeed

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcProdOrderExpCapNeed(ProductionOrder: Record "Production Order", var ProdOrderCapacityNeed: Record "Prod. Order Capacity Need", var ProdOrderRoutingLine: Record "Prod. Order Routing Line")

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderCapacityNeed Table Microsoft.Manufacturing.Document."Prod. Order Capacity Need"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

OnBeforeCalcRoutingCostPerUnit

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcRoutingCostPerUnit(Type: Enum "Capacity Type", var DirUnitCost: Decimal, var IndirCostPct: Decimal, var OvhdRate: Decimal, var UnitCost: Decimal, var UnitCostCalculation: Enum "Unit Cost Calculation Type", WorkCenter: Record "Work Center", MachineCenter: Record "Machine Center", var IsHandled: Boolean)

Parameters

Name Type Description
Type Enum Microsoft.Manufacturing.Capacity."Capacity Type"
DirUnitCost Decimal
IndirCostPct Decimal
OvhdRate Decimal
UnitCost Decimal
UnitCostCalculation Enum Microsoft.Foundation.Enums."Unit Cost Calculation Type"
WorkCenter Table Microsoft.Manufacturing.WorkCenter."Work Center"
MachineCenter Table Microsoft.Manufacturing.MachineCenter."Machine Center"
IsHandled Boolean

OnCalcActOperOutputAndScrapOnAfterFilterCapLedgEntry

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcActOperOutputAndScrapOnAfterFilterCapLedgEntry(var CapacityLedgerEntry: Record "Capacity Ledger Entry")

Parameters

Name Type Description
CapacityLedgerEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"

OnCalcActTimeAndQtyBaseOnAfterFilterCapLedgEntry

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcActTimeAndQtyBaseOnAfterFilterCapLedgEntry(var CapacityLedgerEntry: Record "Capacity Ledger Entry")

Parameters

Name Type Description
CapacityLedgerEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"

OnCalcProdOrderLineExpCostOnExpOperCostCalculated

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderLineExpCostOnExpOperCostCalculated(var ExpOperCost: Decimal, ProdOrderRtngLine: Record "Prod. Order Routing Line")

Parameters

Name Type Description
ExpOperCost Decimal
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

OnCalcProdOrderLineStdCostOnAfterCalcSingleLevelCost

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderLineStdCostOnAfterCalcSingleLevelCost(var Item: Record Item, InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
InvtAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"

OnCalcProdOrderLineActCostOnBeforeSetProdOrderLine

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderLineActCostOnBeforeSetProdOrderLine(var ProdOrderLine: Record "Prod. Order Line", var ActMatCost: Decimal, var ActCapDirCost: Decimal, var ActSubDirCost: Decimal, var ActCapOvhdCost: Decimal, var ActMfgOvhdCost: Decimal, var ActMatCostCostACY: Decimal, var ActCapDirCostACY: Decimal, var ActSubDirCostACY: Decimal, var ActCapOvhdCostACY: Decimal, var ActMfgOvhdCostACY: Decimal)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ActMatCost Decimal
ActCapDirCost Decimal
ActSubDirCost Decimal
ActCapOvhdCost Decimal
ActMfgOvhdCost Decimal
ActMatCostCostACY Decimal
ActCapDirCostACY Decimal
ActSubDirCostACY Decimal
ActCapOvhdCostACY Decimal
ActMfgOvhdCostACY Decimal

OnCalcActOutputQtyBaseOnAfterSetFilters

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcActOutputQtyBaseOnAfterSetFilters(var CapacityLedgerEntry: Record "Capacity Ledger Entry", ProdOrderLine: Record "Prod. Order Line", ProdOrderRoutingLine: Record "Prod. Order Routing Line")

Parameters

Name Type Description
CapacityLedgerEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

OnAfterCalcRoutingCostPerUnit

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterCalcRoutingCostPerUnit(Type: Enum "Capacity Type", var DirUnitCost: Decimal, var IndirCostPct: Decimal, var OvhdRate: Decimal, var UnitCost: Decimal, var UnitCostCalculation: Enum "Unit Cost Calculation Type", WorkCenter: Record "Work Center", MachineCenter: Record "Machine Center")

Parameters

Name Type Description
Type Enum Microsoft.Manufacturing.Capacity."Capacity Type"
DirUnitCost Decimal
IndirCostPct Decimal
OvhdRate Decimal
UnitCost Decimal
UnitCostCalculation Enum Microsoft.Foundation.Enums."Unit Cost Calculation Type"
WorkCenter Table Microsoft.Manufacturing.WorkCenter."Work Center"
MachineCenter Table Microsoft.Manufacturing.MachineCenter."Machine Center"

OnCalcProdOrderActTimeUsedOnBeforeCalcQty

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderActTimeUsedOnBeforeCalcQty(CapLedgEntry: Record "Capacity Ledger Entry", var Qty: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
CapLedgEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"
Qty Decimal
IsHandled Boolean

OnCalcProdOrderActTimeUsedOnAfterCapacityLedgerEntrySetFilters

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderActTimeUsedOnAfterCapacityLedgerEntrySetFilters(var CapLedgEntry: Record "Capacity Ledger Entry", ProdOrder: Record "Production Order")

Parameters

Name Type Description
CapLedgEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"

OnCalcProdOrderExpCapNeedOnAfterProdOrderCapNeedSetFilters

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderExpCapNeedOnAfterProdOrderCapNeedSetFilters(var ProdOrderCapNeed: Record "Prod. Order Capacity Need", ProdOrder: Record "Production Order")

Parameters

Name Type Description
ProdOrderCapNeed Table Microsoft.Manufacturing.Document."Prod. Order Capacity Need"
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"

OnCalcProdOrderExpCapNeedOnBeforeMarkNotFinishedProdOrderRtngLine

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderExpCapNeedOnBeforeMarkNotFinishedProdOrderRtngLine(ProdOrderRtngLine: Record "Prod. Order Routing Line", WorkCenter: Record "Work Center", var ExpectedCapNeed: Decimal)

Parameters

Name Type Description
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
WorkCenter Table Microsoft.Manufacturing.WorkCenter."Work Center"
ExpectedCapNeed Decimal

OnCalcProdOrderLineExpCostOnAfterProdOrderCompSetFilters

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderLineExpCostOnAfterProdOrderCompSetFilters(var ProdOrderComp: Record "Prod. Order Component", ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnCalcProdOrderLineExpCostOnAfterProdOrderRtngLineSetFilters

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderLineExpCostOnAfterProdOrderRtngLineSetFilters(var ProdOrderRtngLine: Record "Prod. Order Routing Line", ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnBeforeCalcSalesLineCostLCY

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcSalesLineCostLCY(SalesLine: Record "Sales Line", QtyType: Option, var IsHandled: Boolean, var TotalAdjCostLCY: Decimal)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
QtyType Option
IsHandled Boolean
TotalAdjCostLCY Decimal

OnCalcSalesLineShptAdjCostLCYBeforeSalesShptLineFind

[IntegrationEvent(False,False)]
local procedure OnCalcSalesLineShptAdjCostLCYBeforeSalesShptLineFind(var SalesShptLine: Record "Sales Shipment Line", var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesShptLine Table Microsoft.Sales.History."Sales Shipment Line"
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnFindRountingLineOnAfterRoutingLineSetFilters

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnFindRountingLineOnAfterRoutingLineSetFilters(var RoutingLine: Record "Routing Line", ProdBOMLine: Record "Production BOM Line", CalculationDate: Date, RoutingNo: Code[20])

Parameters

Name Type Description
RoutingLine Table Microsoft.Manufacturing.Routing."Routing Line"
ProdBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
CalculationDate Date
RoutingNo Code[20]

OnBeforeCalcOutputQtyBaseOnPurchOrder

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Cost Calculation Mgt.

[Obsolete(Moved to codeunit Mfg. Cost Calculation Mgt.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcOutputQtyBaseOnPurchOrder(ProdOrderLine: Record "Prod. Order Line", ProdOrderRtngLine: Record "Prod. Order Routing Line", var OutstandingBaseQty: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
OutstandingBaseQty Decimal
IsHandled Boolean

OnCalcCustActualCostLCYOnAfterFilterValueEntry

[IntegrationEvent(False,False)]
local procedure OnCalcCustActualCostLCYOnAfterFilterValueEntry(var Customer: Record Customer, var ValueEntry: Record "Value Entry")

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnCalcCustActualCostLCYOnAfterFilterResLedgerEntry

[IntegrationEvent(False,False)]
local procedure OnCalcCustActualCostLCYOnAfterFilterResLedgerEntry(var Customer: Record Customer, var ResLedgerEntry: Record "Res. Ledger Entry")

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
ResLedgerEntry Table Microsoft.Projects.Resources.Ledger."Res. Ledger Entry"

OnBeforeRelatedReturnReceiptExists

[IntegrationEvent(False,False)]
local procedure OnBeforeRelatedReturnReceiptExists(var SalesShptLine: Record "Sales Shipment Line", var ReturnRcptLine: Record "Return Receipt Line", var IsHandled: Boolean)

Parameters

Name Type Description
SalesShptLine Table Microsoft.Sales.History."Sales Shipment Line"
ReturnRcptLine Table Microsoft.Sales.History."Return Receipt Line"
IsHandled Boolean

OnBeforeSetFiltersRelatedReturnReceiptExists

[IntegrationEvent(False,False)]
local procedure OnBeforeSetFiltersRelatedReturnReceiptExists(var SalesShptLine: Record "Sales Shipment Line", var ReturnRcptLine: Record "Return Receipt Line", var ReturnValue: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
SalesShptLine Table Microsoft.Sales.History."Sales Shipment Line"
ReturnRcptLine Table Microsoft.Sales.History."Return Receipt Line"
ReturnValue Boolean
IsHandled Boolean

OnCanIncNonInvCostIntoProductionItem

[IntegrationEvent(False,False)]
local procedure OnCanIncNonInvCostIntoProductionItem(var Result: Boolean)

Parameters

Name Type Description
Result Boolean

See also