Share via


Codeunit "Item Jnl.-Post Line"

ID 22
Namespace: Microsoft.Inventory.Posting

Properties

Name Value
Permissions TableData Item = rimd, TableData "Item Ledger Entry" = rimd, TableData "Item Register" = rimd, TableData "Phys. Inventory Ledger Entry" = rimd, TableData "Item Application Entry" = rimd, #if not CLEAN27 TableData Microsoft.Manufacturing.Document."Prod. Order Capacity Need" = rimd, #endif TableData "Stockkeeping Unit" = rimd, TableData "Value Entry" = rimd, TableData "Avg. Cost Adjmt. Entry Point" = rim, TableData "Post Value Entry to G/L" = ri, TableData Microsoft.Manufacturing.Capacity."Capacity Ledger Entry" = rimd, TableData "Inventory Adjmt. Entry (Order)" = rim, TableData "Job Planning Line" = r
TableNo Table Microsoft.Inventory.Journal."Item Journal Line"

Methods

RunWithCheck

Posts the provided item journal line. The line is copied to a global variable. A check is performed to ensure the Item and Variant are not blocked.

procedure RunWithCheck(var ItemJnlLine2: Record "Item Journal Line"): Boolean

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"

Item journal line to post.

Returns

Type Description
Boolean

True if item journal line was posted, otherwise false.

RunPostWithReservation

Posts the item journal line. Item journal lines are split before posting based on item tracking specification.

procedure RunPostWithReservation(var ItemJnlLine2: Record "Item Journal Line", var ReservationEntry: Record "Reservation Entry"): Boolean

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"

Item journal line to post.

ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

Return value: Get the set of reservation entries used in posting.

Returns

Type Description
Boolean

True if item journal line was posted, otherwise false.

PostSplitJnlLine

Splits the item journal line into multiple lines based on item tracking specification and posts them. <remarks> After posting, corrects the valuation date of output entries in the item ledger based on the maximum consumption valuation date. </remarks>

procedure PostSplitJnlLine(var ItemJnlLineToPost: Record "Item Journal Line", TrackingSpecExists: Boolean): Boolean

Parameters

Name Type Description
ItemJnlLineToPost Table Microsoft.Inventory.Journal."Item Journal Line"

Item journal line to post.

TrackingSpecExists Boolean

True, if item tracking exists, otherwise false.

Returns

Type Description
Boolean

True if item journal line was posted, otherwise false.

PostItem

Updates item journal line with information from the item or SKU and posts it creating item ledger, value and item application entries.

procedure PostItem()

PostItem

