Share via


Codeunit "Item Jnl. Line-Reserve"

ID 99000835
Namespace: Microsoft.Inventory.Journal

Properties

Name Value
Permissions TableData "Reservation Entry" = rimd

Methods

CreateReservation

procedure CreateReservation(var ItemJournalLine: Record "Item Journal Line", Description: Text[100], ExpectedReceiptDate: Date, Quantity: Decimal, QuantityBase: Decimal, ForReservationEntry: Record "Reservation Entry")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
Description Text[100]
ExpectedReceiptDate Date
Quantity Decimal
QuantityBase Decimal
ForReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

CreateReservationSetFrom

procedure CreateReservationSetFrom(TrackingSpecification: Record "Tracking Specification")

Parameters

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

Caption

procedure Caption(ItemJournalLine: Record "Item Journal Line"): Text

Parameters

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

Returns

Type Description
Text

FindReservEntry

procedure FindReservEntry(ItemJournalLine: Record "Item Journal Line", var ReservationEntry: Record "Reservation Entry"): Boolean

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

Returns

Type Description
Boolean

ReservEntryExist

procedure ReservEntryExist(ItemJournalLine: Record "Item Journal Line"): Boolean

Parameters

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

Returns

Type Description
Boolean

ReservEntryExist

procedure ReservEntryExist(ItemJournalLine: Record "Item Journal Line", var ReservationEntry: Record "Reservation Entry"): Boolean

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

Returns

Type Description
Boolean

VerifyChange

