[IntegrationEvent(True,False)]
local procedure OnAfterCalcInbndEntryAdjustedCost(var AdjustedCostElementBuf: Record "Cost Element Buffer", var InbndValueEntry: Record "Value Entry", InbndItemLedgEntry: Record "Item Ledger Entry", ItemApplnEntry: Record "Item Application Entry", OutbndItemLedgEntryNo: Integer, var CompletelyInvoiced: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAdjustOutbndAvgEntryOnBeforeForwardAvgCostToInbndEntries(var OutbndItemLedgEntry: Record "Item Ledger Entry")
[IntegrationEvent(False,False)]
local procedure OnAdjustItemAvgCostOnAfterLastTempAvgCostAdjmtEntryPoint(var TempAvgCostAdjmtEntryPoint: Record "Avg. Cost Adjmt. Entry Point" temporary, var Restart: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAdjustItemAvgCostOnAfterCalcRestart(var TempExcludedValueEntry: Record "Value Entry" temporary, var Restart: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAvgValueEntriesToAdjustExistOnFindNextRangeOnBeforeAvgValueEntriesToAdjustExist(var OutbndValueEntry: Record "Value Entry", var ExcludedValueEntry: Record "Value Entry", var AvgCostAdjmtEntryPoint: Record "Avg. Cost Adjmt. Entry Point")
This element will become obsolete from version 26.0. Replaced by OnExcludeAvgCostOnValuationDateOnAfterGetItemApplicationTrace event
[Obsolete(Replaced by OnExcludeAvgCostOnValuationDateOnAfterGetItemApplicationTrace event,26.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterGetVisitedEntries(var ExcludedValueEntry: Record "Value Entry", OutbndValueEntry: Record "Value Entry", var ItemLedgEntryInChain: Record "Item Ledger Entry")
[IntegrationEvent(False,False)]
local procedure OnAfterMakeMultiLevelAdjmt(var Item: Record Item, IsOnlineAdjmt: Boolean, PostToGL: Boolean, var FilterItem: Record Item)
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcInbndEntryAdjustedCost(var AdjustedCostElementBuf: Record "Cost Element Buffer", ItemApplnEntry: Record "Item Application Entry", OutbndItemLedgEntryNo: Integer, InbndItemLedgEntryNo: Integer, ExactCostReversing: Boolean, Recursion: Boolean, var CompletelyInvoiced: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeIsUpdateCompletelyInvoiced(ItemLedgEntry: Record "Item Ledger Entry", CompletelyInvoiced: Boolean, var Result: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeMakeMultiLevelAdjmt(var Item: Record Item, IsOnlineAdjmt: Boolean, var PostToGL: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeOpenWindow(var IsHandled: Boolean, var WindowDialog: Dialog, var WindowIsOpen: Boolean)
Parameters
Name
Type
Description
IsHandled
Boolean
WindowDialog
Dialog
WindowIsOpen
Boolean
OnBeforeUpdateAdjmtBuf
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateAdjmtBuf(OrigValueEntry: Record "Value Entry", NewAdjustedCost: Decimal, NewAdjustedCostACY: Decimal, ItemLedgEntryPostingDate: Date, EntryType: Enum "Cost Entry Type", var Result: Boolean, var IsHandled: Boolean, var Item: Record Item)
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateWindow(var IsHandled: Boolean)
Parameters
Name
Type
Description
IsHandled
Boolean
OnBeforeUpdateItemUnitCost
Obsolete
This element will become obsolete from version 26.0. Record parameter TempItemLedgerEntry is replaced with dictionary parameter ItemLedgEntryToAdjust
[Obsolete(Record parameter TempItemLedgerEntry is replaced with dictionary parameter ItemLedgEntryToAdjust,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateItemUnitCost(var TempAvgCostAdjmtEntryPoint: Record "Avg. Cost Adjmt. Entry Point" temporary, var IsHandled: Boolean, var Item: Record Item, var TempItemLedgerEntry: Record "Item Ledger Entry" temporary)
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateItemUnitCost2(var TempAvgCostAdjmtEntryPoint: Record "Avg. Cost Adjmt. Entry Point" temporary, var IsHandled: Boolean, var Item: Record Item, var ItemLedgEntryToAdjust: Dictionary of [Code[20], List of [Integer]])
[IntegrationEvent(False,False)]
local procedure OnCopyCostElementBufToValueEntryBufOnBeforeValueEntryBufInsert(var ValueEntryBuf: Record "Value Entry", CostElementBuffer: Record "Cost Element Buffer")
[IntegrationEvent(False,False)]
local procedure OnCopyValueEntryBufToCostElementBufOnBeforeCostElementBufferInsert(var CostElementBuffer: Record "Cost Element Buffer", ValueEntryBuf: Record "Value Entry")
[IntegrationEvent(False,False)]
local procedure OnForwardAppliedCostOnAfterSetAppliedQty(ItemLedgerEntry: Record "Item Ledger Entry", var AppliedQty: Decimal)
[IntegrationEvent(False,False)]
local procedure OnGetOrigValueEntryOnAfterOrigValueEntryFound(var OrigValueEntry: Record "Value Entry", ValueEntry: Record "Value Entry")
This element will become obsolete from version 26.0. Replaced by OnIsOutputWithSelfConsumptionOnAfterGetItemApplicationTrace
[Obsolete(Replaced by OnIsOutputWithSelfConsumptionOnAfterGetItemApplicationTrace,26.0)]
[IntegrationEvent(False,False)]
local procedure OnIsOutputWithSelfConsumptionOnAfterSetTempItemLedgEntryFilter(var TempItemLedgerEntry: Record "Item Ledger Entry" temporary)
[IntegrationEvent(False,False)]
local procedure OnIsOutputWithSelfConsumptionOnAfterSetConsumpValueEntryFilters(var ConsumpValueEntry: Record "Value Entry")
[IntegrationEvent(False,False)]
local procedure OnOpenOutbndItemLedgEntriesExistOnAfterSetOpenItemLedgEntryFilters(var OpenItemLedgerEntry: Record "Item Ledger Entry")
[IntegrationEvent(False,False)]
local procedure OnPostItemJnlLineCopyFromValueEntry(var ItemJournalLine: Record "Item Journal Line", ValueEntry: Record "Value Entry")
[IntegrationEvent(False,False)]
local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJournalLine: Record "Item Journal Line", ValueEntry: Record "Value Entry")
[IntegrationEvent(False,False)]
local procedure OnPostItemJnlLineOnAfterSetPostingDate(var ItemJournalLine: Record "Item Journal Line", ValueEntry: Record "Value Entry", PostingDateForClosedPeriod: Date, var Item: Record Item)
[IntegrationEvent(False,False)]
local procedure OnMakeMultiLevelAdjmtOnAfterMakeAdjmt(var TempAvgCostAdjmtEntryPoint: Record "Avg. Cost Adjmt. Entry Point" temporary, var FilterItem: Record Item, var RndgResidualBuf: Record "Rounding Residual Buffer", IsOnlineAdjmt: Boolean, PostToGL: Boolean, var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line")
[IntegrationEvent(False,False)]
local procedure OnMakeSingleLevelAdjmtOnAfterUpdateItemUnitCost(var TheItem: Record Item, var TempAvgCostAdjmtEntryPoint: Record "Avg. Cost Adjmt. Entry Point" temporary, var LevelExceeded: Boolean, IsOnlineAdjmt: Boolean, var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line")
This element will become obsolete from version 26.0. Record parameter Job is replaced with list parameter JobsToAdjust
[Obsolete(Record parameter Job is replaced with list parameter JobsToAdjust,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateJobItemCost(var Job: Record Job)
[IntegrationEvent(False,False)]
local procedure OnPostOutputOnBeforePostItemJnlLine(var ItemJnlLine: Record "Item Journal Line", OrigValueEntry: Record "Value Entry", var InvtAdjmtBuf: Record "Inventory Adjustment Buffer", var GLSetup: Record "General Ledger Setup", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnWIPToAdjustExistOnAfterInventoryAdjmtEntryOrderSetFilters(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)")
[IntegrationEvent(False,False)]
local procedure OnBeforeMakeSingleLevelAdjmt(var TheItem: Record Item, var TempAvgCostAdjmtEntryPoint: Record "Avg. Cost Adjmt. Entry Point" temporary, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAvgValueEntriesToAdjustExistOnBeforeIsNotAdjustment(var ValueEntry: Record "Value Entry", var OutbndValueEntry: Record "Value Entry")
[IntegrationEvent(False,False)]
local procedure OnPostAdjmtBufOnAfterPostExpectedCost(ValueEntry: Record "Value Entry", TempInventoryAdjustmentBuffer: Record "Inventory Adjustment Buffer" temporary)
[IntegrationEvent(False,False)]
local procedure OnPostAdjmtBufOnAfterPostNewCost(ValueEntry: Record "Value Entry", TempInventoryAdjustmentBuffer: Record "Inventory Adjustment Buffer" temporary)
This element will become obsolete from version 26.0. Record parameter TempJobToAdjustBuf is replaced with list parameter JobsToAdjust
[Obsolete(Record parameter TempJobToAdjustBuf is replaced with list parameter JobsToAdjust,26.0)]
[IntegrationEvent(False,False)]
local procedure OnMakeSingleLevelAdjmtOnBeforePostAdjmtBuf(var Item: Record Item, var TempAvgCostAdjmtEntryPoint: Record "Avg. Cost Adjmt. Entry Point" temporary, var TempInventoryAdjustmentBuffer: Record "Inventory Adjustment Buffer" temporary, var TempRoundingResidualBuffer: Record "Rounding Residual Buffer" temporary, PostingDateForClosedPeriod: Date, Currency: Record Currency, SkipUpdateJobItemCost: Boolean, var TempJobToAdjustBuf: Record Job temporary, ItemJnlPostLine: Codeunit "Item Jnl.-Post Line", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnMakeSingleLevelAdjmtOnBeforePostAdjmtBuf2(var Item: Record Item, var TempAvgCostAdjmtEntryPoint: Record "Avg. Cost Adjmt. Entry Point" temporary, var TempInventoryAdjustmentBuffer: Record "Inventory Adjustment Buffer" temporary, var TempRoundingResidualBuffer: Record "Rounding Residual Buffer" temporary, PostingDateForClosedPeriod: Date, Currency: Record Currency, SkipUpdateJobItemCost: Boolean, var JobsToAdjust: List of [Code[20]], ItemJnlPostLine: Codeunit "Item Jnl.-Post Line", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnForwardAppliedCostOnBeforeUpdateWindow(var ItemLedgerEntry: Record "Item Ledger Entry", var Item: Record Item)
[IntegrationEvent(False,False)]
local procedure OnAdjustAppliedOutbndEntriesOnBeforeCheckExpectedCost(var Item: Record Item, var OutbndValueEntry: Record "Value Entry")
[IntegrationEvent(False,False)]
local procedure OnCalcInbndEntryAdjustedCostOnBeforeAddCost(var Item: Record Item, var InbndValueEntry: Record "Value Entry")
[IntegrationEvent(False,False)]
local procedure OnUpdateAdjmtBufOnBeforeHasNewCost(OrigValueEntry: Record "Value Entry", NewAdjustedCost: Decimal, NewAdjustedCostACY: Decimal, ItemLedgEntryPostingDate: Date, EntryType: Enum "Cost Entry Type", var IsHandled: Boolean, var TempInvtAdjmtBuf: Record "Inventory Adjustment Buffer" temporary, var Item: Record Item)
[IntegrationEvent(False,False)]
local procedure OnUpdateWindowOnAfterOpenWindow(var IsHandled: Boolean)
Parameters
Name
Type
Description
IsHandled
Boolean
OnCalcAvgCostOnAfterAssignRoundingError
[IntegrationEvent(False,False)]
local procedure OnCalcAvgCostOnAfterAssignRoundingError(var RoundingError: Decimal, var RoundingErrorACY: Decimal, var CostElementBuffer: Record "Cost Element Buffer")
[IntegrationEvent(False,False)]
local procedure OnEliminateRndgResidualOnBeforeCheckHasNewCost(InbndItemLedgerEntry: Record "Item Ledger Entry", ValueEntry: Record "Value Entry", RndgCost: Decimal, RndgCostACY: Decimal, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnEliminateRndgResidualOnAfterCalcInboundCost(var ValueEntry: Record "Value Entry", InbndItemLedgEntryNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnBeforeIteratingOverOutbndAvgEntries(var OutbndValueEntry: Record "Value Entry", var AvgCostAdjmtEntryPoint: Record "Avg. Cost Adjmt. Entry Point", RemainingOutbnd: Integer)
[IntegrationEvent(False,False)]
local procedure OnBeforeIsExcludeFromAvgCostForRevalPoint(var RevaluationPoint: Record Integer, var RevaluationCheckValueEntry: Record "Value Entry", var OutbndValueEntry: Record "Value Entry")
This element will become obsolete from version 27.0. This event is never raised.
[Obsolete(This event is never raised.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterSetParameters(var CostAdjustmentParameter: Record "Cost Adjustment Parameter" temporary)
[IntegrationEvent(False,False)]
local procedure OnExcludeAvgCostOnValuationDateOnAfterGetItemApplicationTrace(var OutbndValueEntry: Record "Value Entry", var OutbndEntryItemApplicationTrace: Record "Item Application Trace" temporary)
[IntegrationEvent(False,False)]
local procedure OnIsOutputWithSelfConsumptionOnAfterGetItemApplicationTrace(var ItemApplicationTrace: Record "Item Application Trace" temporary)
[IntegrationEvent(True,False)]
local procedure OnCalcInbndEntryAdjustedCostOnBeforeCalcNewAdjustedCost(var CostElementBuffer: Record "Cost Element Buffer", ItemApplicationEntry: Record "Item Application Entry", ItemLedgerEntry: Record "Item Ledger Entry", var IsHandled: Boolean)