procedure PostItem(var ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

InsertCapValueEntry

procedure InsertCapValueEntry(var ItemJournalLine: Record "Item Journal Line", var CapLedgEntry: Record "Capacity Ledger Entry", ValueEntryType: Enum "Cost Entry Type", ValuedQty: Decimal, InvdQty: Decimal, AdjdCost: Decimal)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
CapLedgEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"
ValueEntryType Enum Microsoft.Inventory.Costing."Cost Entry Type"
ValuedQty Decimal
InvdQty Decimal
AdjdCost Decimal

ItemQtyPosting

Posts the current item journal line in the global ItemJnlLine buffer, creating item ledger, value and application entries. It checks if the quantity and invoiced quantity of the item journal line are different. If they are, it tests if the invoiced quantity is zero and raises an error otherwise. Inserts an item ledger entry and a value entry from the item journal line information.

procedure ItemQtyPosting()

ItemValuePosting

Posts balance of expected cost reversal if it's expected by item's costing method.

procedure ItemValuePosting()

Remarks

If a balance is expected from a cost reversal based on the item's costing method and the properties of the item journal line then the procedure inserts a balance expected cost reversal entry for a value entry.

PostFlushedConsumption

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

Posts the consumption of the component in a production order.

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
procedure PostFlushedConsumption(ProdOrder: Record "Production Order", ProdOrderLine: Record "Prod. Order Line", ProdOrderComp: Record "Prod. Order Component", var ProdOrderRoutingLine: Record "Prod. Order Routing Line", OldItemJnlLine: Record "Item Journal Line")

Parameters

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

Production order being posted.

ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

Production order line being posted.

ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"

Production order component to post.

ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

Production order routing line. This record is only used on events.

OldItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

Previous item journal line from which new one will be initialized.

UpdateUnitCost

Updates the unit cost on item and SKU for the last direct cost from the value entry.

procedure UpdateUnitCost(ValueEntry: Record "Value Entry")

Parameters

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

Value entry to calculate unit cost from.

UnApply

Unapplies the provided item application entry.

procedure UnApply(ItemApplnEntry: Record "Item Application Entry")

Parameters

Name Type Description
ItemApplnEntry Table Microsoft.Inventory.Ledger."Item Application Entry"

Item application entry to unapply.

Remarks

Entries applied to an outbound transfer and drop shipment order cannot be unapplied.

ReApply

Reapplies item ledger entries.

procedure ReApply(ItemLedgEntry: Record "Item Ledger Entry", ApplyWith: Integer)

Parameters

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

Item ledger entry to reaplly.

ApplyWith Integer

Apply to item ledger entry no.

ApplyItemLedgEntry

Applies an item ledger entry to another item ledger entry.

procedure ApplyItemLedgEntry(var ItemLedgEntry: Record "Item Ledger Entry", var OldItemLedgEntry: Record "Item Ledger Entry", var ValueEntry: Record "Value Entry", CausedByTransfer: Boolean)

Parameters

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

Item Ledger entry to apply. If this is a cost application, the entry is marked as applied entry to adjust.

OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

Return value: Item ledger entry the to-apply entry is applied to.

ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

Return value: Value entry with updated valuation date.

CausedByTransfer Boolean

Is caused by a transfer.

Remarks

Usually used in inventory management where you want to match an incoming item ledger entry (like a purchase) with an outgoing item ledger entry (like a sale).

InitItemLedgEntry

Initializes the item ledger entry record from the global item journal line variable.

procedure InitItemLedgEntry(var ItemLedgEntry: Record "Item Ledger Entry")

Parameters

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

Return value: Initialized item ledger entry.

InsertItemLedgEntry

Creates an item ledger entry record with information from the global journal line.

procedure InsertItemLedgEntry(var ItemLedgEntry: Record "Item Ledger Entry", TransferItem: Boolean)

Parameters

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

Return value: Created item ledger entry.

TransferItem Boolean

If true, new dimension information will be set.

Remarks

If there is insufficient quantity of the item on the inventory, an error is raised. Inserts or update an item register record.

InsertPhysInventoryEntry

Inserts a physical inventory ledger entry based on a given item journal line.

procedure InsertPhysInventoryEntry(var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

Item journal line to insert from.

PostInventoryToGL

Posts inventory transactions to the general ledger based on the provided value entry.

procedure PostInventoryToGL(var ValueEntry: Record "Value Entry")

Parameters

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

Value entry to post from.

InsertApplEntry

Creates an item application entry.

procedure InsertApplEntry(ItemLedgEntryNo: Integer, InboundItemEntry: Integer, OutboundItemEntry: Integer, TransferedFromEntryNo: Integer, PostingDate: Date, Quantity: Decimal, CostToApply: Boolean)

Parameters

Name Type Description
ItemLedgEntryNo Integer

Item ledger entry no.

InboundItemEntry Integer

Inbound item ledger entry no.

OutboundItemEntry Integer

Outbound item ledger entry no.

TransferedFromEntryNo Integer

Transferred-from entry no.

PostingDate Date

Item ledger entry posting date.

Quantity Decimal

Item ledger entry quantity.

CostToApply Boolean

If true, then cost application will be set to true.

Remarks

If the item is non-inventoriable, procedure is not executed.

InsertValueEntry

Inserts the value entry for an item ledger entry and posts it to the general ledger.

procedure InsertValueEntry(var ValueEntry: Record "Value Entry", var ItemLedgEntry: Record "Item Ledger Entry", TransferItem: Boolean)

Parameters

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

Return value: Inserted value entry record.

ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

Return value: Item ledger entry to insert value entry for.

TransferItem Boolean

If true, global dimension codes and dimension set ID will be changed to new shorcut dimension values instead of shortcut dimension values. A new shortcut dimension on an item journal line refers to adding a new dimension specifically for item-related entries, providing additional flexibility and analysis capabilities within the context of item transactions.

Remarks

Updates item ledger entry based on a value entry. Posts value entry information to the general ledger. Inserts or updates item register record based on a value entry.

InitTransValueEntry

Initializes a value entry record for a transfer item ledger entry. Calculates the cost amounts and adjusted cost based on whether the average transfer is being used.

procedure InitTransValueEntry(var ValueEntry: Record "Value Entry", ItemLedgEntry: Record "Item Ledger Entry")

Parameters

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

Return value: Initialized value entry.

ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

Item ledger entry to initialize value entry from.

AutoTrack

Updates reservation entries for the item ledger entry based on item order tracking requirements.

procedure AutoTrack(var ItemLedgEntryRec: Record "Item Ledger Entry", IsReserved: Boolean)

Parameters

Name Type Description
ItemLedgEntryRec Table Microsoft.Inventory.Ledger."Item Ledger Entry"

Item ledger entry to update reservation entries for.

IsReserved Boolean

Indicates if the item ledger entry is reserved.

Remarks

If IsReserved parameter is false, and item doesn't have a tracking policy, reservations are not updated.

SetPostponeReservationHandling

Sets the value of the global flag PostponeReservationHandling.

procedure SetPostponeReservationHandling(Postpone: Boolean)

Parameters

Name Type Description
Postpone Boolean

The new value to set.

Remarks

Used to skip reservation handling functionality.

CollectTrackingSpecification

Copies all tracking specification lines from the global variable to the parameter, overriding all existing lines. After the transfer, all lines are deleted from the global record set.

procedure CollectTrackingSpecification(var TargetTrackingSpecification: Record "Tracking Specification" temporary): Boolean

Parameters

Name Type Description
TargetTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

Return value: Copied tracking specification lines.

Returns

Type Description
Boolean

True if any tracking specifications were transferred, otherwise false.

CollectValueEntryRelation

Copies all value entry relation lines from the global variable to the parameter, overriding all existing lines. After the transfer, all lines are deleted from the global record set.

procedure CollectValueEntryRelation(var TargetValueEntryRelation: Record "Value Entry Relation" temporary, RowId: Text[250]): Boolean

Parameters

Name Type Description
TargetValueEntryRelation Table Microsoft.Inventory.Ledger."Value Entry Relation"

Return value: Copied value entry relations lines.

RowId Text[250]

Unique identifier text of a line that will be used in source rowId field.

Returns

Type Description
Boolean

True if any value entry relations were transferred, otherwise false.

CollectItemEntryRelation

Copies all item entry relation lines from the global variable to the parameter, overriding all existing lines. After the transfer, all lines are deleted from the global record set.

procedure CollectItemEntryRelation(var TargetItemEntryRelation: Record "Item Entry Relation" temporary): Boolean

Parameters

Name Type Description
TargetItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"

Return value: Copied item entry relation lines.

Returns

Type Description
Boolean

True if any item entry relation lines were transferred, otherwise false.

UndoValuePostingWithJob

Undoes the value entry posting of an item ledger entry with a job number.

procedure UndoValuePostingWithJob(OldItemLedgEntryNo: Integer, NewItemLedgEntryNo: Integer)

Parameters

Name Type Description
OldItemLedgEntryNo Integer

Inbound item ledger entry number.

NewItemLedgEntryNo Integer

Outbound item ledger entry number.

CheckItemTracking

Obsolete

This element will become obsolete from version 27.0. Replaced by same procedure with parameters ItemJnlLine

Checks the tracking information of an item journal. If serial, lot or package numbers are required but are missing, an error is thrown.

[Obsolete(Replaced by same procedure with parameters ItemJnlLine,27.0)]
procedure CheckItemTracking()

Remarks

If the journal line is a transfer, it also checks for new serial, lot and package numbers to be assigned during the posting.

CheckItemTracking

procedure CheckItemTracking(var ItemJnlLine2: Record "Item Journal Line")

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"

SetCalledFromInvtPutawayPick

Sets the value of the global flag CalledFromInvtPutawayPick.

procedure SetCalledFromInvtPutawayPick(NewCalledFromInvtPutawayPick: Boolean)

Parameters

Name Type Description
NewCalledFromInvtPutawayPick Boolean

The new value to set.

SetCalledFromAdjustment

Sets the values of the global flags CalledFromAdjustment and PostToGL.

procedure SetCalledFromAdjustment(NewCalledFromAdjustment: Boolean, NewPostToGL: Boolean)

Parameters

Name Type Description
NewCalledFromAdjustment Boolean

The new value to set.

NewPostToGL Boolean

The new value to set.

NextOperationExist

Obsolete

This element will become obsolete from version 27.0. Moved to table ProdOrderRoutingLine

Determines if the next operation number exists on the provided production order routing line.

[Obsolete(Moved to table ProdOrderRoutingLine,27.0)]
procedure NextOperationExist(var ProdOrderRtngLine: Record "Prod. Order Routing Line"): Boolean

Parameters

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

Production order routing line to check.

Returns

Type Description
Boolean

True if next operation number exists, otherwise false.

AllowAdjmtOnPosting

Determines if an adjustment is allowed on a given posting date based on the automatic cost adjustment setting in the inventory setup.

procedure AllowAdjmtOnPosting(TheDate: Date): Boolean

Parameters

Name Type Description
TheDate Date

The date to check.

Returns

Type Description
Boolean

True if adjustment is allowed, otherwise false.

RedoApplications

Reapplies all touched item ledger entries with remaining quantity, and deletes them afterwards.

procedure RedoApplications()

Remarks

Touched item ledger entries are entries that have been marked or identified in some way during the posting process.

CostAdjust

Performs an inventory cost adjustment based on the automatic cost adjustment setting in the inventory setup.

procedure CostAdjust()

TouchEntry

Marks an item ledger entry as touched by inserting it into a global buffer.

procedure TouchEntry(EntryNo: Integer)

Parameters

Name Type Description
EntryNo Integer

Item ledger entry to mark.

AnyTouchedEntries

Determines if there are any temporary touched item ledger entries on the global record set.

procedure AnyTouchedEntries(): Boolean

Returns

Type Description
Boolean

True if touched entires exists, otherwise false.

SetValuationDateAllValueEntrie

Sets the valuation date of all value entry records associated with a given item ledger entry no. to a given date.

procedure SetValuationDateAllValueEntrie(ItemLedgerEntryNo: Integer, ValuationDate: Date, FixedApplication: Boolean)

Parameters

Name Type Description
ItemLedgerEntryNo Integer

Item ledger entry no. to find value entries for.

ValuationDate Date

Valuation date to set.

FixedApplication Boolean

Indicates if it's a fixed application.

Remarks

The date is modified if the valuation date is not equal to the posting date, or if it's less than the given date, or if it's greater than the given date and the application is fixed.

SetServUndoConsumption

Sets the value of the global flag IsServUndoConsumption.

procedure SetServUndoConsumption(Value: Boolean)

Parameters

Name Type Description
Value Boolean

The new value to set.

SetProdOrderCompModified

Sets the value of the global flag ProdOrderCompModified.

procedure SetProdOrderCompModified(ProdOrderCompIsModified: Boolean)

Parameters

Name Type Description
ProdOrderCompIsModified Boolean

The new value to set.

InsertCountryCode

Updates the country/region on the new item ledger entry based on the new or existing item ledger entry's location.

procedure InsertCountryCode(var NewItemLedgEntry: Record "Item Ledger Entry", ItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
NewItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

Return value: New item ledger entry with updated coutnry/region code.

ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

Existing item ledger entry.

SetupTempSplitItemJnlLine

Splits a journal line based on the current global tracking specification line and stores it into a global buffer.

procedure SetupTempSplitItemJnlLine(ItemJnlLine2: Record "Item Journal Line", SignFactor: Integer, var NonDistrQuantity: Decimal, var NonDistrAmount: Decimal, var NonDistrAmountACY: Decimal, var NonDistrDiscountAmount: Decimal, Invoice: Boolean): Boolean

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"

Item journal line to split.

SignFactor Integer

Sign factor to multiply all amounts with.

NonDistrQuantity Decimal

Total quantity used for determining the splitting factor.

NonDistrAmount Decimal

Total amount to split and set.

NonDistrAmountACY Decimal

Total Amount (ACY) to split and set.

NonDistrDiscountAmount Decimal

Discount amount to split and set.

Invoice Boolean

Indicates if journal line was already invoiced.

Returns

Type Description
Boolean

True if created split item journal line needs to be posted, otherwise false.

RunOnPublishPostingInventoryToGL

procedure RunOnPublishPostingInventoryToGL()

PostDeferredValueEntriesToGL

procedure PostDeferredValueEntriesToGL(PostponedValueEntries: List of [Integer])

Parameters

Name Type Description
PostponedValueEntries List of [Integer]

PrepareItem

Prepares provided item journal line for posting and copies it to the global ItemJnlLine record.

procedure PrepareItem(var ItemJnlLineToPost: Record "Item Journal Line")

Parameters

Name Type Description
ItemJnlLineToPost Table Microsoft.Inventory.Journal."Item Journal Line"

Item journal line to prepare.

Remarks

If General Ledger Setup has additional reporting currency record, that record is retrieved and mandatory fields are checked. Checks if an item and its variant are blocked and retrieve their records if they are not.

SetSkipApplicationCheck

Sets the value of the global flag SkipApplicationCheck.

procedure SetSkipApplicationCheck(NewValue: Boolean)

Parameters

Name Type Description
NewValue Boolean

The new value to set.

Remarks

If true, then application check is not executed when an item ledger entry is applied to another item ledger entry.

LogApply

Logs the application of an item ledger entry by creating a new item application entry record and adding it to the global temporary item application entry history record set.

procedure LogApply(ApplyItemLedgEntry: Record "Item Ledger Entry", AppliedItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ApplyItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

Inbound item ledger entry record.

AppliedItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

Applied item ledger entry record.

LogUnapply

Logs un-application of an item ledger entry to the global temporary item application entry history record set with cost application set to false.

procedure LogUnapply(ItemApplnEntry: Record "Item Application Entry")

Parameters

Name Type Description
ItemApplnEntry Table Microsoft.Inventory.Ledger."Item Application Entry"

Item application entry to log.

ClearApplicationLog

Clears the global item application entry history temporary record set.

procedure ClearApplicationLog()

UndoApplications

Undoes the applications of item ledger entries based on the records in the global item application entry history temporary record set.

procedure UndoApplications()

Remarks

Used during undo manual changes action on application worksheet page.

ApplicationLogIsEmpty

Returns whether the global item application entry history record set is empty.

procedure ApplicationLogIsEmpty(): Boolean

Returns

Type Description
Boolean

True if item application entry history record set is empty, otherwise false.

GetCalledFromAdjustment

Returns the value of the global flag CalledFromAdjustment.

procedure GetCalledFromAdjustment(): Boolean

Returns

Type Description
Boolean

The value of the global flag CalledFromAdjustment.

GetCalledFromInvtPutawayPick

Returns the value of the global flag CalledFromInvtPutawayPick.

procedure GetCalledFromInvtPutawayPick(): Boolean

Returns

Type Description
Boolean

The value of the global flag CalledFromInvtPutawayPick.

SetCalledFromApplicationWorksheet

Sets the value of the global flag CalledFromApplicationWorksheet.

procedure SetCalledFromApplicationWorksheet(IsCalledFromApplicationWorksheet: Boolean)

Parameters

Name Type Description
IsCalledFromApplicationWorksheet Boolean

The new value to set.

Remarks

If false, then touched entries are not tracked.

RestoreTouchedEntries

Marks the entries that were previously modified by the current user as touched. Items of these entries are added to TempItem.

procedure RestoreTouchedEntries(var TempItem: Record Item temporary)

Parameters

Name Type Description
TempItem Table Microsoft.Inventory.Item.Item

Return value: A collection of items of touched entries.

Remarks

Used when opening the application worksheet.

SetSkipSerialNoQtyValidation

Sets the value of the global flag SkipSerialNoQtyValidation.

procedure SetSkipSerialNoQtyValidation(NewSkipSerialNoQtyValidation: Boolean)

Parameters

Name Type Description
NewSkipSerialNoQtyValidation Boolean

The new value to set.

Remarks

If true and item tracking code has serial number specific tracking enabled, it skips the checks. Enabled serial number specific tracking ensures that items are accurately traced with specific serial or lot numbers both backward and forward in the supply chain, which is crucial for quality assurance and product recalls.

MarkAppliedInboundItemEntriesForAdjustment

Marks the inbound item ledger entries that are applied to a specific outbound item ledger entry for adjustment.

procedure MarkAppliedInboundItemEntriesForAdjustment(OutboundItemLedgerEntryNo: Integer)

Parameters

Name Type Description
OutboundItemLedgerEntryNo Integer

Outbound item ledger entry no.

Events

OnBeforeAllowProdApplication

[IntegrationEvent(False,False)]
local procedure OnBeforeAllowProdApplication(OldItemLedgerEntry: Record "Item Ledger Entry", ItemLedgerEntry: Record "Item Ledger Entry", var AllowApplication: Boolean)

Parameters

Name Type Description
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
AllowApplication Boolean

OnBeforeApplyItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeApplyItemLedgEntry(var ItemLedgEntry: Record "Item Ledger Entry", var OldItemLedgEntry: Record "Item Ledger Entry", var ValueEntry: Record "Value Entry", CausedByTransfer: Boolean, var Handled: Boolean, ItemJnlLine: Record "Item Journal Line", var ItemApplnEntryNo: Integer)

Parameters

Name Type Description
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
CausedByTransfer Boolean
Handled Boolean
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemApplnEntryNo Integer

OnBeforeApplyItemLedgEntrySetFilters

[IntegrationEvent(False,False)]
local procedure OnBeforeApplyItemLedgEntrySetFilters(var ToItemLedgEntry: Record "Item Ledger Entry", FromItemLedgEntry: Record "Item Ledger Entry", ItemTrackingCode: Record "Item Tracking Code", var IsHandled: Boolean)

Parameters

Name Type Description
ToItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
FromItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"
IsHandled Boolean

OnBeforeCheckApplication

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckApplication(ItemLedgerEntry: Record "Item Ledger Entry", OldItemLedgerEntry: Record "Item Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnBeforeCheckExpirationDate

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckExpirationDate(var ItemJournalLine: Record "Item Journal Line", var TrackingSpecification: Record "Tracking Specification", SignFactor: Integer, CalcExpirationDate: Date, var ExpirationDateChecked: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
SignFactor Integer
CalcExpirationDate Date
ExpirationDateChecked Boolean
IsHandled Boolean

OnBeforeCheckLotNoInfoNotBlocked

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckLotNoInfoNotBlocked(var ItemJnlLine2: Record "Item Journal Line", var IsHandled: Boolean, var ItemTrackingSetup: Record "Item Tracking Setup" temporary, var TrackingSpecification: Record "Tracking Specification")

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean
ItemTrackingSetup Table Microsoft.Inventory.Tracking."Item Tracking Setup"
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

OnBeforeCheckItemCorrection

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckItemCorrection(ItemLedgerEntry: Record "Item Ledger Entry", var RaiseError: Boolean)

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
RaiseError Boolean

OnBeforeCheckItemTracking

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckItemTracking(var ItemJournalLine: Record "Item Journal Line", ItemTrackingSetup: Record "Item Tracking Setup" temporary, var IsHandled: Boolean, var TempTrackingSpecification: Record "Tracking Specification" temporary)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemTrackingSetup Table Microsoft.Inventory.Tracking."Item Tracking Setup"
IsHandled Boolean
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

OnBeforeCheckItemTrackingInformation

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckItemTrackingInformation(var ItemJnlLine2: Record "Item Journal Line", var TrackingSpecification: Record "Tracking Specification", var ItemTrackingSetup: Record "Item Tracking Setup" temporary, var SignFactor: Decimal, var ItemTrackingCode: Record "Item Tracking Code", var IsHandled: Boolean, var GlobalItemTrackingCode: Record "Item Tracking Code")

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
ItemTrackingSetup Table Microsoft.Inventory.Tracking."Item Tracking Setup"
SignFactor Decimal
ItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"
IsHandled Boolean
GlobalItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"

OnAfterAppliedEntriesToReadjust

[IntegrationEvent(False,False)]
local procedure OnAfterAppliedEntriesToReadjust(ItemLedgEntry: Record "Item Ledger Entry", var Readjust: Boolean)

Parameters

Name Type Description
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
Readjust Boolean

OnAfterCalcAdjustedCost

[IntegrationEvent(False,False)]
local procedure OnAfterCalcAdjustedCost(var ItemJournalLine: Record "Item Journal Line", var AdjustedCostLCY: Decimal, var AdjustedCostACY: Decimal)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
AdjustedCostLCY Decimal
AdjustedCostACY Decimal

OnAfterCheckItemTracking

[IntegrationEvent(False,False)]
local procedure OnAfterCheckItemTracking(ItemJournalLine: Record "Item Journal Line", ItemTrackingSetup: Record "Item Tracking Setup" temporary, GlobalItemTrackingCode: Record "Item Tracking Code")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemTrackingSetup Table Microsoft.Inventory.Tracking."Item Tracking Setup"
GlobalItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"

OnAfterCheckItemTrackingInformation

[IntegrationEvent(False,False)]
local procedure OnAfterCheckItemTrackingInformation(var ItemJnlLine2: Record "Item Journal Line", var TrackingSpecification: Record "Tracking Specification", ItemTrackingSetup: Record "Item Tracking Setup" temporary, Item: Record Item)

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
ItemTrackingSetup Table Microsoft.Inventory.Tracking."Item Tracking Setup"
Item Table Microsoft.Inventory.Item.Item

OnAfterInitCorrItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnAfterInitCorrItemLedgEntry(var NewItemLedgEntry: Record "Item Ledger Entry", EntriesExist: Boolean)

Parameters

Name Type Description
NewItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
EntriesExist Boolean

OnBeforeCheckIfItemIsBlocked

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckIfItemIsBlocked(var ItemJournalLine: Record "Item Journal Line", CalledFromAdjustment: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
CalledFromAdjustment Boolean
IsHandled Boolean

OnBeforeCheckRunItemValuePosting

[IntegrationEvent(True,False)]
local procedure OnBeforeCheckRunItemValuePosting(var ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnAfterCreateItemJnlLineFromEntry

[IntegrationEvent(False,False)]
local procedure OnAfterCreateItemJnlLineFromEntry(var ItemJournalLine: Record "Item Journal Line", ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnAfterInsertTempSplitItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnAfterInsertTempSplitItemJnlLine(var TempSplitItemJournalLine: Record "Item Journal Line" temporary, var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
TempSplitItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeInsertApplEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertApplEntry(var ItemLedgEntryNo: Integer, var InboundItemEntry: Integer, var OutboundItemEntry: Integer, var TransferedFromEntryNo: Integer, var PostingDate: Date, var Quantity: Decimal, var CostToApply: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemLedgEntryNo Integer
InboundItemEntry Integer
OutboundItemEntry Integer
TransferedFromEntryNo Integer
PostingDate Date
Quantity Decimal
CostToApply Boolean
IsHandled Boolean

OnBeforeInsertTransferEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertTransferEntry(var NewItemLedgerEntry: Record "Item Ledger Entry", var OldItemLedgerEntry: Record "Item Ledger Entry", var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
NewItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterFlushOperation

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterFlushOperation(var ProdOrder: Record "Production Order", var ProdOrderLine: Record "Prod. Order Line", var ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeGetItem

[IntegrationEvent(False,False)]
local procedure OnBeforeGetItem(var Item: Record Item, ItemNo: Code[20], Unconditionally: Boolean, var HasGotItem: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ItemNo Code[20]
Unconditionally Boolean
HasGotItem Boolean
IsHandled Boolean

OnBeforeGetItemVariant

[IntegrationEvent(False,False)]
local procedure OnBeforeGetItemVariant(var ItemVariant: Record "Item Variant", ItemNo: Code[20], VariantCode: Code[10], Unconditionally: Boolean, var ReturnValue: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemVariant Table Microsoft.Inventory.Item."Item Variant"
ItemNo Code[20]
VariantCode Code[10]
Unconditionally Boolean
ReturnValue Boolean
IsHandled Boolean

OnBeforeGetSourceNo

[IntegrationEvent(False,False)]
local procedure OnBeforeGetSourceNo(ItemJournalLine: Record "Item Journal Line", var Result: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
Result Code[20]
IsHandled Boolean

OnAfterPostFlushedConsump

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterPostFlushedConsump(var ProdOrderComp: Record "Prod. Order Component", var ProdOrderRoutingLine: Record "Prod. Order Routing Line", OldItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
OldItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterPostConsumption

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterPostConsumption(var ProdOrderComp: Record "Prod. Order Component", var ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeInsertPhysInvtLedgEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertPhysInvtLedgEntry(var PhysInventoryLedgerEntry: Record "Phys. Inventory Ledger Entry", ItemJournalLine: Record "Item Journal Line", LastSplitItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
PhysInventoryLedgerEntry Table Microsoft.Inventory.Counting.Journal."Phys. Inventory Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
LastSplitItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterInitItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnAfterInitItemLedgEntry(var NewItemLedgEntry: Record "Item Ledger Entry", var ItemJournalLine: Record "Item Journal Line", var ItemLedgEntryNo: Integer)

Parameters

Name Type Description
NewItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgEntryNo Integer

OnAfterInsertItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnAfterInsertItemLedgEntry(var ItemLedgerEntry: Record "Item Ledger Entry", ItemJournalLine: Record "Item Journal Line", var ItemLedgEntryNo: Integer, var ValueEntryNo: Integer, var ItemApplnEntryNo: Integer, GlobalValueEntry: Record "Value Entry", TransferItem: Boolean, var InventoryPostingToGL: Codeunit "Inventory Posting To G/L", var OldItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgEntryNo Integer
ValueEntryNo Integer
ItemApplnEntryNo Integer
GlobalValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
TransferItem Boolean
InventoryPostingToGL Codeunit Microsoft.Inventory.Costing."Inventory Posting To G/L"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnBeforeInsertItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertItemLedgEntry(var ItemLedgerEntry: Record "Item Ledger Entry", ItemJournalLine: Record "Item Journal Line", TransferItem: Boolean, OldItemLedgEntry: Record "Item Ledger Entry", ItemJournalLineOrigin: Record "Item Journal Line")

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TransferItem Boolean
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLineOrigin Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeInsertItemLedgEntryProcedure

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertItemLedgEntryProcedure(var ItemLedgerEntry: Record "Item Ledger Entry", var IsHandled: Boolean, var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterInsertValueEntry

[IntegrationEvent(False,False)]
local procedure OnAfterInsertValueEntry(var ValueEntry: Record "Value Entry", ItemJournalLine: Record "Item Journal Line", var ItemLedgerEntry: Record "Item Ledger Entry", var ValueEntryNo: Integer)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntryNo Integer

OnBeforeInsertValueEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertValueEntry(var ValueEntry: Record "Value Entry", ItemJournalLine: Record "Item Journal Line", var ItemLedgerEntry: Record "Item Ledger Entry", var ValueEntryNo: Integer, var InventoryPostingToGL: Codeunit "Inventory Posting To G/L", CalledFromAdjustment: Boolean, var OldItemLedgEntry: Record "Item Ledger Entry", var Item: Record Item, TransferItem: Boolean, var GlobalValueEntry: Record "Value Entry")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntryNo Integer
InventoryPostingToGL Codeunit Microsoft.Inventory.Costing."Inventory Posting To G/L"
CalledFromAdjustment Boolean
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
Item Table Microsoft.Inventory.Item.Item
TransferItem Boolean
GlobalValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnBeforeInsertValueEntryProcedure

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertValueEntryProcedure(var ItemLedgerEntry: Record "Item Ledger Entry", ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterInitValueEntry

[IntegrationEvent(False,False)]
local procedure OnAfterInitValueEntry(var ValueEntry: Record "Value Entry", var ItemJournalLine: Record "Item Journal Line", var ValueEntryNo: Integer, var ItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ValueEntryNo Integer
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnAfterInsertCapLedgEntry

[IntegrationEvent(False,False)]
local procedure OnAfterInsertCapLedgEntry(var CapLedgEntry: Record "Capacity Ledger Entry", ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
CapLedgEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeInsertCapLedgEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertCapLedgEntry(var CapLedgEntry: Record "Capacity Ledger Entry", ItemJournalLine: Record "Item Journal Line", LastOperation: Boolean)

Parameters

Name Type Description
CapLedgEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
LastOperation Boolean

OnAfterInsertCapValueEntry

[IntegrationEvent(False,False)]
local procedure OnAfterInsertCapValueEntry(var ValueEntry: Record "Value Entry", ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeInsertCapValueEntryProcedure

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertCapValueEntryProcedure(ItemJournalLine: Record "Item Journal Line", ValueEntryType: Enum "Cost Entry Type", var ValuedQty: Decimal, var InvdQty: Decimal, var AdjdCost: Decimal)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ValueEntryType Enum Microsoft.Inventory.Costing."Cost Entry Type"
ValuedQty Decimal
InvdQty Decimal
AdjdCost Decimal

OnBeforeInsertCapValueEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertCapValueEntry(var ValueEntry: Record "Value Entry", ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeInsertCorrItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertCorrItemLedgEntry(var NewItemLedgerEntry: Record "Item Ledger Entry", var OldItemLedgerEntry: Record "Item Ledger Entry", var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
NewItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterInsertCorrItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnAfterInsertCorrItemLedgEntry(var NewItemLedgerEntry: Record "Item Ledger Entry", var ItemJournalLine: Record "Item Journal Line", var OldItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
NewItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnBeforeInsertCorrValueEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertCorrValueEntry(var NewValueEntry: Record "Value Entry", OldValueEntry: Record "Value Entry", var ItemJournalLine: Record "Item Journal Line", Sign: Integer, CalledFromAdjustment: Boolean, var ItemLedgerEntry: Record "Item Ledger Entry", var ValueEntryNo: Integer, var InventoryPostingToGL: Codeunit "Inventory Posting To G/L")

Parameters

Name Type Description
NewValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
OldValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
Sign Integer
CalledFromAdjustment Boolean
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntryNo Integer
InventoryPostingToGL Codeunit Microsoft.Inventory.Costing."Inventory Posting To G/L"

OnAfterInsertCorrValueEntry

[IntegrationEvent(False,False)]
local procedure OnAfterInsertCorrValueEntry(var NewValueEntry: Record "Value Entry", var ItemJournalLine: Record "Item Journal Line", var ItemLedgerEntry: Record "Item Ledger Entry", var ValueEntryNo: Integer)

Parameters

Name Type Description
NewValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntryNo Integer

OnBeforeInsertConsumpEntry

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeInsertConsumpEntry(var ProdOrderComponent: Record "Prod. Order Component", QtyBase: Decimal, var ModifyProdOrderComp: Boolean, var ItemJnlLine: Record "Item Journal Line", var TempSplitItemJnlLine: Record "Item Journal Line" temporary)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
QtyBase Decimal
ModifyProdOrderComp Boolean
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempSplitItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterItemApplnEntryInsert

[IntegrationEvent(False,False)]
local procedure OnAfterItemApplnEntryInsert(var ItemApplicationEntry: Record "Item Application Entry", GlobalItemLedgerEntry: Record "Item Ledger Entry", OldItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ItemApplicationEntry Table Microsoft.Inventory.Ledger."Item Application Entry"
GlobalItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnAfterItemQtyPosting

[IntegrationEvent(False,False)]
local procedure OnAfterItemQtyPosting(ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeItemApplnEntryInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeItemApplnEntryInsert(var ItemApplicationEntry: Record "Item Application Entry", GlobalItemLedgerEntry: Record "Item Ledger Entry", OldItemLedgerEntry: Record "Item Ledger Entry", var ItemApplnEntryNo: Integer)

Parameters

Name Type Description
ItemApplicationEntry Table Microsoft.Inventory.Ledger."Item Application Entry"
GlobalItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemApplnEntryNo Integer

OnBeforeNextOperationExist

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeNextOperationExist(var ProdOrderRoutingLine: Record "Prod. Order Routing Line")

Parameters

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

OnBeforePostItem

[IntegrationEvent(False,False)]
local procedure OnBeforePostItem(var ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean, CalledFromAdjustment: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean
CalledFromAdjustment Boolean

OnBeforePostItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostItemJnlLine(var ItemJournalLine: Record "Item Journal Line", CalledFromAdjustment: Boolean, CalledFromInvtPutawayPick: Boolean, var ItemRegister: Record "Item Register", var ItemLedgEntryNo: Integer, var ValueEntryNo: Integer, var ItemApplnEntryNo: Integer)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
CalledFromAdjustment Boolean
CalledFromInvtPutawayPick Boolean
ItemRegister Table Microsoft.Inventory.Ledger."Item Register"
ItemLedgEntryNo Integer
ValueEntryNo Integer
ItemApplnEntryNo Integer

OnBeforeSetValueEntrySourceFieldsFromItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforeSetValueEntrySourceFieldsFromItemJnlLine(var ValueEntry: Record "Value Entry", var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterPostItemJnlLine

[IntegrationEvent(True,False)]
local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line", ItemLedgerEntry: Record "Item Ledger Entry", var ValueEntryNo: Integer, var InventoryPostingToGL: Codeunit "Inventory Posting To G/L", CalledFromAdjustment: Boolean, CalledFromInvtPutawayPick: Boolean, var ItemRegister: Record "Item Register", var ItemLedgEntryNo: Integer, var ItemApplnEntryNo: Integer, var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntryNo Integer
InventoryPostingToGL Codeunit Microsoft.Inventory.Costing."Inventory Posting To G/L"
CalledFromAdjustment Boolean
CalledFromInvtPutawayPick Boolean
ItemRegister Table Microsoft.Inventory.Ledger."Item Register"
ItemLedgEntryNo Integer
ItemApplnEntryNo Integer
WhseJnlRegisterLine Codeunit Microsoft.Warehouse.Journal."Whse. Jnl.-Register Line"

OnAfterPostOutput

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterPostOutput(var ItemLedgerEntry: Record "Item Ledger Entry", var ProdOrderLine: Record "Prod. Order Line", var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnPostOutputOnBeforeProdOrderRtngLineModify

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostOutputOnBeforeProdOrderRtngLineModify(var ProdOrderRoutingLine: Record "Prod. Order Routing Line", var ProdOrderLine: Record "Prod. Order Line", var ItemJournalLine: Record "Item Journal Line", var LastOperation: Boolean)

Parameters

Name Type Description
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
LastOperation Boolean

OnPostOutputOnAfterProdOrderRtngLineSetFilters

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostOutputOnAfterProdOrderRtngLineSetFilters(var ProdOrderRtngLine: Record "Prod. Order Routing Line")

Parameters

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

OnCheckPostingCostToGL

[IntegrationEvent(False,False)]
local procedure OnCheckPostingCostToGL(var PostCostToGL: Boolean)

Parameters

Name Type Description
PostCostToGL Boolean

OnCheckExpirationDateOnBeforeTestFieldExpirationDate

[IntegrationEvent(False,False)]
local procedure OnCheckExpirationDateOnBeforeTestFieldExpirationDate(var TempTrackingSpecification: Record "Tracking Specification" temporary, var EntriesExist: Boolean, var ExistingExpirationDate: Date)

Parameters

Name Type Description
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
EntriesExist Boolean
ExistingExpirationDate Date

OnBeforeInsertSetupTempSplitItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertSetupTempSplitItemJnlLine(var TempTrackingSpecification: Record "Tracking Specification" temporary, var TempItemJournalLine: Record "Item Journal Line" temporary, var PostItemJnlLine: Boolean, var ItemJournalLine2: Record "Item Journal Line", SignFactor: Integer, FloatingFactor: Decimal)

Parameters

Name Type Description
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
TempItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
PostItemJnlLine Boolean
ItemJournalLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
SignFactor Integer
FloatingFactor Decimal

OnBeforeFlushOperation

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(True,False)]
local procedure OnBeforeFlushOperation(var ProdOrder: Record "Production Order", var ProdOrderLine: Record "Prod. Order Line", var ItemJnlLine: Record "Item Journal Line", LastOperation: Boolean)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
LastOperation Boolean

OnBeforePostFlushedConsumpItemJnlLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforePostFlushedConsumpItemJnlLine(var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterUpdateOldItemLedgerEntryRemainingQuantity

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateOldItemLedgerEntryRemainingQuantity(var OldItemLedgerEntry: Record "Item Ledger Entry", AppliedQuantity: Decimal, var GlobalItemLedgEntry: Record "Item Ledger Entry", var AverageTransfer: Boolean)

Parameters

Name Type Description
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
AppliedQuantity Decimal
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
AverageTransfer Boolean

OnAfterUpdateItemLedgerEntryRemainingQuantity

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateItemLedgerEntryRemainingQuantity(var ItemLedgerEntry: Record "Item Ledger Entry", AppliedQuantity: Decimal)

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
AppliedQuantity Decimal

OnAfterItemValuePosting

[IntegrationEvent(True,False)]
local procedure OnAfterItemValuePosting(var ValueEntry: Record "Value Entry", var ItemJournalLine: Record "Item Journal Line", var Item: Record Item)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
Item Table Microsoft.Inventory.Item.Item

OnSetupSplitJnlLineOnBeforeSplitTempLines

[IntegrationEvent(False,False)]
local procedure OnSetupSplitJnlLineOnBeforeSplitTempLines(var TempSplitItemJournalLine: Record "Item Journal Line" temporary, var TempTrackingSpecification: Record "Tracking Specification" temporary)

Parameters

Name Type Description
TempSplitItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

OnSetupSplitJnlLineOnAfterCheckExpirationDate

[IntegrationEvent(False,False)]
local procedure OnSetupSplitJnlLineOnAfterCheckExpirationDate(var ItemJnlLine2: Record "Item Journal Line", var TempTrackingSpecification: Record "Tracking Specification" temporary, Item: Record Item)

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
Item Table Microsoft.Inventory.Item.Item

OnSetupSplitJnlLineOnBeforeCheckUseExpirationDates

[IntegrationEvent(False,False)]
local procedure OnSetupSplitJnlLineOnBeforeCheckUseExpirationDates(var ItemJnlLine2: Record "Item Journal Line", var TempTrackingSpecification: Record "Tracking Specification" temporary, Item: Record Item, var CalcExpirationDate: Date)

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
Item Table Microsoft.Inventory.Item.Item
CalcExpirationDate Date

OnSetupSplitJnlLineOnAfterGetItemTrackingSetup

[IntegrationEvent(False,False)]
local procedure OnSetupSplitJnlLineOnAfterGetItemTrackingSetup(ItemTrackingCode: Record "Item Tracking Code", ItemJnlLine: Record "Item Journal Line", var ItemTrackingSetup: Record "Item Tracking Setup" temporary, GlobalItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemTrackingSetup Table Microsoft.Inventory.Tracking."Item Tracking Setup"
GlobalItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnSetupSplitJnlLineOnBeforeGetItemTrackingSetup

[IntegrationEvent(False,False)]
local procedure OnSetupSplitJnlLineOnBeforeGetItemTrackingSetup(var ItemJnlLine2: Record "Item Journal Line", TrackingSpecExists: Boolean, CalledFromAdjustment: Boolean, var Item: Record Item, var ItemTrackingCode: Record "Item Tracking Code")

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
TrackingSpecExists Boolean
CalledFromAdjustment Boolean
Item Table Microsoft.Inventory.Item.Item
ItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"

OnSetupSplitJnlLineOnAfterSetupTempSplitItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnSetupSplitJnlLineOnAfterSetupTempSplitItemJnlLine(var ItemJournalLine: Record "Item Journal Line", var TempSplitItemJournalLine: Record "Item Journal Line" temporary, TempTrackingSpecification: Record "Tracking Specification" temporary)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempSplitItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

OnAfterCalcExpectedCost

[IntegrationEvent(False,False)]
local procedure OnAfterCalcExpectedCost(var ValueEntry: Record "Value Entry", ItemLedgerEntryNo: Integer, var ExpectedCost: Decimal, var ExpectedCostACY: Decimal, var ExpectedSalesAmt: Decimal, var ExpectedPurchAmt: Decimal)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemLedgerEntryNo Integer
ExpectedCost Decimal
ExpectedCostACY Decimal
ExpectedSalesAmt Decimal
ExpectedPurchAmt Decimal

OnAfterCalcPurchCorrShares

[IntegrationEvent(False,False)]
local procedure OnAfterCalcPurchCorrShares(var ValueEntry: Record "Value Entry", var ItemJournalLine: Record "Item Journal Line", var OverheadAmount: Decimal, var OverheadAmountACY: Decimal, var VarianceAmount: Decimal, var VarianceAmountACY: Decimal)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
OverheadAmount Decimal
OverheadAmountACY Decimal
VarianceAmount Decimal
VarianceAmountACY Decimal

OnAfterCalcPosShares

[IntegrationEvent(False,False)]
local procedure OnAfterCalcPosShares(var ItemJournalLine: Record "Item Journal Line", var DirCost: Decimal, var OvhdCost: Decimal, var PurchVar: Decimal, var DirCostACY: Decimal, var OvhdCostACY: Decimal, var PurchVarACY: Decimal, var CalcUnitCost: Boolean, CalcPurchVar: Boolean, Expected: Boolean, GlobalItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
DirCost Decimal
OvhdCost Decimal
PurchVar Decimal
DirCostACY Decimal
OvhdCostACY Decimal
PurchVarACY Decimal
CalcUnitCost Boolean
CalcPurchVar Boolean
Expected Boolean
GlobalItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnAfterInsertOHValueEntry

[IntegrationEvent(False,False)]
local procedure OnAfterInsertOHValueEntry(var ValueEntry: Record "Value Entry", var Item: Record Item, var OverheadAmount: Decimal, var OverheadAmountACY: Decimal)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
Item Table Microsoft.Inventory.Item.Item
OverheadAmount Decimal
OverheadAmountACY Decimal

OnAfterSetupTempSplitItemJnlLineSetQty

[IntegrationEvent(False,False)]
local procedure OnAfterSetupTempSplitItemJnlLineSetQty(var TempSplitItemJnlLine: Record "Item Journal Line" temporary, ItemJournalLine: Record "Item Journal Line", SignFactor: Integer, var TempTrackingSpecification: Record "Tracking Specification" temporary)

Parameters

Name Type Description
TempSplitItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
SignFactor Integer
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

OnAfterUpdateAdjmtProp

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateAdjmtProp(var ValueEntry: Record "Value Entry", OriginalPostingDate: Date)

Parameters

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

OnAfterUpdateUnitCost

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateUnitCost(ValueEntry: Record "Value Entry", LastDirectCost: Decimal, ItemJournalLine: Record "Item Journal Line", var Item: Record Item)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
LastDirectCost Decimal
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
Item Table Microsoft.Inventory.Item.Item

OnBeforeCalcDirAndIndirCostAmts

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcDirAndIndirCostAmts(var ItemJournalLine: Record "Item Journal Line", var DirCostAmt: Decimal, var IndirCostAmt: Decimal, CapQty: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
DirCostAmt Decimal
IndirCostAmt Decimal
CapQty Decimal
IsHandled Boolean

OnBeforeCalcExpirationDate

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcExpirationDate(var ItemJnlLine: Record "Item Journal Line", var ExpirationDate: Date, var IsHandled: Boolean, Item: Record Item)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ExpirationDate Date
IsHandled Boolean
Item Table Microsoft.Inventory.Item.Item

OnBeforeCallFlushOperation

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCallFlushOperation(var ItemJnlLine: Record "Item Journal Line", var ShouldFlushOperation: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ShouldFlushOperation Boolean

OnBeforeCheckSerialNo

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckSerialNo(ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforeCheckItemTrackingIsEmpty

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckItemTrackingIsEmpty(ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforeCheckIsCyclicalLoop

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckIsCyclicalLoop(ItemLedgEntry: Record "Item Ledger Entry", OldItemLedgEntry: Record "Item Ledger Entry", var PrevAppliedItemLedgEntry: Record "Item Ledger Entry", var AppliedQty: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
PrevAppliedItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
AppliedQty Decimal
IsHandled Boolean

OnBeforePostFlushedConsump

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforePostFlushedConsump(ProdOrder: Record "Production Order", ProdOrderLine: Record "Prod. Order Line", ProdOrderComp: Record "Prod. Order Component", ProdOrderRoutingLine: Record "Prod. Order Routing Line", OldItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
OldItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforeInitValueEntry

[IntegrationEvent(True,False)]
local procedure OnBeforeInitValueEntry(var ValueEntry: Record "Value Entry", var ValueEntryNo: Integer, var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ValueEntryNo Integer
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeInsertOHValueEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertOHValueEntry(var ValueEntry: Record "Value Entry", var Item: Record Item, var OverheadAmount: Decimal, var OverheadAmountACY: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
Item Table Microsoft.Inventory.Item.Item
OverheadAmount Decimal
OverheadAmountACY Decimal
IsHandled Boolean

OnBeforeInsertVarValueEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertVarValueEntry(var ValueEntry: Record "Value Entry", var Item: Record Item, var VarianceAmount: Decimal, var VarianceAmountACY: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
Item Table Microsoft.Inventory.Item.Item
VarianceAmount Decimal
VarianceAmountACY Decimal
IsHandled Boolean

OnBeforeInsertTempSplitItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertTempSplitItemJnlLine(ItemJournalLine: Record "Item Journal Line", IsServUndoConsumption: Boolean, PostponeReservationHandling: Boolean, var TempSplitItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean, var PostItemJnlLine: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsServUndoConsumption Boolean
PostponeReservationHandling Boolean
TempSplitItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean
PostItemJnlLine Boolean

OnBeforeMoveApplication

[IntegrationEvent(False,False)]
local procedure OnBeforeMoveApplication(var ItemLedgEntry: Record "Item Ledger Entry", var OldItemLedgEntry: Record "Item Ledger Entry")

Parameters

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

OnBeforeOldItemLedgEntryModify

[IntegrationEvent(False,False)]
local procedure OnBeforeOldItemLedgEntryModify(var OldItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnBeforePostLineByEntryType

[IntegrationEvent(False,False)]
local procedure OnBeforePostLineByEntryType(var ItemJournalLine: Record "Item Journal Line", CalledFromAdjustment: Boolean, CalledFromInvtPutawayPick: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
CalledFromAdjustment Boolean
CalledFromInvtPutawayPick Boolean

OnBeforeProdOrderCompModify

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeProdOrderCompModify(var ProdOrderComponent: Record "Prod. Order Component", ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeProdOrderLineModify

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeProdOrderLineModify(var ProdOrderLine: Record "Prod. Order Line", ItemJournalLine: Record "Item Journal Line", ItemLedgEntryNo: Integer)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgEntryNo Integer

OnBeforeRoundAmtValueEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeRoundAmtValueEntry(var ValueEntry: Record "Value Entry", Currency: Record Currency, Item: Record Item, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
Currency Table Microsoft.Finance.Currency.Currency
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean

OnBeforeRetrieveCostPerUnit

[IntegrationEvent(False,False)]
local procedure OnBeforeRetrieveCostPerUnit(ItemJournalLine: Record "Item Journal Line", SKU: Record "Stockkeeping Unit", SKUExists: Boolean, var UnitCost: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"
SKUExists Boolean
UnitCost Decimal
IsHandled Boolean

OnBeforeRunWithCheck

[IntegrationEvent(True,False)]
local procedure OnBeforeRunWithCheck(var ItemJournalLine: Record "Item Journal Line", CalledFromAdjustment: Boolean, CalledFromInvtPutawayPick: Boolean, CalledFromApplicationWorksheet: Boolean, PostponeReservationHandling: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
CalledFromAdjustment Boolean
CalledFromInvtPutawayPick Boolean
CalledFromApplicationWorksheet Boolean
PostponeReservationHandling Boolean
IsHandled Boolean

OnBeforeTempItemEntryRelationInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeTempItemEntryRelationInsert(var TempItemEntryRelation: Record "Item Entry Relation" temporary, ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
TempItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnBeforeTestFirstApplyItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeTestFirstApplyItemLedgEntry(var OldItemLedgerEntry: Record "Item Ledger Entry", var ItemLedgerEntry: Record "Item Ledger Entry", var ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforeTrackingSpecificationMissingErr

[IntegrationEvent(False,False)]
local procedure OnBeforeTrackingSpecificationMissingErr(ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforeSetOrderAdjmtProperties

[IntegrationEvent(False,False)]
local procedure OnBeforeSetOrderAdjmtProperties(ItemLedgEntryType: Option, OrderType: Option, OrderNo: Code[20], OrderLineNo: Integer, OriginalPostingDate: Date, ValuationDate: Date, var IsHandled: Boolean, ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemLedgEntryType Option
OrderType Option
OrderNo Code[20]
OrderLineNo Integer
OriginalPostingDate Date
ValuationDate Date
IsHandled Boolean
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeSetupSplitJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforeSetupSplitJnlLine(var ItemJnlLine2: Record "Item Journal Line", var TrackingSpecExists: Boolean, var TempTrackingSpecification: Record "Tracking Specification" temporary)

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
TrackingSpecExists Boolean
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

OnBeforeVerifyInvoicedQty

[IntegrationEvent(False,False)]
local procedure OnBeforeVerifyInvoicedQty(ItemLedgerEntry: Record "Item Ledger Entry", var IsHandled: Boolean, ValueEntry: Record "Value Entry")

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnBeforeVerifyItemJnlLineAsembleToOrder

[IntegrationEvent(False,False)]
local procedure OnBeforeVerifyItemJnlLineAsembleToOrder(var ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforeUndoQuantityPosting

[IntegrationEvent(False,False)]
local procedure OnBeforeUndoQuantityPosting(var ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforeUpdateProdOrderLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateProdOrderLine(var ProdOrderLine: Record "Prod. Order Line", var ItemJournalLine: Record "Item Journal Line", ReTrack: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ReTrack Boolean

OnBeforeUpdateUnitCost

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateUnitCost(var ValueEntry: Record "Value Entry", var IsHandled: Boolean, ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
IsHandled Boolean
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeUpdateItemLedgerEntryRemainingQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateItemLedgerEntryRemainingQuantity(var ItemLedgerEntry: Record "Item Ledger Entry", var OldItemLedgEntry: Record "Item Ledger Entry", AppliedQty: Decimal, CausedByTransfer: Boolean, AverageTransfer: Boolean)

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
AppliedQty Decimal
CausedByTransfer Boolean
AverageTransfer Boolean

OnApplyItemLedgEntryOnAfterCloseReservEntry

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnAfterCloseReservEntry(var OldItemLedgEntry: Record "Item Ledger Entry", ItemJournalLine: Record "Item Journal Line", var ItemLedgerEntry: Record "Item Ledger Entry", var ReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

OnApplyItemLedgEntryOnBeforeCloseReservEntry

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnBeforeCloseReservEntry(var OldItemLedgEntry: Record "Item Ledger Entry", ItemJournalLine: Record "Item Journal Line", var ItemLedgerEntry: Record "Item Ledger Entry", var ReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

OnApplyItemLedgEntryOnBeforeStartApplication

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnBeforeStartApplication(var ItemLedgerEntry: Record "Item Ledger Entry", var OldItemLedgerEntry: Record "Item Ledger Entry", var StartApplication: Boolean, var AppliedQty: Decimal, var Item: Record Item, var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
StartApplication Boolean
AppliedQty Decimal
Item Table Microsoft.Inventory.Item.Item
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterApplyItemLedgEntrySetFilters

[IntegrationEvent(False,False)]
local procedure OnAfterApplyItemLedgEntrySetFilters(var ItemLedgerEntry2: Record "Item Ledger Entry", ItemLedgerEntry: Record "Item Ledger Entry", ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemLedgerEntry2 Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterApplyItemLedgEntryOnBeforeCalcAppliedQty

[IntegrationEvent(False,False)]
local procedure OnAfterApplyItemLedgEntryOnBeforeCalcAppliedQty(var OldItemLedgerEntry: Record "Item Ledger Entry", ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnAfterGetGLSetup

[IntegrationEvent(False,False)]
local procedure OnAfterGetGLSetup(var GeneralLedgerSetup: Record "General Ledger Setup")

Parameters

Name Type Description
GeneralLedgerSetup Table Microsoft.Finance.GeneralLedger.Setup."General Ledger Setup"

OnAfterMoveValEntryDimToValEntryDim

[IntegrationEvent(False,False)]
local procedure OnAfterMoveValEntryDimToValEntryDim(var ToValueEntry: Record "Value Entry", FromValueEntry: Record "Value Entry")

Parameters

Name Type Description
ToValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
FromValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnAfterInsertTransferEntry

[IntegrationEvent(True,False)]
local procedure OnAfterInsertTransferEntry(var ItemJournalLine: Record "Item Journal Line", NewItemLedgerEntry: Record "Item Ledger Entry", OldItemLedgerEntry: Record "Item Ledger Entry", NewValueEntry: Record "Value Entry", var ValueEntryNo: Integer)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
NewItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
NewValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ValueEntryNo Integer

OnAfterPostItem

[IntegrationEvent(False,False)]
local procedure OnAfterPostItem(var ItemJournalLine: Record "Item Journal Line", CalledFromAdjustment: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
CalledFromAdjustment Boolean

OnAfterPostSplitJnlLine

[IntegrationEvent(False,False)]
local procedure OnAfterPostSplitJnlLine(var ItemJournalLine: Record "Item Journal Line", var TempTrackingSpecification: Record "Tracking Specification" temporary)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

OnAfterPrepareItem

[IntegrationEvent(False,False)]
local procedure OnAfterPrepareItem(var ItemJnlLineToPost: Record "Item Journal Line")

Parameters

Name Type Description
ItemJnlLineToPost Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterUndoQuantityPosting

[IntegrationEvent(False,False)]
local procedure OnAfterUndoQuantityPosting(var ItemLedgerEntry: Record "Item Ledger Entry", ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterUpdateProdOrderLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateProdOrderLine(var ProdOrderLine: Record "Prod. Order Line", ReTrack: Boolean, var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ReTrack Boolean
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterInsertConsumpEntry

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterInsertConsumpEntry(var WarehouseJournalLine: Record "Warehouse Journal Line", var ProdOrderComponent: Record "Prod. Order Component", QtyBase: Decimal, PostWhseJnlLine: Boolean, var ItemJnlLine: Record "Item Journal Line", ItemLedgEntryNo: Integer)

Parameters

Name Type Description
WarehouseJournalLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
QtyBase Decimal
PostWhseJnlLine Boolean
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgEntryNo Integer

OnApplyCapNeedOnAfterSetFilters

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnApplyCapNeedOnAfterSetFilters(var ProdOrderCapNeed: Record "Prod. Order Capacity Need", ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ProdOrderCapNeed Table Microsoft.Manufacturing.Document."Prod. Order Capacity Need"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnApplyItemLedgEntryOnAfterCalcAppliedQty

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnAfterCalcAppliedQty(OldItemLedgEntry: Record "Item Ledger Entry", ItemLedgEntry: Record "Item Ledger Entry", var AppliedQty: Decimal)

Parameters

Name Type Description
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
AppliedQty Decimal

OnApplyItemLedgEntryOnAfterSetAppliedQtyZero

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnAfterSetAppliedQtyZero(OldItemLedgerEntry: Record "Item Ledger Entry", var ItemLedgerEntry: Record "Item Ledger Entry", var AppliedQty: Decimal, var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
AppliedQty Decimal
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnApplyItemLedgEntryOnBeforeCheckApplyEntry

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnBeforeCheckApplyEntry(var OldItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnApplyItemLedgEntryOnBeforeInsertApplEntry

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnBeforeInsertApplEntry(var ItemLedgerEntry: Record "Item Ledger Entry", ItemJournalLine: Record "Item Journal Line", var OldItemLedgEntry: Record "Item Ledger Entry", var GlobalItemLedgEntry: Record "Item Ledger Entry", var AppliedQty: Decimal)

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
AppliedQty Decimal

OnApplyItemLedgEntryOnBeforeOldItemLedgEntryModify

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnBeforeOldItemLedgEntryModify(var ItemLedgerEntry: Record "Item Ledger Entry", var OldItemLedgerEntry: Record "Item Ledger Entry", ItemJournalLine: Record "Item Journal Line", var AverageTransfer: Boolean)

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
AverageTransfer Boolean

OnBeforeCollectTrackingSpecification

[IntegrationEvent(False,False)]
local procedure OnBeforeCollectTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary, var TargetTrackingSpecification: Record "Tracking Specification" temporary, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
TargetTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
Result Boolean
IsHandled Boolean

OnCalcExpectedCostOnBeforeFindValueEntry

[IntegrationEvent(False,False)]
local procedure OnCalcExpectedCostOnBeforeFindValueEntry(var ValueEntry: Record "Value Entry", ItemLedgEntryNo: Integer, InvoicedQty: Decimal, Quantity: Decimal, var ExpectedCost: Decimal, var ExpectedCostACY: Decimal, var ExpectedSalesAmt: Decimal, var ExpectedPurchAmt: Decimal, CalcReminder: Boolean, var InvdValueEntry: Record "Value Entry", ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemLedgEntryNo Integer
InvoicedQty Decimal
Quantity Decimal
ExpectedCost Decimal
ExpectedCostACY Decimal
ExpectedSalesAmt Decimal
ExpectedPurchAmt Decimal
CalcReminder Boolean
InvdValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnCalcILEExpectedAmountOnBeforeCalcCostAmounts

[IntegrationEvent(False,False)]
local procedure OnCalcILEExpectedAmountOnBeforeCalcCostAmounts(var OldValueEntry2: Record "Value Entry", var OldValueEntry: Record "Value Entry", ItemLedgEntryNo: Integer)

Parameters

Name Type Description
OldValueEntry2 Table Microsoft.Inventory.Ledger."Value Entry"
OldValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemLedgEntryNo Integer

OnCorrectOutputValuationDateOnBeforeCheckProdOrder

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnCorrectOutputValuationDateOnBeforeCheckProdOrder(ItemLedgerEntry: Record "Item Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnFlushOperationOnAfterProdOrderCompSetFilters

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnFlushOperationOnAfterProdOrderCompSetFilters(var ProdOrderComponent: Record "Prod. Order Component", OldItemJournalLine: Record "Item Journal Line", var ProdOrderRoutingLine: Record "Prod. Order Routing Line")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
OldItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

OnFlushOperationOnBeforeCheckRoutingLinkCode

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(True,False)]
local procedure OnFlushOperationOnBeforeCheckRoutingLinkCode(var ProductionOrder: Record "Production Order", var ProdOrderLine: Record "Prod. Order Line", var ProdOrderRoutingLine: Record "Prod. Order Routing Line", var ItemJournalLine: Record "Item Journal Line", LastOperation: Boolean)

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
LastOperation Boolean

OnGetValuationDateOnAfterOldValueEntrySetFilters

[IntegrationEvent(False,False)]
local procedure OnGetValuationDateOnAfterOldValueEntrySetFilters(var OldValueEntry: Record "Value Entry", ValueEntry: Record "Value Entry", OldItemLedgEntry: Record "Item Ledger Entry")

Parameters

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

OnGetValuationDateOnBeforeFindOldValueEntry

[IntegrationEvent(False,False)]
local procedure OnGetValuationDateOnBeforeFindOldValueEntry(var OldValueEntry: Record "Value Entry", var IsHandled: Boolean)

Parameters

Name Type Description
OldValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
IsHandled Boolean

OnInitTransValueEntryOnAfterInitValueEntry

[IntegrationEvent(False,False)]
local procedure OnInitTransValueEntryOnAfterInitValueEntry(var ValueEntry: Record "Value Entry", ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

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

OnInitValueEntryOnAfterNotAdjustmentCheckClearCostAmount

[IntegrationEvent(False,False)]
local procedure OnInitValueEntryOnAfterNotAdjustmentCheckClearCostAmount(var ValueEntry: Record "Value Entry", var ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnInitValueEntryOnAfterSetValueEntryInventoriable

[IntegrationEvent(False,False)]
local procedure OnInitValueEntryOnAfterSetValueEntryInventoriable(var ValueEntry: Record "Value Entry", var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnInitValueEntryOnBeforeRoundAmtValueEntry

[IntegrationEvent(False,False)]
local procedure OnInitValueEntryOnBeforeRoundAmtValueEntry(var ValueEntry: Record "Value Entry", ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnInitValueEntryOnAfterAssignFields

[IntegrationEvent(False,False)]
local procedure OnInitValueEntryOnAfterAssignFields(var ValueEntry: Record "Value Entry", ItemLedgEntry: Record "Item Ledger Entry", ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnInitValueEntryOnAfterCalcInvoicedQuantityNotEmpty

[IntegrationEvent(False,False)]
local procedure OnInitValueEntryOnAfterCalcInvoicedQuantityNotEmpty(var ItemJournalLine: Record "Item Journal Line", var InvoicedQuantityNotEmpty: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
InvoicedQuantityNotEmpty Boolean

OnInitValueEntryOnAfterCalcDirestCost

[IntegrationEvent(False,False)]
local procedure OnInitValueEntryOnAfterCalcDirestCost(var CostAmt: Decimal, var VarianceAmount: Decimal, Item: Record Item, ItemJournalLine: Record "Item Journal Line", ValueEntry: Record "Value Entry", var CostAmtACY: Decimal, var VarianceAmountACY: Decimal)

Parameters

Name Type Description
CostAmt Decimal
VarianceAmount Decimal
Item Table Microsoft.Inventory.Item.Item
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
CostAmtACY Decimal
VarianceAmountACY Decimal

OnInsertPostValueEntryToGLOnAfterTransferFields

[IntegrationEvent(False,False)]
local procedure OnInsertPostValueEntryToGLOnAfterTransferFields(var PostValueEntryToGL: Record "Post Value Entry to G/L", ValueEntry: Record "Value Entry")

Parameters

Name Type Description
PostValueEntryToGL Table Microsoft.Inventory.Costing."Post Value Entry to G/L"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnInsertTransferEntryOnTransferValues

[IntegrationEvent(False,False)]
local procedure OnInsertTransferEntryOnTransferValues(var NewItemLedgerEntry: Record "Item Ledger Entry", OldItemLedgerEntry: Record "Item Ledger Entry", ItemLedgerEntry: Record "Item Ledger Entry", ItemJournalLine: Record "Item Journal Line", var TempItemEntryRelation: Record "Item Entry Relation", var IsHandled: Boolean)

Parameters

Name Type Description
NewItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
IsHandled Boolean

OnInsertCapValueEntryOnAfterUpdateCostAmounts

[IntegrationEvent(False,False)]
local procedure OnInsertCapValueEntryOnAfterUpdateCostAmounts(var ValueEntry: Record "Value Entry", var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnInsertConsumpEntryOnBeforePostItem

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnInsertConsumpEntryOnBeforePostItem(var ItemJournalLine: Record "Item Journal Line", ProdOrderComponent: Record "Prod. Order Component", PostWhseJnlLine: Boolean, var WarehouseJournalLine: Record "Warehouse Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
PostWhseJnlLine Boolean
WarehouseJournalLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"

OnInsertOHValueEntryOnBeforeInsertValueEntry

[IntegrationEvent(True,False)]
local procedure OnInsertOHValueEntryOnBeforeInsertValueEntry(var ValueEntry: Record "Value Entry", ItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean, var GlobalItemLedgEntry: Record "Item Ledger Entry", var ValueEntryNo: Integer)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntryNo Integer

OnItemQtyPostingOnAfterCalcInsertItemLedgEntryNeeded

[IntegrationEvent(False,False)]
local procedure OnItemQtyPostingOnAfterCalcInsertItemLedgEntryNeeded(var ItemJournalLine: Record "Item Journal Line", var InsertItemLedgEntryNeeded: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
InsertItemLedgEntryNeeded Boolean

OnItemQtyPostingOnBeforeApplyItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnItemQtyPostingOnBeforeApplyItemLedgEntry(var ItemJournalLine: Record "Item Journal Line", var ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnItemValuePostingOnAfterInsertValueEntry

[IntegrationEvent(False,False)]
local procedure OnItemValuePostingOnAfterInsertValueEntry(var ValueEntry: Record "Value Entry", var ItemLedgerEntry: Record "Item Ledger Entry", var ValueEntryNo: Integer)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntryNo Integer

OnItemValuePostingOnAfterCalcIsCostNotTracedDirectly

[IntegrationEvent(False,False)]
local procedure OnItemValuePostingOnAfterCalcIsCostNotTracedDirectly(var ItemJnlLine: Record "Item Journal Line", var IsCostNotTracedDirectly: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsCostNotTracedDirectly Boolean

OnInsertItemLedgEntryOnBeforeReservationError

[IntegrationEvent(False,False)]
local procedure OnInsertItemLedgEntryOnBeforeReservationError(var ItemJournalLine: Record "Item Journal Line", var ItemLedgerEntry: Record "Item Ledger Entry", var IsHandled: Boolean, Location: Record Location)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean
Location Table Microsoft.Inventory.Location.Location

OnInsertItemLedgEntryOnBeforeSNQtyCheck

[IntegrationEvent(False,False)]
local procedure OnInsertItemLedgEntryOnBeforeSNQtyCheck(ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnInsertItemRegOnBeforeItemRegInsert

[IntegrationEvent(False,False)]
local procedure OnInsertItemRegOnBeforeItemRegInsert(var ItemRegister: Record "Item Register", var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemRegister Table Microsoft.Inventory.Ledger."Item Register"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnValuateAppliedAvgEntryOnAfterSetCostPerUnit

[IntegrationEvent(False,False)]
local procedure OnValuateAppliedAvgEntryOnAfterSetCostPerUnit(var ValueEntry: Record "Value Entry", ItemJournalLine: Record "Item Journal Line", InventorySetup: Record "Inventory Setup", SKU: Record "Stockkeeping Unit", SKUExists: Boolean, Item: Record Item)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
InventorySetup Table Microsoft.Inventory.Setup."Inventory Setup"
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"
SKUExists Boolean
Item Table Microsoft.Inventory.Item.Item

OnValuateAppliedAvgEntryOnAfterUpdateCostAmounts

[IntegrationEvent(False,False)]
local procedure OnValuateAppliedAvgEntryOnAfterUpdateCostAmounts(var ValueEntry: Record "Value Entry", var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnPostFlushedConsumpOnAfterCalcQtyToPost

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostFlushedConsumpOnAfterCalcQtyToPost(ProductionOrder: Record "Production Order", ProdOrderLine: Record "Prod. Order Line", ProdOrderComponent: Record "Prod. Order Component", ActOutputQtyBase: Decimal, var QtyToPost: Decimal, var OldItemJournalLine: Record "Item Journal Line", var ProdOrderRoutingLine: Record "Prod. Order Routing Line", var CompItem: Record Item)

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ActOutputQtyBase Decimal
QtyToPost Decimal
OldItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
CompItem Table Microsoft.Inventory.Item.Item

OnPostFlushedConsumpOnAfterCopyProdOrderFieldsToItemJnlLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostFlushedConsumpOnAfterCopyProdOrderFieldsToItemJnlLine(var ItemJournalLine: Record "Item Journal Line", var OldItemJournalLine: Record "Item Journal Line", ProdOrderLine: Record "Prod. Order Line", ProdOrderComponent: Record "Prod. Order Component", CompItem: Record Item)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
CompItem Table Microsoft.Inventory.Item.Item

OnPostFlushedConsumptionOnBeforeCalcQtyToPost

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostFlushedConsumptionOnBeforeCalcQtyToPost(ProdOrder: Record "Production Order", ProdOrderLine: Record "Prod. Order Line", ProdOrderComp: Record "Prod. Order Component", ProdOrderRoutingLine: Record "Prod. Order Routing Line", OldItemJnlLine: Record "Item Journal Line", var OutputQtyBase: Decimal)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
OldItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
OutputQtyBase Decimal

OnPostFlushedConsumpOnBeforeProdOrderCompReserveTransferPOCompToItemJnlLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostFlushedConsumpOnBeforeProdOrderCompReserveTransferPOCompToItemJnlLine(ItemJournalLine: Record "Item Journal Line", ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnPostFlushedConsumpOnBeforeSetupSplitJnlLine

Obsolete

This element will become obsolete from version 27.0. Replaced by event OnPostFlushedConsumptionItemJnlLineOnBeforeSetupSplitJnlLine

[Obsolete(Replaced by event OnPostFlushedConsumptionItemJnlLineOnBeforeSetupSplitJnlLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostFlushedConsumpOnBeforeSetupSplitJnlLine(var ItemJournalLine: Record "Item Journal Line", var ProdOrder: Record "Production Order", var ProdOrderLine: Record "Prod. Order Line", var ProdOrderComp: Record "Prod. Order Component", var TempTrackingSpecification: Record "Tracking Specification" temporary, var TrackingSpecExists: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
TrackingSpecExists Boolean

OnPostFlushedConsumptionItemJnlLineOnBeforeSetupSplitJnlLine

[IntegrationEvent(False,False)]
local procedure OnPostFlushedConsumptionItemJnlLineOnBeforeSetupSplitJnlLine(var ItemJournalLine: Record "Item Journal Line", var TempTrackingSpecification: Record "Tracking Specification" temporary, var TrackingSpecExists: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
TrackingSpecExists Boolean

OnPostFlushedConsumptionOnAfterSetDimensionSetID

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostFlushedConsumptionOnAfterSetDimensionSetID(ItemJournalLine: Record "Item Journal Line", var ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnPostFlushedConsumptionItemJnlLineOnAfterSetDimensionSetID

[IntegrationEvent(False,False)]
local procedure OnPostFlushedConsumptionItemJnlLineOnAfterSetDimensionSetID(ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnPostConsumptionOnAfterInsertEntry

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostConsumptionOnAfterInsertEntry(var ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnPostConsumptionOnAfterFindProdOrderComp

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostConsumptionOnAfterFindProdOrderComp(var ProdOrderComp: Record "Prod. Order Component")

Parameters

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

OnPostConsumptionOnAfterCalcNewRemainingQty

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostConsumptionOnAfterCalcNewRemainingQty(ProdOrderComponent: Record "Prod. Order Component", var NewRemainingQuantity: Decimal, QtyToPost: Decimal)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
NewRemainingQuantity Decimal
QtyToPost Decimal

OnPostConsumptionOnBeforeCheckOrderType

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostConsumptionOnBeforeCheckOrderType(var ProdOrderComponent: Record "Prod. Order Component", var ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnPostConsumptionOnBeforeFindSetProdOrderComp

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostConsumptionOnBeforeFindSetProdOrderComp(var ProdOrderComponent: Record "Prod. Order Component", var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnPostItemOnAfterGetSKU

[IntegrationEvent(False,False)]
local procedure OnPostItemOnAfterGetSKU(var ItemJnlLine: Record "Item Journal Line", var SKUExists: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
SKUExists Boolean
IsHandled Boolean

OnPostItemOnBeforeCheckInventoryPostingGroup

[IntegrationEvent(False,False)]
local procedure OnPostItemOnBeforeCheckInventoryPostingGroup(var ItemJnlLine: Record "Item Journal Line", var CalledFromAdjustment: Boolean, var Item: Record Item, var ItemTrackingCode: Record "Item Tracking Code")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
CalledFromAdjustment Boolean
Item Table Microsoft.Inventory.Item.Item
ItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"

OnPostItemOnBeforeUpdateUnitCost

[IntegrationEvent(False,False)]
local procedure OnPostItemOnBeforeUpdateUnitCost(var ItemJnlLine: Record "Item Journal Line", GlobalItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnPostOutputOnAfterInsertCapLedgEntry

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostOutputOnAfterInsertCapLedgEntry(ItemJournalLine: Record "Item Journal Line", var SkipPost: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
SkipPost Boolean

OnPostOutputOnAfterInsertCostValueEntries

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostOutputOnAfterInsertCostValueEntries(ItemJournalLine: Record "Item Journal Line", var CapLedgEntry: Record "Capacity Ledger Entry", CalledFromAdjustment: Boolean, PostToGL: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
CapLedgEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"
CalledFromAdjustment Boolean
PostToGL Boolean

OnPostOutputOnAfterSetMfgUnitCost

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostOutputOnAfterSetMfgUnitCost(var ItemJournalLine: Record "Item Journal Line", var MfgUnitCost: Decimal, var ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
MfgUnitCost Decimal
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnPostOutputOnAfterUpdateAmounts

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostOutputOnAfterUpdateAmounts(var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnPostOutputOnAfterUpdateProdOrderLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostOutputOnAfterUpdateProdOrderLine(var ItemJournalLine: Record "Item Journal Line", var WhseJnlLine: Record "Warehouse Journal Line", var GlobalItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
WhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnPostOutputOnBeforeUpdateProdOrderLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostOutputOnBeforeUpdateProdOrderLine(var ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnPostOutputOnAfterCreateWhseJnlLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostOutputOnAfterCreateWhseJnlLine(var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnPostOutputOnBeforeCreateWhseJnlLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostOutputOnBeforeCreateWhseJnlLine(var ItemJournalLine: Record "Item Journal Line", var PostWhseJnlLine: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
PostWhseJnlLine Boolean

OnPostOutputOnBeforePostItem

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostOutputOnBeforePostItem(var ItemJournalLine: Record "Item Journal Line", var ProdOrderLine: Record "Prod. Order Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
IsHandled Boolean

OnPostSplitJnlLineOnBeforeSplitJnlLine

[IntegrationEvent(False,False)]
local procedure OnPostSplitJnlLineOnBeforeSplitJnlLine(var ItemJournalLine: Record "Item Journal Line", var ItemJournalLineToPost: Record "Item Journal Line", var PostItemJournalLine: Boolean, DisableItemTracking: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemJournalLineToPost Table Microsoft.Inventory.Journal."Item Journal Line"
PostItemJournalLine Boolean
DisableItemTracking Boolean

OnReApplyOnBeforeStartApply

[IntegrationEvent(False,False)]
local procedure OnReApplyOnBeforeStartApply(var ItemLedgerEntry: Record "Item Ledger Entry", var ItemLedgerEntry2: Record "Item Ledger Entry")

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgerEntry2 Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnReApplyOnBeforeGetItemTrackingSetup

[IntegrationEvent(False,False)]
local procedure OnReApplyOnBeforeGetItemTrackingSetup(var Item: Record Item, var ItemTrackingCode: Record "Item Tracking Code")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"

OnSetOrderAdjmtPropertiesOnBeforeSetCostIsAdjusted

[IntegrationEvent(False,False)]
local procedure OnSetOrderAdjmtPropertiesOnBeforeSetCostIsAdjusted(var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)", var ModifyOrderAdjmt: Boolean, var IsHandled: Boolean, OriginalPostingDate: Date)

Parameters

Name Type Description
InvtAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
ModifyOrderAdjmt Boolean
IsHandled Boolean
OriginalPostingDate Date

OnSetOrderAdjmtPropertiesOnBeforeSetAllowOnlineAdjustment

[IntegrationEvent(False,False)]
local procedure OnSetOrderAdjmtPropertiesOnBeforeSetAllowOnlineAdjustment(var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)", var ModifyOrderAdjmt: Boolean, var IsHandled: Boolean, OriginalPostingDate: Date)

Parameters

Name Type Description
InvtAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
ModifyOrderAdjmt Boolean
IsHandled Boolean
OriginalPostingDate Date

OnSetupSplitJnlLineOnBeforeReallocateTrkgSpecification

[IntegrationEvent(False,False)]
local procedure OnSetupSplitJnlLineOnBeforeReallocateTrkgSpecification(var ItemTrackingCode: Record "Item Tracking Code", var TempTrackingSpecification: Record "Tracking Specification" temporary, var ItemJnlLine: Record "Item Journal Line", var SignFactor: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
SignFactor Integer
IsHandled Boolean

OnSetupSplitJnlLineOnBeforeCalcNonDistrQuantity

[IntegrationEvent(False,False)]
local procedure OnSetupSplitJnlLineOnBeforeCalcNonDistrQuantity(var TempTrackingSpecification: Record "Tracking Specification" temporary, var ItemJournalLine: Record "Item Journal Line", Invoice: Boolean, SignFactor: Decimal)

Parameters

Name Type Description
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
Invoice Boolean
SignFactor Decimal

OnSplitItemJnlLineOnBeforeTracking

[IntegrationEvent(False,False)]
local procedure OnSplitItemJnlLineOnBeforeTracking(var ItemJnlLine2: Record "Item Journal Line", var PostItemJnlLine: Boolean, var TempTrackingSpecification: Record "Tracking Specification" temporary, var GlobalItemLedgEntry: Record "Item Ledger Entry", var TempItemEntryRelation: Record "Item Entry Relation" temporary, var PostponeReservationHandling: Boolean, var SignFactor: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
PostItemJnlLine Boolean
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
TempItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
PostponeReservationHandling Boolean
SignFactor Integer
IsHandled Boolean

OnTestFirstApplyItemLedgEntryOnAfterTestFields

[IntegrationEvent(False,False)]
local procedure OnTestFirstApplyItemLedgEntryOnAfterTestFields(ItemLedgerEntry: Record "Item Ledger Entry", OldItemLedgerEntry: Record "Item Ledger Entry", ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterTestFirstApplyItemLedgerEntryTracking

[IntegrationEvent(False,False)]
local procedure OnAfterTestFirstApplyItemLedgerEntryTracking(ItemLedgEntry: Record "Item Ledger Entry", OldItemLedgEntry: Record "Item Ledger Entry", ItemTrackingCode: Record "Item Tracking Code")

Parameters

Name Type Description
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"

OnTouchItemEntryCostOnAfterAfterSetAdjmtProp

[IntegrationEvent(False,False)]
local procedure OnTouchItemEntryCostOnAfterAfterSetAdjmtProp(var ItemLedgerEntry: Record "Item Ledger Entry", IsAdjustment: Boolean)

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsAdjustment Boolean

OnUnApplyOnBeforeUpdateItemLedgerEntries

[IntegrationEvent(False,False)]
local procedure OnUnApplyOnBeforeUpdateItemLedgerEntries(var ItemLedgerEntry1: Record "Item Ledger Entry", var ItemLedgerEntry2: Record "Item Ledger Entry", ItemApplnEntry: Record "Item Application Entry")

Parameters

Name Type Description
ItemLedgerEntry1 Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgerEntry2 Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemApplnEntry Table Microsoft.Inventory.Ledger."Item Application Entry"

OnUnApplyOnBeforeItemApplnEntryDelete

[IntegrationEvent(False,False)]
local procedure OnUnApplyOnBeforeItemApplnEntryDelete(var ItemApplicationEntry: Record "Item Application Entry")

Parameters

Name Type Description
ItemApplicationEntry Table Microsoft.Inventory.Ledger."Item Application Entry"

OnUpdateUnitCostOnBeforeCalculateLastDirectCost

[IntegrationEvent(False,False)]
local procedure OnUpdateUnitCostOnBeforeCalculateLastDirectCost(var TotalAmount: Decimal, ItemJournalLine: Record "Item Journal Line", ValueEntry: Record "Value Entry", var Item: Record Item, var IsHandled: Boolean)

Parameters

Name Type Description
TotalAmount Decimal
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean

OnUpdateUnitCostOnBeforeUpdateUnitCost

[IntegrationEvent(False,False)]
local procedure OnUpdateUnitCostOnBeforeUpdateUnitCost(ItemJournalLine: Record "Item Journal Line", ValueEntry: Record "Value Entry", var Item: Record Item, var UpdateSKU: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
Item Table Microsoft.Inventory.Item.Item
UpdateSKU Boolean

OnBeforePostInventoryToGL

[IntegrationEvent(False,False)]
local procedure OnBeforePostInventoryToGL(var ValueEntry: Record "Value Entry", var IsHandled: Boolean, var ItemJnlLine: Record "Item Journal Line", PostToGL: Boolean, CalledFromAdjustment: Boolean, ItemInventoryValueZero: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
IsHandled Boolean
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
PostToGL Boolean
CalledFromAdjustment Boolean
ItemInventoryValueZero Boolean

OnBeforePostValueEntryToGL

[IntegrationEvent(False,False)]
local procedure OnBeforePostValueEntryToGL(var ValueEntry: Record "Value Entry", var IsHandled: Boolean)

Parameters

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

OnAfterPostInventoryToGL

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

Parameters

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

OnPostSplitJnlLineOnAfterCode

[IntegrationEvent(False,False)]
local procedure OnPostSplitJnlLineOnAfterCode(var ItemJournalLine: Record "Item Journal Line", var ItemJournalLineToPost: Record "Item Journal Line", var PostItemJournalLine: Boolean, var TempTrackingSpecification: Record "Tracking Specification" temporary, DisableItemTracking: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemJournalLineToPost Table Microsoft.Inventory.Journal."Item Journal Line"
PostItemJournalLine Boolean
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
DisableItemTracking Boolean

OnAfterCalcCapQty

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterCalcCapQty(var ItemJnlLine: Record "Item Journal Line", var CapQty: Decimal)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
CapQty Decimal

OnVerifyInvoicedQtyOnAfterGetSalesShipmentHeader

[IntegrationEvent(False,False)]
local procedure OnVerifyInvoicedQtyOnAfterGetSalesShipmentHeader(ItemLedgEntry2: Record "Item Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
ItemLedgEntry2 Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnAfterGetAppliedFromValues

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

Parameters

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

OnAfterInsertPhysInventoryEntry

[IntegrationEvent(False,False)]
local procedure OnAfterInsertPhysInventoryEntry(var PhysInventoryLedgerEntry: Record "Phys. Inventory Ledger Entry", ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
PhysInventoryLedgerEntry Table Microsoft.Inventory.Counting.Journal."Phys. Inventory Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterInsertPostValueEntryToGL

[IntegrationEvent(False,False)]
local procedure OnAfterInsertPostValueEntryToGL(ValueEntry: Record "Value Entry")

Parameters

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

OnAfterIsPostToGL

[IntegrationEvent(False,False)]
local procedure OnAfterIsPostToGL(ValueEntry: Record "Value Entry", var Result: Boolean, PostToGL: Boolean)

Parameters

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

OnAfterCheckItemTrackingOfComp

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterCheckItemTrackingOfComp(TempHandlingSpecification: Record "Tracking Specification", ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
TempHandlingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeGetOutputProdOrder

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeGetOutputProdOrder(var ProdOrder: Record "Production Order", ItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforeGetOutputProdOrderLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeGetOutputProdOrderLine(var ProdOrderLine: Record "Prod. Order Line", ItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforeGetProdOrderLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeGetProdOrderLine(var ProdOrderLine: Record "Prod. Order Line", OrderNo: Code[20], OrderLineNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
OrderNo Code[20]
OrderLineNo Integer
IsHandled Boolean

OnBeforeGetProdOrderRoutingLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeGetProdOrderRoutingLine(var ProdOrderRoutingLine: Record "Prod. Order Routing Line", OldItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
OldItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforeIsNotInternalWhseMovement

[IntegrationEvent(False,False)]
local procedure OnBeforeIsNotInternalWhseMovement(ItemJnlLine: Record "Item Journal Line", var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
Result Boolean
IsHandled Boolean

OnBeforeIsInterimRevaluation

[IntegrationEvent(False,False)]
local procedure OnBeforeIsInterimRevaluation(ItemJnlLine: Record "Item Journal Line", var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
Result Boolean
IsHandled Boolean

OnBeforeCheckPostingDateWithExpirationDate

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckPostingDateWithExpirationDate(var ItemLedgEntry: Record "Item Ledger Entry", ItemTrackingCode: Record "Item Tracking Code", OldItemLedgEntry: Record "Item Ledger Entry", var IsHandled: Boolean, var ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeItemValuePosting

[IntegrationEvent(False,False)]
local procedure OnBeforeItemValuePosting(ItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforePostOutput

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforePostOutput(var ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforePostOutputUpdateProdOrderRtngLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforePostOutputUpdateProdOrderRtngLine(var ProdOrderRtngLine: Record "Prod. Order Routing Line", ItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnCalcCapLedgerEntriesSetupRunTimeOnAfterCapLedgerEntrySetFilters

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcCapLedgerEntriesSetupRunTimeOnAfterCapLedgerEntrySetFilters(var CapLedgerEntry: Record "Capacity Ledger Entry", ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
CapLedgerEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnCheckExpirationDateOnAfterCalcSumLot

[IntegrationEvent(False,False)]
local procedure OnCheckExpirationDateOnAfterCalcSumLot(var SumLot: Decimal, SignFactor: Integer, var TempTrackingSpecification: Record "Tracking Specification" temporary)

Parameters

Name Type Description
SumLot Decimal
SignFactor Integer
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

OnCheckExpirationDateOnBeforeAssignExpirationDate

[IntegrationEvent(False,False)]
local procedure OnCheckExpirationDateOnBeforeAssignExpirationDate(var TempTrackingSpecification: Record "Tracking Specification" temporary, ExistingExpirationDate: Date, var IsHandled: Boolean)

Parameters

Name Type Description
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
ExistingExpirationDate Date
IsHandled Boolean

OnSplitItemJnlLineOnBeforeInsertTempTrkgSpecification

[IntegrationEvent(False,False)]
local procedure OnSplitItemJnlLineOnBeforeInsertTempTrkgSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary, ItemJnlLine2: Record "Item Journal Line", SignFactor: Integer)

Parameters

Name Type Description
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
SignFactor Integer

OnInitTransValueEntryOnBeforeCalcCostAmounts

[IntegrationEvent(False,False)]
local procedure OnInitTransValueEntryOnBeforeCalcCostAmounts(GlobalValueEntry: Record "Value Entry", var ValueEntry: Record "Value Entry", ItemTrackingSetup: Record "Item Tracking Setup" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
GlobalValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemTrackingSetup Table Microsoft.Inventory.Tracking."Item Tracking Setup"
IsHandled Boolean

OnInsertValueEntryOnBeforeCalcExpectedCost

[IntegrationEvent(False,False)]
local procedure OnInsertValueEntryOnBeforeCalcExpectedCost(var ItemJnlLine: Record "Item Journal Line", var ItemLedgEntry: Record "Item Ledger Entry", var ValueEntry: Record "Value Entry", TransferItemPBln: Boolean, var InventoryPostingToGL: Codeunit "Inventory Posting To G/L", var ShouldCalcExpectedCost: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
TransferItemPBln Boolean
InventoryPostingToGL Codeunit Microsoft.Inventory.Costing."Inventory Posting To G/L"
ShouldCalcExpectedCost Boolean

OnInsertValueEntryOnBeforeRoundAmtValueEntry

[IntegrationEvent(False,False)]
local procedure OnInsertValueEntryOnBeforeRoundAmtValueEntry(var ValueEntry: Record "Value Entry", var ItemLedgEntry: Record "Item Ledger Entry", ItemJnlLine: Record "Item Journal Line", TransferItem: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TransferItem Boolean

OnInsertVarValueEntryOnAfterInitValueEntryFields

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

Parameters

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

OnInsertItemLedgEntryOnBeforeVerifyOnInventory

[IntegrationEvent(False,False)]
local procedure OnInsertItemLedgEntryOnBeforeVerifyOnInventory(ItemJnlLine: Record "Item Journal Line", ItemLedgEntry: Record "Item Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnInsertItemLedgEntryOnCheckItemTracking

[IntegrationEvent(False,False)]
local procedure OnInsertItemLedgEntryOnCheckItemTracking(ItemJnlLine: Record "Item Journal Line", ItemLedgEntry: Record "Item Ledger Entry", ItemTrackingCode: Record "Item Tracking Code", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"
IsHandled Boolean

OnInsertCapValueEntryOnAfterUpdateCapLedgEntry

[IntegrationEvent(False,False)]
local procedure OnInsertCapValueEntryOnAfterUpdateCapLedgEntry(var ValueEntry: Record "Value Entry", ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnInsertCapValueEntryOnAfterInsertValueEntryRelation

[IntegrationEvent(False,False)]
local procedure OnInsertCapValueEntryOnAfterInsertValueEntryRelation(var ValueEntry: Record "Value Entry", ItemJnlLine: Record "Item Journal Line", var TempValueEntryRelation: Record "Value Entry Relation" temporary)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempValueEntryRelation Table Microsoft.Inventory.Ledger."Value Entry Relation"

OnPostItemOnBeforeGetGlobalLedgerEntry

[IntegrationEvent(False,False)]
local procedure OnPostItemOnBeforeGetGlobalLedgerEntry(ItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforeRecalculateCostPerUnit

[IntegrationEvent(False,False)]
local procedure OnBeforeRecalculateCostPerUnit(var ValueEntry: Record "Value Entry", ItemJnlLine: Record "Item Journal Line", var ItemLedgEntry: Record "Item Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnBeforeSetCalledFromAdjustment

[IntegrationEvent(False,False)]
local procedure OnBeforeSetCalledFromAdjustment(CalledFromAdjustment: Boolean)

Parameters

Name Type Description
CalledFromAdjustment Boolean

OnInsertTransferEntryOnBeforeInitTransValueEntry

[IntegrationEvent(False,False)]
local procedure OnInsertTransferEntryOnBeforeInitTransValueEntry(var TempItemEntryRelation: Record "Item Entry Relation", var NewItemLedgEntry: Record "Item Ledger Entry", Item: Record Item)

Parameters

Name Type Description
TempItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
NewItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
Item Table Microsoft.Inventory.Item.Item

OnInitCorrItemLedgEntryOnAfterRetrieveAppliedExpirationDate

[IntegrationEvent(False,False)]
local procedure OnInitCorrItemLedgEntryOnAfterRetrieveAppliedExpirationDate(var NewItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
NewItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnSplitItemJnlLineOnBeforePostItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnSplitItemJnlLineOnBeforePostItemJnlLine(var TempTrackingSpecification: Record "Tracking Specification", var GlobalItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnInsertValueEntryOnAfterTempValueEntryRelationInsert

[IntegrationEvent(False,False)]
local procedure OnInsertValueEntryOnAfterTempValueEntryRelationInsert(var ValueEntry: Record "Value Entry", ItemJnlLine: Record "Item Journal Line", var TempValueEntryRelation: Record "Value Entry Relation")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempValueEntryRelation Table Microsoft.Inventory.Ledger."Value Entry Relation"

OnUpdateUnitCostOnAfterAssignLastDirectCost

[IntegrationEvent(False,False)]
local procedure OnUpdateUnitCostOnAfterAssignLastDirectCost(var ValueEntry: Record "Value Entry", var Item: Record Item, LastDirectCost: Decimal)

Parameters

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

OnItemQtyPostingOnAfterInsertApplEntry

[IntegrationEvent(False,False)]
local procedure OnItemQtyPostingOnAfterInsertApplEntry(var ItemJnlLine: Record "Item Journal Line", var TempSplitItemJnlLine: Record "Item Journal Line" temporary, var GlobalItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempSplitItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnItemQtyPostingOnBeforeInsertApplEntry

[IntegrationEvent(False,False)]
local procedure OnItemQtyPostingOnBeforeInsertApplEntry(var GlobalItemLedgEntry: Record "Item Ledger Entry", ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnUnApplyOnBeforeInsertApplEntry

[IntegrationEvent(False,False)]
local procedure OnUnApplyOnBeforeInsertApplEntry(var ItemApplnEntry: Record "Item Application Entry")

Parameters

Name Type Description
ItemApplnEntry Table Microsoft.Inventory.Ledger."Item Application Entry"

OnCostApplyOnBeforeInsertApplEntry

[IntegrationEvent(False,False)]
local procedure OnCostApplyOnBeforeInsertApplEntry(var GlobalItemLedgEntry: Record "Item Ledger Entry", var ApplyWithItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ApplyWithItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnApplyItemLedgEntryOnItemLedgEntryPositiveOnBeforeInsertApplEntry

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnItemLedgEntryPositiveOnBeforeInsertApplEntry(var OldItemLedgEntry: Record "Item Ledger Entry", var ItemLedgEntry: Record "Item Ledger Entry", var GlobalItemLedgEntry: Record "Item Ledger Entry", var AppliedQty: Decimal)

Parameters

Name Type Description
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
AppliedQty Decimal

OnInsertTransferEntryOnBeforeInsertApplEntry

[IntegrationEvent(False,False)]
local procedure OnInsertTransferEntryOnBeforeInsertApplEntry(var NewItemLedgEntry: Record "Item Ledger Entry", var ItemLedgEntry: Record "Item Ledger Entry")

Parameters

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

OnInsertApplEntryOnBeforeModify

[IntegrationEvent(False,False)]
local procedure OnInsertApplEntryOnBeforeModify(var ItemApplicationEntry: Record "Item Application Entry")

Parameters

Name Type Description
ItemApplicationEntry Table Microsoft.Inventory.Ledger."Item Application Entry"

OnUndoQuantityPostingOnBeforeInitCorrItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnUndoQuantityPostingOnBeforeInitCorrItemLedgEntry(var ItemJnlLine: Record "Item Journal Line", var OldItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnUndoQuantityPostingOnAfterInitCorrItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnUndoQuantityPostingOnAfterInitCorrItemLedgEntry(var OldItemLedgEntry: Record "Item Ledger Entry", var NewItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
NewItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnUndoQuantityPostingOnAfterUpdateItemApplnEntry

[IntegrationEvent(False,False)]
local procedure OnUndoQuantityPostingOnAfterUpdateItemApplnEntry(var ItemJnlLine: Record "Item Journal Line", OldItemLedgEntry: Record "Item Ledger Entry", NewItemLedgEntry: Record "Item Ledger Entry", NewValueEntry: Record "Value Entry", InventoryPostingToGL: Codeunit "Inventory Posting To G/L")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
NewItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
NewValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
InventoryPostingToGL Codeunit Microsoft.Inventory.Costing."Inventory Posting To G/L"

OnUndoQuantityPostingOnBeforeUpdateOldItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnUndoQuantityPostingOnBeforeUpdateOldItemLedgEntry(var OldValueEntry2: Record "Value Entry", var NewItemLedgEntry: Record "Item Ledger Entry", var NewValueEntry: Record "Value Entry", var ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
OldValueEntry2 Table Microsoft.Inventory.Ledger."Value Entry"
NewItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
NewValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnUndoQuantityPostingOnBeforeInsertApplEntry

[IntegrationEvent(False,False)]
local procedure OnUndoQuantityPostingOnBeforeInsertApplEntry(var NewItemLedgEntry: Record "Item Ledger Entry", var OldItemLedgEntry: Record "Item Ledger Entry", var GlobalItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
NewItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnAfterSetupSplitJnlLine

[IntegrationEvent(False,False)]
local procedure OnAfterSetupSplitJnlLine(var ItemJnlLine2: Record "Item Journal Line", var TempSplitItemJnlLine: Record "Item Journal Line", var ItemJnlLineOrigin: Record "Item Journal Line", var TempTrackingSpecification: Record "Tracking Specification", TrackingSpecExists: Boolean, CalledFromAdjustment: Boolean, PostponeReservationHandling: Boolean, var PostItemJnlLine: Boolean)

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
TempSplitItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemJnlLineOrigin Table Microsoft.Inventory.Journal."Item Journal Line"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
TrackingSpecExists Boolean
CalledFromAdjustment Boolean
PostponeReservationHandling Boolean
PostItemJnlLine Boolean

OnApplyItemLedgEntryOnBeforeFirstReservationSetFilters

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnBeforeFirstReservationSetFilters(var ItemJnlLine: Record "Item Journal Line", var StartApplication: Boolean, FirstReservation: Boolean, var Handled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
StartApplication Boolean
FirstReservation Boolean
Handled Boolean

OnApplyItemLedgEntryOnBeforeCloseSurplusTrackingEntry

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnBeforeCloseSurplusTrackingEntry(ItemJnlLine: Record "Item Journal Line", var StartApplication: Boolean, var UseReservationApplication: Boolean, var Handled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
StartApplication Boolean
UseReservationApplication Boolean
Handled Boolean

OnBeforeInsertPhysInventoryEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertPhysInventoryEntry(var ItemJnlLineOrigin: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLineOrigin Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnItemValuePostingOnBeforeInsertOHValueEntry

[IntegrationEvent(True,False)]
local procedure OnItemValuePostingOnBeforeInsertOHValueEntry(var ItemJnlLine: Record "Item Journal Line", var GlobalValueEntry: Record "Value Entry", var GlobalItemLedgEntry: Record "Item Ledger Entry", var ValueEntryNo: Integer, var IsHandled: Boolean, var VarianceAmount: Decimal, var VarianceAmountACY: Decimal, var OverheadAmount: Decimal, var OverheadAmountACY: Decimal)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
GlobalValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntryNo Integer
IsHandled Boolean
VarianceAmount Decimal
VarianceAmountACY Decimal
OverheadAmount Decimal
OverheadAmountACY Decimal

OnPostConsumptionOnBeforeCalcRemQtyToPostThisLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostConsumptionOnBeforeCalcRemQtyToPostThisLine(var ProdOrderComp: Record "Prod. Order Component", var ItemJnlLine: Record "Item Journal Line", var TempHandlingSpecification: Record "Tracking Specification", RemQtyToPost: Decimal, UseItemTrackingApplication: Boolean, LastLoop: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempHandlingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
RemQtyToPost Decimal
UseItemTrackingApplication Boolean
LastLoop Boolean
IsHandled Boolean

OnPostConsumptionOnBeforeCalcRemainingQuantity

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostConsumptionOnBeforeCalcRemainingQuantity(var ProdOrderComp: Record "Prod. Order Component", var ItemJnlLine: Record "Item Journal Line", var NewRemainingQty: Decimal, var QtyToPost: Decimal, var IsHandled: Boolean, var RemQtyToPost: Decimal)

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
NewRemainingQty Decimal
QtyToPost Decimal
IsHandled Boolean
RemQtyToPost Decimal

OnPostConsumptionOnRemQtyToPostOnBeforeInsertConsumpEntry

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostConsumptionOnRemQtyToPostOnBeforeInsertConsumpEntry(var ItemJnlLine: Record "Item Journal Line", var ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnSetItemAdjmtPropertiesOnBeforeCheckModifyItem

[IntegrationEvent(False,False)]
local procedure OnSetItemAdjmtPropertiesOnBeforeCheckModifyItem(var Item2: Record Item, var ModifyItem: Boolean)

Parameters

Name Type Description
Item2 Table Microsoft.Inventory.Item.Item
ModifyItem Boolean

OnSetupTempSplitItemJnlLineOnAfterCalcPostItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnSetupTempSplitItemJnlLineOnAfterCalcPostItemJnlLine(var TempSplitItemJnlLine: Record "Item Journal Line", var TempTrackingSpecification: Record "Tracking Specification" temporary, var PostItemJnlLine: Boolean)

Parameters

Name Type Description
TempSplitItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
PostItemJnlLine Boolean

OnCodeOnBeforeCheckItemTracking

[IntegrationEvent(False,False)]
local procedure OnCodeOnBeforeCheckItemTracking(var ItemJnlLine: Record "Item Journal Line", DisableItemTracking: Boolean, var IsHandled: Boolean, var TempTrackingSpecification: Record "Tracking Specification", var ItemTrackingSetup: Record "Item Tracking Setup" temporary)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
DisableItemTracking Boolean
IsHandled Boolean
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
ItemTrackingSetup Table Microsoft.Inventory.Tracking."Item Tracking Setup"

OnBeforeCheckInvoicedQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckInvoicedQuantity(ItemLedgEntry: Record "Item Ledger Entry", ValueEntry: Record "Value Entry", var ModifyEntry: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ModifyEntry Boolean
IsHandled Boolean

OnUpdateOrigAppliedFromEntryOnItemApplEntryLoop

[IntegrationEvent(False,False)]
local procedure OnUpdateOrigAppliedFromEntryOnItemApplEntryLoop(var ItemLedgEntry: Record "Item Ledger Entry", ItemApplEntry: Record "Item Application Entry")

Parameters

Name Type Description
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemApplEntry Table Microsoft.Inventory.Ledger."Item Application Entry"

OnUpdateItemLedgEntryOnBeforeUpdateOutboundItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnUpdateItemLedgEntryOnBeforeUpdateOutboundItemLedgEntry(ValueEntry: Record "Value Entry", var IsHandled: Boolean, var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
IsHandled Boolean
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnApplyItemLedgEntryOnApplicationLoop

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnApplicationLoop(var ItemLedgEntry: Record "Item Ledger Entry")

Parameters

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

OnPostItemOnBeforeSetAverageTransfer

[IntegrationEvent(False,False)]
local procedure OnPostItemOnBeforeSetAverageTransfer(var ItemJnlLine: Record "Item Journal Line", CalledFromAdjustment: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
CalledFromAdjustment Boolean

OnBeforeTouchItemEntryCost

[IntegrationEvent(False,False)]
local procedure OnBeforeTouchItemEntryCost(var ItemLedgerEntry: Record "Item Ledger Entry", ItemJnlLine: Record "Item Journal Line", IsAdjustment: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsAdjustment Boolean
IsHandled Boolean

OnBeforeUnApply

[IntegrationEvent(False,False)]
local procedure OnBeforeUnApply(var ItemApplnEntry: Record "Item Application Entry", var IsHandled: Boolean)

Parameters

Name Type Description
ItemApplnEntry Table Microsoft.Inventory.Ledger."Item Application Entry"
IsHandled Boolean

OnBeforeSetupSplitJnlLineProcedure

[IntegrationEvent(False,False)]
local procedure OnBeforeSetupSplitJnlLineProcedure(var ItemJnlLine2: Record "Item Journal Line", TrackingSpecExists: Boolean, CalledFromAdjustment: Boolean)

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
TrackingSpecExists Boolean
CalledFromAdjustment Boolean

OnBeforeShowFixedApplicationError

[IntegrationEvent(False,False)]
local procedure OnBeforeShowFixedApplicationError(var IsHandled: Boolean)

Parameters

Name Type Description
IsHandled Boolean

OnPostItemOnBeforeTransferReservFromJobPlanningLine

[IntegrationEvent(False,False)]
local procedure OnPostItemOnBeforeTransferReservFromJobPlanningLine(var ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean, var AverageTransfer: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean
AverageTransfer Boolean

OnRunWithCheckOnAfterRetrieveItemTracking

[IntegrationEvent(False,False)]
local procedure OnRunWithCheckOnAfterRetrieveItemTracking(var ItemJournalLine: Record "Item Journal Line", var TempTrackingSpecification: Record "Tracking Specification", var TrackingSpecExists: Boolean, PostponeReservationHandling: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
TrackingSpecExists Boolean
PostponeReservationHandling Boolean

OnCheckItemTrackingOnAfterCheckRequiredTrackingNos

[IntegrationEvent(False,False)]
local procedure OnCheckItemTrackingOnAfterCheckRequiredTrackingNos(ItemJournalLine: Record "Item Journal Line", ItemTrackingSetup: Record "Item Tracking Setup" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemTrackingSetup Table Microsoft.Inventory.Tracking."Item Tracking Setup"
IsHandled Boolean

OnInsertCapValueEntryOnBeforeInventoryPostingToGL

[IntegrationEvent(False,False)]
local procedure OnInsertCapValueEntryOnBeforeInventoryPostingToGL(ValueEntry: Record "Value Entry", var IsHandled: Boolean, PostToGL: Boolean)

Parameters

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

OnBeforePostOutputForProdOrder

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforePostOutputForProdOrder(var ItemJnlLine: Record "Item Journal Line", var LastOperation: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
LastOperation Boolean
IsHandled Boolean

OnPostItemOnAfterCheckCostingMethodStandard

[IntegrationEvent(False,False)]
local procedure OnPostItemOnAfterCheckCostingMethodStandard(var Item: Record Item, var ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeUpdateLinkedValuationDate

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateLinkedValuationDate(GlobalItemLedgEntry: Record "Item Ledger Entry", FromItemledgEntryNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
FromItemledgEntryNo Integer
IsHandled Boolean

OnPostInventoryToGLOnAfterPostInvtBuffer

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

Parameters

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

OnCodeOnBeforeTestOrder

[IntegrationEvent(False,False)]
local procedure OnCodeOnBeforeTestOrder(ItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnPostInvtBufferOnAfterBufferInvtPosting

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

Parameters

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

OnCodeOnAfterCalcQtyPerUnitOfMeasure

[IntegrationEvent(False,False)]
local procedure OnCodeOnAfterCalcQtyPerUnitOfMeasure(var ItemJnlLine: Record "Item Journal Line", Subcontracting: Boolean, var QtyPerUnitOfMeasure: Decimal)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
Subcontracting Boolean
QtyPerUnitOfMeasure Decimal

OnInsertValueEntryOnBeforeInsertPostValueEntryToGL

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

Parameters

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

OnItemQtyPostingOnAfterInsertTransferEntry

[IntegrationEvent(False,False)]
local procedure OnItemQtyPostingOnAfterInsertTransferEntry(var ItemJnlLine: Record "Item Journal Line", AverageTransfer: Boolean, GlobalItemLedgEntry: Record "Item Ledger Entry", OldItemLedgEntry: Record "Item Ledger Entry", TotalAppliedQty: Decimal, var TempItemEntryRelation: Record "Item Entry Relation", var GlobalValueEntry: Record "Value Entry")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
AverageTransfer Boolean
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
TotalAppliedQty Decimal
TempItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
GlobalValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnInsertValueEntryOnAfterInsertPostValueEntryToGL

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

Parameters

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

OnBeforeUpdateValuationDate

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateValuationDate(GlobalItemLedgEntry: Record "Item Ledger Entry", FromItemLedgEntryNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
FromItemLedgEntryNo Integer
IsHandled Boolean

OnCodeOnBeforeSetQuantity

[IntegrationEvent(False,False)]
local procedure OnCodeOnBeforeSetQuantity(var ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnCheckItemTrackingInformationOnBeforeTestFields

[IntegrationEvent(False,False)]
local procedure OnCheckItemTrackingInformationOnBeforeTestFields(ItemTrackingSetup: Record "Item Tracking Setup" temporary, TrackingSpecification: Record "Tracking Specification", ItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemTrackingSetup Table Microsoft.Inventory.Tracking."Item Tracking Setup"
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnPostInventoryToGLOnBeforePostInvtBuffer

[IntegrationEvent(False,False)]
local procedure OnPostInventoryToGLOnBeforePostInvtBuffer(var InventoryPostingToGL: Codeunit "Inventory Posting To G/L", PostToGL: Boolean)

Parameters

Name Type Description
InventoryPostingToGL Codeunit Microsoft.Inventory.Costing."Inventory Posting To G/L"
PostToGL Boolean

OnInsertTransferEntryOnBeforeCalcIsReserved

[IntegrationEvent(False,False)]
local procedure OnInsertTransferEntryOnBeforeCalcIsReserved(ItemJnlLine: Record "Item Journal Line", var TempTrackingSpecification: Record "Tracking Specification", NewItemLedgEntry: Record "Item Ledger Entry", ItemLedgEntry: Record "Item Ledger Entry", var IsReserved: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
NewItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsReserved Boolean
IsHandled Boolean

OnSetupTempSplitItemJnlLineOnBeforeCalcPostItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnSetupTempSplitItemJnlLineOnBeforeCalcPostItemJnlLine(var TempSplitItemJnlLine: Record "Item Journal Line", TempTrackingSpecification: Record "Tracking Specification")

Parameters

Name Type Description
TempSplitItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

OnCodeOnBeforeRunCheck

[IntegrationEvent(False,False)]
local procedure OnCodeOnBeforeRunCheck(var ItemJnlCheckLine: Codeunit "Item Jnl.-Check Line", var ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJnlCheckLine Codeunit Microsoft.Inventory.Journal."Item Jnl.-Check Line"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnUndoQuantityPostingOnBeforeInsertCorrOldItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnUndoQuantityPostingOnBeforeInsertCorrOldItemLedgEntry(OldItemLedgEntry: Record "Item Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnBeforeReservationExists

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeReservationExists(ItemJnlLine: Record "Item Journal Line", var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
Result Boolean
IsHandled Boolean

OnUndoQuantityPostingOnAfterCalcShouldInsertCorrValueEntry

[IntegrationEvent(False,False)]
local procedure OnUndoQuantityPostingOnAfterCalcShouldInsertCorrValueEntry(OldItemLedgEntry: Record "Item Ledger Entry", var ShouldInsertCorrValueEntries: Boolean)

Parameters

Name Type Description
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ShouldInsertCorrValueEntries Boolean

OnPostOutputOnBeforeGetMfgAmounts

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostOutputOnBeforeGetMfgAmounts(var ItemJnlLine: Record "Item Journal Line", ProdOrder: Record "Production Order", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
IsHandled Boolean

OnUpdateAvgCostAdjmtBufferOnAfterSetValueEntry

[IntegrationEvent(False,False)]
local procedure OnUpdateAvgCostAdjmtBufferOnAfterSetValueEntry(var ValueEntry: Record "Value Entry", OldItemLedgEntry: Record "Item Ledger Entry")

Parameters

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

OnBeforeGetGeneralPostingSetup

[IntegrationEvent(False,False)]
local procedure OnBeforeGetGeneralPostingSetup(ItemJournalLine: Record "Item Journal Line", var GeneralPostingSetup: Record "General Posting Setup", PostToGl: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
GeneralPostingSetup Table Microsoft.Finance.GeneralLedger.Setup."General Posting Setup"
PostToGl Boolean
IsHandled Boolean

OnCheckItemOnAfterGetItem

[IntegrationEvent(False,False)]
local procedure OnCheckItemOnAfterGetItem(Item: Record Item, ItemJnlLine: Record "Item Journal Line", CalledFromAdjustment: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
CalledFromAdjustment Boolean

OnCheckItemVariantOnAfterGetItemVariant

[IntegrationEvent(False,False)]
local procedure OnCheckItemVariantOnAfterGetItemVariant(ItemVariant: Record "Item Variant", ItemJnlLine: Record "Item Journal Line", CalledFromAdjustment: Boolean)

Parameters

Name Type Description
ItemVariant Table Microsoft.Inventory.Item."Item Variant"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
CalledFromAdjustment Boolean

OnAfterMoveApplication

[IntegrationEvent(False,False)]
local procedure OnAfterMoveApplication(var ItemLedgerEntry: Record "Item Ledger Entry", OldItemLedgerEntry: Record "Item Ledger Entry", var Enough: Boolean)

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
Enough Boolean

OnInitValueEntryOnBeforeSetDocumentLineNo

[IntegrationEvent(False,False)]
local procedure OnInitValueEntryOnBeforeSetDocumentLineNo(ItemJournalLine: Record "Item Journal Line", var ItemLedgerEntry: Record "Item Ledger Entry", var ValueEntry: Record "Value Entry")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnCorrectOutputValuationDateOnBeforeValueEntryFindSet

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnCorrectOutputValuationDateOnBeforeValueEntryFindSet(var ValueEntry: Record "Value Entry")

Parameters

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

OnApplyItemLedgEntryOnAfterTestFirstApplyItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnAfterTestFirstApplyItemLedgEntry(OldItemLedgerEntry: Record "Item Ledger Entry", var ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnBeforeInsertBalanceExpCostRevEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertBalanceExpCostRevEntry(var GlobalItemLedgEntry: Record "Item Ledger Entry", ValueEntry: Record "Value Entry", var ValueEntryNo: Integer, var GLSetup: Record "General Ledger Setup", var Currency: Record Currency, var GLSetupRead: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
GlobalItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ValueEntryNo Integer
GLSetup Table Microsoft.Finance.GeneralLedger.Setup."General Ledger Setup"
Currency Table Microsoft.Finance.Currency.Currency
GLSetupRead Boolean
IsHandled Boolean

OnUndoQuantityPostingOnAfterAutoTrack

[IntegrationEvent(False,False)]
local procedure OnUndoQuantityPostingOnAfterAutoTrack(var NewItemLedgEntry: Record "Item Ledger Entry", var NewValueEntry: Record "Value Entry", ItemJnlLine: Record "Item Journal Line", Item: Record Item)

Parameters

Name Type Description
NewItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
NewValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
Item Table Microsoft.Inventory.Item.Item

OnInitTransValueEntryOnBeforeCalcAdjustedCost

[IntegrationEvent(False,False)]
local procedure OnInitTransValueEntryOnBeforeCalcAdjustedCost(OldItemLedgEntry: Record "Item Ledger Entry", var ValueEntry: Record "Value Entry", var AdjCostInvoicedLCY: Decimal, var AdjCostInvoicedACY: Decimal, var DiscountAmount: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
OldItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
AdjCostInvoicedLCY Decimal
AdjCostInvoicedACY Decimal
DiscountAmount Decimal
IsHandled Boolean

OnGetLastDirectCostValEntryOnBeforeFindDirCostValueEntry

[IntegrationEvent(False,False)]
local procedure OnGetLastDirectCostValEntryOnBeforeFindDirCostValueEntry(var DirCostValueEntry: Record "Value Entry")

Parameters

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

OnBeforeFindNegValueEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeFindNegValueEntry(var NegValueEntry: Record "Value Entry")

Parameters

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

OnTestFirstApplyItemLedgEntryOnBeforeTestFields

[IntegrationEvent(False,False)]
local procedure OnTestFirstApplyItemLedgEntryOnBeforeTestFields(var OldItemLedgerEntry: Record "Item Ledger Entry", var ItemLedgerEntry: Record "Item Ledger Entry", ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnTestFirstApplyItemLedgEntryOnBeforeReservationPreventsApplication

[IntegrationEvent(False,False)]
local procedure OnTestFirstApplyItemLedgEntryOnBeforeReservationPreventsApplication(OldItemLedgerEntry: Record "Item Ledger Entry", ItemLedgerEntry: Record "Item Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnAfterValuateAppliedAvgEntry

[IntegrationEvent(False,False)]
local procedure OnAfterValuateAppliedAvgEntry(var ValueEntry: Record "Value Entry", ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnUndoQuantityPostingOnBeforeCheckPositive

[IntegrationEvent(False,False)]
local procedure OnUndoQuantityPostingOnBeforeCheckPositive(var ItemJournalLine: Record "Item Journal Line", var OldItemLedgerEntry: Record "Item Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnUndoQuantityPostingOnBeforeAutoTrack

[IntegrationEvent(False,False)]
local procedure OnUndoQuantityPostingOnBeforeAutoTrack(var NewItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
NewItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnCheckApplicationOnBeforeRemainingQtyError

[IntegrationEvent(False,False)]
local procedure OnCheckApplicationOnBeforeRemainingQtyError(OldItemLedgerEntry: Record "Item Ledger Entry", ItemLedgerEntry: Record "Item Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnUndoQuantityPostingOnAfterInsertItemReg

[IntegrationEvent(False,False)]
local procedure OnUndoQuantityPostingOnAfterInsertItemReg(var ItemJournalLine: Record "Item Journal Line", var OldItemLedgerEntry: Record "Item Ledger Entry", var NewItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
NewItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnInsertCorrValueEntryOnAfterAssignNewValueEntry

[IntegrationEvent(False,False)]
local procedure OnInsertCorrValueEntryOnAfterAssignNewValueEntry(GlobalItemLedgerEntry: Record "Item Ledger Entry", var OldValueEntry: Record "Value Entry", var NewValueEntry: Record "Value Entry", var ItemJournalLine: Record "Item Journal Line", var ItemLedgerEntry: Record "Item Ledger Entry", var ValueEntryNo: Integer)

Parameters

Name Type Description
GlobalItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
OldValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
NewValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntryNo Integer

OnBeforeSetItemAdjmtProperties

[IntegrationEvent(True,False)]
local procedure OnBeforeSetItemAdjmtProperties(ItemNo: Code[20], ItemLedgEntryType: Enum "Item Ledger Entry Type", Adjustment: Boolean, OriginalPostingDate: Date, ValuationDate: Date, var IsHandled: Boolean)

Parameters

Name Type Description
ItemNo Code[20]
ItemLedgEntryType Enum Microsoft.Inventory.Ledger."Item Ledger Entry Type"
Adjustment Boolean
OriginalPostingDate Date
ValuationDate Date
IsHandled Boolean

OnBeforeCheckItemAndItemVariant

[IntegrationEvent(True,False)]
local procedure OnBeforeCheckItemAndItemVariant(ItemNo: Code[20], VariantCode: Code[10], var Item: Record Item, var ItemVariant: Record "Item Variant", var IsHandled: Boolean)

Parameters

Name Type Description
ItemNo Code[20]
VariantCode Code[10]
Item Table Microsoft.Inventory.Item.Item
ItemVariant Table Microsoft.Inventory.Item."Item Variant"
IsHandled Boolean

OnItemValuePostingOnBeforeInsertValueEntry

[IntegrationEvent(False,False)]
local procedure OnItemValuePostingOnBeforeInsertValueEntry(ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnUpdateItemLedgerEntryOnAfterSetAppliedEntryToAdjust

[IntegrationEvent(False,False)]
local procedure OnUpdateItemLedgerEntryOnAfterSetAppliedEntryToAdjust(ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnAfterUpdateAvgCostAdjmtBuffer

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateAvgCostAdjmtBuffer(var OldItemLedgerEntry: Record "Item Ledger Entry", var ValueEntry: Record "Value Entry", var ValuationDate: Date)

Parameters

Name Type Description
OldItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
ValuationDate Date

OnAfterCheckItemAndVariant

[IntegrationEvent(False,False)]
local procedure OnAfterCheckItemAndVariant(var ItemJournalLine: Record "Item Journal Line", CalledFromAdjustment: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
CalledFromAdjustment Boolean

OnPostOutputOnBeforeInsertCostValueEntries

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(True,False)]
local procedure OnPostOutputOnBeforeInsertCostValueEntries(var ItemJournalLine: Record "Item Journal Line", var CapacityLedgerEntry: Record "Capacity Ledger Entry", var ValuedQty: Decimal, var DirCostAmt: Decimal, var IndirCostAmt: Decimal)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
CapacityLedgerEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"
ValuedQty Decimal
DirCostAmt Decimal
IndirCostAmt Decimal

OnUpdateItemApplnEntryOnAfterFilterItemApplicationEntry

[IntegrationEvent(False,False)]
local procedure OnUpdateItemApplnEntryOnAfterFilterItemApplicationEntry(var ItemApplnEntry: Record "Item Application Entry")

Parameters

Name Type Description
ItemApplnEntry Table Microsoft.Inventory.Ledger."Item Application Entry"

OnApplyItemLedgEntryOnAfterSetLoadFieldsOnReservEntry

[IntegrationEvent(False,False)]
local procedure OnApplyItemLedgEntryOnAfterSetLoadFieldsOnReservEntry(var ReservationEntry: Record "Reservation Entry")

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

OnPublishPostingInventoryToGL

[IntegrationEvent(False,False)]
local procedure OnPublishPostingInventoryToGL(ItemJournalLine: Record "Item Journal Line", var InventoryPostingToGL: Codeunit "Inventory Posting To G/L")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
InventoryPostingToGL Codeunit Microsoft.Inventory.Costing."Inventory Posting To G/L"

OnBeforeOnApplyCapNeed

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeOnApplyCapNeed(var ItemJnlLine: Record "Item Journal Line", var PostedSetupTime: Decimal, var PostedRunTime: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
PostedSetupTime Decimal
PostedRunTime Decimal
IsHandled Boolean

OnPostOutputForProdOrderOnAfterApplyCapNeed

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgItemJnlPostLine

[Obsolete(Moved to codeunit MfgItemJnlPostLine,27.0)]
[IntegrationEvent(False,False)]
local procedure OnPostOutputForProdOrderOnAfterApplyCapNeed(var ItemJnlLine: Record "Item Journal Line", var ValuedQty: Decimal)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ValuedQty Decimal

OnBeforeReApply

[IntegrationEvent(False,False)]
local procedure OnBeforeReApply(ItemLedgerEntry: Record "Item Ledger Entry", ApplyWith: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ApplyWith Integer
IsHandled Boolean

OnBeforeRunPostWithReservation

[IntegrationEvent(False,False)]
local procedure OnBeforeRunPostWithReservation(var ItemJournalLine: Record "Item Journal Line", var ReservationEntry: Record "Reservation Entry", var ItemJournalLinePosted: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ItemJournalLinePosted Boolean
IsHandled Boolean

OnBeforeCollectItemEntryRelation

[IntegrationEvent(False,False)]
local procedure OnBeforeCollectItemEntryRelation(var TempItemEntryRelation: Record "Item Entry Relation" temporary, var TargetItemEntryRelation: Record "Item Entry Relation" temporary, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
TempItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
TargetItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
Result Boolean
IsHandled Boolean

OnBeforeCollectValueEntryRelation

[IntegrationEvent(False,False)]
local procedure OnBeforeCollectValueEntryRelation(var TempValueEntryRelation: Record "Value Entry Relation" temporary, var TargetValueEntryRelation: Record "Value Entry Relation" temporary, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
TempValueEntryRelation Table Microsoft.Inventory.Ledger."Value Entry Relation"
TargetValueEntryRelation Table Microsoft.Inventory.Ledger."Value Entry Relation"
Result Boolean
IsHandled Boolean

OnBeforeUndoValuePostingWithJob

[IntegrationEvent(False,False)]
local procedure OnBeforeUndoValuePostingWithJob(OldItemLedgEntryNo: Integer, NewItemLedgEntryNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
OldItemLedgEntryNo Integer
NewItemLedgEntryNo Integer
IsHandled Boolean

OnBeforeProcedureInsertCapLedgEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeProcedureInsertCapLedgEntry(var ItemJournalLine: Record "Item Journal Line", var CapacityLedgerEntry: Record "Capacity Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
CapacityLedgerEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"
IsHandled Boolean

OnCodeOnAfterRunCheck

[IntegrationEvent(False,False)]
local procedure OnCodeOnAfterRunCheck(var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeItemQtyPosting

[IntegrationEvent(False,False)]
local procedure OnBeforeItemQtyPosting(var ItemJnlLine: Record "Item Journal Line", var CalledFromAdjustment: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
CalledFromAdjustment Boolean
IsHandled Boolean

OnBeforeSetupTempSplitItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforeSetupTempSplitItemJnlLine(var ItemJnlLine2: Record "Item Journal Line", var SignFactor: Integer, var NonDistrQuantity: Decimal, var NonDistrAmount: Decimal, var NonDistrAmountACY: Decimal, var NonDistrDiscountAmount: Decimal, var Invoice: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
SignFactor Integer
NonDistrQuantity Decimal
NonDistrAmount Decimal
NonDistrAmountACY Decimal
NonDistrDiscountAmount Decimal
Invoice Boolean
IsHandled Boolean

OnUndoQuantityPostingOnBeforeCheckItem

[IntegrationEvent(False,False)]
local procedure OnUndoQuantityPostingOnBeforeCheckItem(Item: Record Item, ItemLedgerEntry: Record "Item Ledger Entry", var ShouldCheckItem: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ShouldCheckItem Boolean

See also