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")
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)
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)
procedure CalcProdOrderLineExpCost(ProdOrderLine: Record "Prod. Order Line", ShareOfTotalCapCost: Decimal, var ExpMatCost: Decimal, var ExpCapDirCost: Decimal, var ExpSubDirCost: Decimal, var ExpCapOvhdCost: Decimal, var ExpMfgOvhdCost: Decimal)
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)
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)
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)
procedure CalcActNeededQtyBase(ProdOrderLine: Record "Prod. Order Line", ProdOrderComp: Record "Prod. Order Component", OutputQtyBase: Decimal): Decimal
procedure CalcActTimeAndQtyBase(ProdOrderLine: Record "Prod. Order Line", OperationNo: Code[10], var ActRunTime: Decimal, var ActSetupTime: Decimal, var ActOutputQty: Decimal, var ActScrapQty: Decimal)
[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)
[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")
[IntegrationEvent(False,False)]
local procedure OnAfterCalcShareOfTotalCapCost(var ProdOrderLine: Record "Prod. Order Line", var ShareOfTotalCapCost: Decimal)
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderLineStdCostOnAfterCalcSingleLevelCost(var Item: Record Item, InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")
[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)
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderLineExpCostOnAfterProdOrderCompSetFilters(var ProdOrderComp: Record "Prod. Order Component", ProdOrderLine: Record "Prod. Order Line")
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderLineExpCostOnAfterProdOrderRtngLineSetFilters(var ProdOrderRtngLine: Record "Prod. Order Routing Line", ProdOrderLine: Record "Prod. Order Line")
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderLineExpCostOnExpOperCostCalculated(var ExpOperCost: Decimal, ProdOrderRtngLine: Record "Prod. Order Routing Line")
[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)
[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)
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcProdOrderExpCapNeed(ProductionOrder: Record "Production Order", var ProdOrderCapacityNeed: Record "Prod. Order Capacity Need", var ProdOrderRoutingLine: Record "Prod. Order Routing Line")
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderExpCapNeedOnAfterProdOrderCapNeedSetFilters(var ProdOrderCapNeed: Record "Prod. Order Capacity Need", ProdOrder: Record "Production Order")
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderExpCapNeedOnBeforeMarkNotFinishedProdOrderRtngLine(ProdOrderRtngLine: Record "Prod. Order Routing Line", WorkCenter: Record "Work Center", var ExpectedCapNeed: Decimal)
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcProdOrderActTimeUsed(ProductionOrder: Record "Production Order", var CapacityLedgerEntry: Record "Capacity Ledger Entry")
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderActTimeUsedOnAfterCapacityLedgerEntrySetFilters(var CapLedgEntry: Record "Capacity Ledger Entry", ProdOrder: Record "Production Order")
[IntegrationEvent(False,False)]
local procedure OnCalcProdOrderActTimeUsedOnBeforeCalcQty(CapLedgEntry: Record "Capacity Ledger Entry", var Qty: Decimal, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterClearWorkCenter(var CapacityLedgerEntry: Record "Capacity Ledger Entry", var WorkCenter: Record "Work Center")
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcOutputQtyBaseOnPurchOrder(ProdOrderLine: Record "Prod. Order Line", ProdOrderRtngLine: Record "Prod. Order Routing Line", var OutstandingBaseQty: Decimal, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnCalcActOutputQtyBaseOnAfterSetFilters(var CapacityLedgerEntry: Record "Capacity Ledger Entry", ProdOrderLine: Record "Prod. Order Line", ProdOrderRoutingLine: Record "Prod. Order Routing Line")
[IntegrationEvent(False,False)]
local procedure OnCalcActOperOutputAndScrapOnAfterFilterCapLedgEntry(var CapacityLedgerEntry: Record "Capacity Ledger Entry")
[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)
[IntegrationEvent(False,False)]
local procedure OnCalcActTimeAndQtyBaseOnAfterFilterCapLedgEntry(var CapacityLedgerEntry: Record "Capacity Ledger Entry")
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcCompItemQtyBase(ProdBOMComponent: Record "Production BOM Line", CalculationDate: Date, var MfgItemQtyBase: Decimal, RtngNo: Code[20], AdjdForRtngScrap: Boolean, var IsHandled: Boolean)
[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)