Codeunit "Mfg. Cost Calculation Mgt."

ID 99000758
Namespace: Microsoft.Inventory.Costing

Properties

Name Value
Permissions TableData "Item Ledger Entry" = r, TableData "Prod. Order Capacity Need" = r, TableData "Value Entry" = r

Methods

CalcRoutingCostPerUnit

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

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

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

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

CalcProdOrderLineStdCost

procedure CalcProdOrderLineStdCost(ProdOrderLine: Record "Prod. Order Line", CurrencyFactor: Decimal, RndgPrec: Decimal, var StdMatCost: Decimal, var StdNonInvMatCost: 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
StdNonInvMatCost Decimal
StdCapDirCost Decimal
StdSubDirCost Decimal
StdCapOvhdCost Decimal
StdMfgOvhdCost Decimal

CalcProdOrderLineExpCost

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

CalcProdOrderLineExpCost

procedure CalcProdOrderLineExpCost(ProdOrderLine: Record "Prod. Order Line", ShareOfTotalCapCost: Decimal, var ExpMatCost: Decimal, var ExpNonInvMatCost: 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
ExpNonInvMatCost Decimal
ExpCapDirCost Decimal
ExpSubDirCost Decimal
ExpCapOvhdCost Decimal
ExpMfgOvhdCost Decimal

CalcProdOrderLineActCost

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

CalcProdOrderLineActCost

procedure CalcProdOrderLineActCost(ProdOrderLine: Record "Prod. Order Line", var ActMatCost: Decimal, var ActNonInvMatCost: Decimal, var ActCapDirCost: Decimal, var ActSubDirCost: Decimal, var ActCapOvhdCost: Decimal, var ActMfgOvhdCost: Decimal, var ActMatCostACY: Decimal, var ActNonInvMatCostACY: 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
ActNonInvMatCost Decimal
ActCapDirCost Decimal
ActSubDirCost Decimal
ActCapOvhdCost Decimal
ActMfgOvhdCost Decimal
ActMatCostACY Decimal
ActNonInvMatCostACY Decimal
ActCapDirCostACY Decimal
ActSubDirCostACY Decimal
ActCapOvhdCostACY Decimal
ActMfgOvhdCostACY Decimal

CalcProdOrderExpCapNeed

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

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

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

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

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

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

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

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

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

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

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

FindRoutingLine

procedure FindRoutingLine(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

CalcQtyAdjdForBOMScrap

procedure CalcQtyAdjdForBOMScrap(Qty: Decimal, ScrapPct: Decimal): Decimal

Parameters

Name Type Description
Qty Decimal
ScrapPct Decimal

Returns

Type Description
Decimal

CalcQtyAdjdForRoutingScrap

procedure CalcQtyAdjdForRoutingScrap(Qty: Decimal, ScrapFactorPctAccum: Decimal, FixedScrapQtyAccum: Decimal): Decimal

Parameters

Name Type Description
Qty Decimal
ScrapFactorPctAccum Decimal
FixedScrapQtyAccum Decimal

Returns

Type Description
Decimal

CanIncNonInvCostIntoProductionItem

procedure CanIncNonInvCostIntoProductionItem(): Boolean

Returns

Type Description
Boolean

Events

OnBeforeCalcRoutingCostPerUnit

[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

OnAfterCalcRoutingCostPerUnit

[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"

OnAfterCalcShareOfTotalCapCost

[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

OnCalcProdOrderLineStdCostOnAfterCalcSingleLevelCost

[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)"

OnBeforeCalcProdOrderLineStdCost

[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

OnCalcProdOrderLineExpCostOnAfterProdOrderCompSetFilters

[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

[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"

OnCalcProdOrderLineExpCostOnExpOperCostCalculated

[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"

OnAfterCalcProdOrderLineExpCost

[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

OnCalcProdOrderLineActCostOnBeforeSetProdOrderLine

[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

OnBeforeCalcProdOrderExpCapNeed

[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"

OnCalcProdOrderExpCapNeedOnAfterProdOrderCapNeedSetFilters

[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

[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

OnBeforeCalcProdOrderActTimeUsed

[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"

OnCalcProdOrderActTimeUsedOnAfterCapacityLedgerEntrySetFilters

[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"

OnCalcProdOrderActTimeUsedOnBeforeCalcQty

[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

OnAfterClearWorkCenter

[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"

OnBeforeCalcOutputQtyBaseOnPurchOrder

[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

OnCalcActOutputQtyBaseOnAfterSetFilters

[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"

OnCalcActOperOutputAndScrapOnAfterFilterCapLedgEntry

[IntegrationEvent(False,False)]
local procedure OnCalcActOperOutputAndScrapOnAfterFilterCapLedgEntry(var CapacityLedgerEntry: Record "Capacity Ledger Entry")

Parameters

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

OnBeforeCalcActNeededQtyBase

[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

OnCalcActTimeAndQtyBaseOnAfterFilterCapLedgEntry

[IntegrationEvent(False,False)]
local procedure OnCalcActTimeAndQtyBaseOnAfterFilterCapLedgEntry(var CapacityLedgerEntry: Record "Capacity Ledger Entry")

Parameters

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

OnBeforeCalcCompItemQtyBase

[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

OnFindRoutingLineOnAfterRoutingLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnFindRoutingLineOnAfterRoutingLineSetFilters(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]

OnBeforeCalcQtyAdjdForBOMScrap

[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

[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

See also