procedure VerifyChange(var NewItemJournalLine: Record "Item Journal Line", var OldItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
NewItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

VerifyQuantity

procedure VerifyQuantity(var NewItemJournalLine: Record "Item Journal Line", var OldItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
NewItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

TransferItemJnlToItemLedgEntry

procedure TransferItemJnlToItemLedgEntry(var ItemJournalLine: Record "Item Journal Line", var ItemLedgerEntry: Record "Item Ledger Entry", TransferQty: Decimal, SkipInventory: Boolean): Boolean

Parameters

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

Returns

Type Description
Boolean

RenameLine

procedure RenameLine(var NewItemJournalLine: Record "Item Journal Line", var OldItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
NewItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

DeleteLineConfirm

procedure DeleteLineConfirm(var ItemJournalLine: Record "Item Journal Line"): Boolean

Parameters

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

Returns

Type Description
Boolean

DeleteLine

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

Parameters

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

AssignForPlanning

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

Parameters

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

Block

procedure Block(SetBlocked: Boolean)

Parameters

Name Type Description
SetBlocked Boolean

CallItemTracking

procedure CallItemTracking(var ItemJournalLine: Record "Item Journal Line", IsReclass: Boolean)

Parameters

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

CreateItemTracking

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

Parameters

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

RegisterBinContentItemTracking

procedure RegisterBinContentItemTracking(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"

InitFromItemJnlLine

procedure InitFromItemJnlLine(var TrackingSpecification: Record "Tracking Specification", ItemJnlLine: Record "Item Journal Line")

Parameters

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

Events

OnBeforeCallItemTracking

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

Parameters

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

OnBeforeDeleteLine

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

Parameters

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

OnBeforeVerifyQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforeVerifyQuantity(var NewItemJournalLine: Record "Item Journal Line", OldItemJournalLine: Record "Item Journal Line", var ReservMgt: Codeunit "Reservation Management", var Blocked: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
NewItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ReservMgt Codeunit Microsoft.Inventory.Tracking."Reservation Management"
Blocked Boolean
IsHandled Boolean

OnBeforeTestOldReservEntryLocationCode

[IntegrationEvent(False,False)]
local procedure OnBeforeTestOldReservEntryLocationCode(var OldReservEntry: Record "Reservation Entry", var ItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
OldReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnTransferItemJnlToItemLedgEntryOnBeforeTestVariantCode

[IntegrationEvent(False,False)]
local procedure OnTransferItemJnlToItemLedgEntryOnBeforeTestVariantCode(var OldReservEntry: Record "Reservation Entry", var ItemJnlLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
OldReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnTransferItemJnlToItemLedgEntryOnBeforeTransferReservEntry

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

Parameters

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

OnTransferItemJnlToItemLedgEntryOnAfterTransferReservEntry

[IntegrationEvent(False,False)]
local procedure OnTransferItemJnlToItemLedgEntryOnAfterTransferReservEntry(OldReservationEntry2: Record "Reservation Entry", ReservationStatus: Enum "Reservation Status", ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
OldReservationEntry2 Table Microsoft.Inventory.Tracking."Reservation Entry"
ReservationStatus Enum Microsoft.Inventory.Tracking."Reservation Status"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnVerifyChangeOnBeforeHasError

[IntegrationEvent(False,False)]
local procedure OnVerifyChangeOnBeforeHasError(NewItemJnlLine: Record "Item Journal Line", OldItemJnlLine: Record "Item Journal Line", var HasError: Boolean, var ShowError: Boolean)

Parameters

Name Type Description
NewItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
HasError Boolean
ShowError Boolean

OnCallItemTrackingOnBeforeItemTrackingLinesRunModal

[IntegrationEvent(False,False)]
local procedure OnCallItemTrackingOnBeforeItemTrackingLinesRunModal(var ItemJnlLine: Record "Item Journal Line", var ItemTrackingLines: Page "Item Tracking Lines")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemTrackingLines Page Microsoft.Inventory.Tracking."Item Tracking Lines"

OnCreateReservationOnBeforeCreateReservEntry

[IntegrationEvent(False,False)]
local procedure OnCreateReservationOnBeforeCreateReservEntry(var ItemJnlLine: Record "Item Journal Line", var Quantity: Decimal, var QuantityBase: Decimal, var ForReservEntry: Record "Reservation Entry", var IsHandled: Boolean, var FromTrackingSpecification: Record "Tracking Specification", ExpectedReceiptDate: Date, var Description: Text[100], ShipmentDate: Date)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
Quantity Decimal
QuantityBase Decimal
ForReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
IsHandled Boolean
FromTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
ExpectedReceiptDate Date
Description Text[100]
ShipmentDate Date

OnCallItemTrackingOnBeforeCallItemJnlLineItemTracking

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

Parameters

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

OnCallItemTrackingOnCheckItemPosting

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

Parameters

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

OnBeforeVerifyChange

[IntegrationEvent(False,False)]
local procedure OnBeforeVerifyChange(var NewItemJournalLine: Record "Item Journal Line", OldItemJournalLine: Record "Item Journal Line", var ReservationManagement: Codeunit "Reservation Management", var Blocked: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
NewItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ReservationManagement Codeunit Microsoft.Inventory.Tracking."Reservation Management"
Blocked Boolean
IsHandled Boolean

OnReservEntryExistOnBeforeReservationEntryIsEmpty

[IntegrationEvent(False,False)]
local procedure OnReservEntryExistOnBeforeReservationEntryIsEmpty(var ReservationEntry: Record "Reservation Entry", ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnFindReservEntryOnBeforeReservationEntryFindLast

[IntegrationEvent(False,False)]
local procedure OnFindReservEntryOnBeforeReservationEntryFindLast(var ReservationEntry: Record "Reservation Entry", ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnCreateReservationOnBeforeCreateReservation

[IntegrationEvent(False,False)]
local procedure OnCreateReservationOnBeforeCreateReservation(var ItemJournalLine: Record "Item Journal Line", var TrackingSpecification: Record "Tracking Specification", var Description: Text[100], var ExpectedDate: Date, var Quantity: Decimal, var QuantityBase: Decimal, var ReservationEntry: Record "Reservation Entry")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
Description Text[100]
ExpectedDate Date
Quantity Decimal
QuantityBase Decimal
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

OnSetSourceForReservationOnBeforeUpdateReservation

Obsolete

This element will become obsolete from version 27.0. This event is never raised.

[Obsolete(This event is never raised.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnSetSourceForReservationOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAfterInitFromItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnAfterInitFromItemJnlLine(var TrackingSpecification: Record "Tracking Specification", ItemJournalLine: Record "Item Journal Line")

Parameters

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

OnAfterGetSourceValue

[IntegrationEvent(False,False)]
local procedure OnAfterGetSourceValue(var ReservationEntry: Record "Reservation Entry", var SourceRecRef: RecordRef, ReturnOption: Option)

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
SourceRecRef RecordRef
ReturnOption Option

OnAfterCreateReservation

[IntegrationEvent(False,False)]
local procedure OnAfterCreateReservation(var ItemJournalLine: Record "Item Journal Line", Description: Text[100], ExpectedReceiptDate: Date, Quantity: Decimal, QuantityBase: Decimal, ReservationEntry: Record "Reservation Entry")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
Description Text[100]
ExpectedReceiptDate Date
Quantity Decimal
QuantityBase Decimal
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

See also