Codeunit "Phys. Invt. Order-Post"

ID 5884
Namespace: Microsoft.Inventory.Counting.Document

Properties

Name Value
Permissions TableData "Item Entry Relation" = ri, TableData "Pstd. Phys. Invt. Order Hdr" = rimd, TableData "Pstd. Phys. Invt. Order Line" = rimd, TableData "Pstd. Phys. Invt. Record Hdr" = rimd, TableData "Pstd. Phys. Invt. Record Line" = rimd, TableData "Pstd. Phys. Invt. Tracking" = rimd, TableData "Pstd.Exp.Invt.Order.Tracking" = rimd
TableNo Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"

Methods

Code

procedure Code()

SetSuppressCommit

procedure SetSuppressCommit(NewSuppressCommit: Boolean)

Parameters

Name Type Description
NewSuppressCommit Boolean

SetHideProgressWindow

procedure SetHideProgressWindow(NewHideProgressWindow: Boolean)

Parameters

Name Type Description
NewHideProgressWindow Boolean

Events

OnAfterOnRun

[IntegrationEvent(False,False)]
local procedure OnAfterOnRun(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header", var PstdPhysInvtOrderHdr: Record "Pstd. Phys. Invt. Order Hdr")

Parameters

Name Type Description
PhysInvtOrderHeader Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"
PstdPhysInvtOrderHdr Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Order Hdr"

OnBeforeCode

[IntegrationEvent(False,False)]
local procedure OnBeforeCode(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header", var HideProgressWindow: Boolean, var SuppressCommit: Boolean)

Parameters

Name Type Description
PhysInvtOrderHeader Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"
HideProgressWindow Boolean
SuppressCommit Boolean

OnBeforeItemJnlPostLine

[IntegrationEvent(False,False)]
local procedure OnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line", PhysInvtOrderLine: Record "Phys. Invt. Order Line", var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line", Positive: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
ItemJnlPostLine Codeunit Microsoft.Inventory.Posting."Item Jnl.-Post Line"
Positive Boolean

OnBeforeChecLocationDirectedPutAwayAndPick

[IntegrationEvent(False,False)]
local procedure OnBeforeChecLocationDirectedPutAwayAndPick(PhysInvtOrderLine: Record "Phys. Invt. Order Line", var IsHandled: Boolean)

Parameters

Name Type Description
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
IsHandled Boolean

OnCheckOrderLineOnBeforeGetSamePhysInvtOrderLine

[IntegrationEvent(False,False)]
local procedure OnCheckOrderLineOnBeforeGetSamePhysInvtOrderLine(PhysInvtOrderHeader: Record "Phys. Invt. Order Header", PhysInvtOrderLine: Record "Phys. Invt. Order Line", var PhysInvtOrderLine2: Record "Phys. Invt. Order Line", var ErrorText: Text[250], var IsHandled: Boolean)

Parameters

Name Type Description
PhysInvtOrderHeader Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
PhysInvtOrderLine2 Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
ErrorText Text[250]
IsHandled Boolean

OnInsertEntryRelationOnBeforeInsert

[IntegrationEvent(False,False)]
local procedure OnInsertEntryRelationOnBeforeInsert(var ItemEntryRelation: Record "Item Entry Relation", TrackingSpecification: Record "Tracking Specification", PstdPhysInvtOrderLine: Record "Pstd. Phys. Invt. Order Line")

Parameters

Name Type Description
ItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
PstdPhysInvtOrderLine Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Order Line"

OnBeforeInsertPostedHeader

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertPostedHeader(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header")

Parameters

Name Type Description
PhysInvtOrderHeader Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"

OnBeforeInsertPostedLine

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertPostedLine(PstdPhysInvtOrderHdr: Record "Pstd. Phys. Invt. Order Hdr", PhysInvtOrderLine: Record "Phys. Invt. Order Line", var PstdPhysInvtOrderLine: Record "Pstd. Phys. Invt. Order Line", var IsHandled: Boolean)

Parameters

Name Type Description
PstdPhysInvtOrderHdr Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Order Hdr"
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
PstdPhysInvtOrderLine Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Order Line"
IsHandled Boolean

OnCodeOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnCodeOnAfterSetFilters(var PhysInvtOrderLine: Record "Phys. Invt. Order Line")

Parameters

Name Type Description
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"

OnInsertPostedHeaderOnAfterTransferfields

[IntegrationEvent(False,False)]
local procedure OnInsertPostedHeaderOnAfterTransferfields(PhysInvtOrderHeader: Record "Phys. Invt. Order Header", var PstdPhysInvtOrderHdr: Record "Pstd. Phys. Invt. Order Hdr")

Parameters

Name Type Description
PhysInvtOrderHeader Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"
PstdPhysInvtOrderHdr Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Order Hdr"

OnInsertPostedHeaderOnBeforeInsert

[IntegrationEvent(False,False)]
local procedure OnInsertPostedHeaderOnBeforeInsert(PhysInvtOrderHeader: Record "Phys. Invt. Order Header", var PstdPhysInvtOrderHdr: Record "Pstd. Phys. Invt. Order Hdr", var IsHandled: Boolean)

Parameters

Name Type Description
PhysInvtOrderHeader Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"
PstdPhysInvtOrderHdr Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Order Hdr"
IsHandled Boolean

OnInsertPostedRecordingsOnBeforeInsertHdr

[IntegrationEvent(False,False)]
local procedure OnInsertPostedRecordingsOnBeforeInsertHdr(PhysInvtRecordHeader: Record "Phys. Invt. Record Header", var PstdPhysInvtRecordHdr: Record "Pstd. Phys. Invt. Record Hdr", var IsHandled: Boolean)

Parameters

Name Type Description
PhysInvtRecordHeader Table Microsoft.Inventory.Counting.Recording."Phys. Invt. Record Header"
PstdPhysInvtRecordHdr Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Record Hdr"
IsHandled Boolean

OnInsertPostedRecordingsOnBeforeInsertLine

[IntegrationEvent(False,False)]
local procedure OnInsertPostedRecordingsOnBeforeInsertLine(PstdPhysInvtRecordHdr: Record "Pstd. Phys. Invt. Record Hdr", PhysInvtRecordLine: Record "Phys. Invt. Record Line", var PstdPhysInvtRecordLine: Record "Pstd. Phys. Invt. Record Line", var IsHandled: Boolean)

Parameters

Name Type Description
PstdPhysInvtRecordHdr Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Record Hdr"
PhysInvtRecordLine Table Microsoft.Inventory.Counting.Recording."Phys. Invt. Record Line"
PstdPhysInvtRecordLine Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Record Line"
IsHandled Boolean

OnPostWhseJnlLineOnBeforeCheckWhseJnlLine

[IntegrationEvent(False,False)]
local procedure OnPostWhseJnlLineOnBeforeCheckWhseJnlLine(var TempWhseJnlLine2: Record "Warehouse Journal Line" temporary, Positive: Boolean, Location: Record Location, PhysInvtOrderLine: Record "Phys. Invt. Order Line")

Parameters

Name Type Description
TempWhseJnlLine2 Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
Positive Boolean
Location Table Microsoft.Inventory.Location.Location
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"

OnPostPhysInventoryOrderLineOnAfterInsertPostedLine

[IntegrationEvent(False,False)]
local procedure OnPostPhysInventoryOrderLineOnAfterInsertPostedLine(PhysInvtOrderLine: Record "Phys. Invt. Order Line", var IsHandled: Boolean)

Parameters

Name Type Description
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
IsHandled Boolean

OnPostPhysInventoryOrderLineOnBeforePostPositiveItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnPostPhysInventoryOrderLineOnBeforePostPositiveItemJnlLine(var PhysInvtOrderLine: Record "Phys. Invt. Order Line", WhsePosting: Boolean, var ItemJnlLine: Record "Item Journal Line", var PstdPhysInvtOrderHdr: Record "Pstd. Phys. Invt. Order Hdr", var PstdPhysInvtOrderLine: Record "Pstd. Phys. Invt. Order Line")

Parameters

Name Type Description
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
WhsePosting Boolean
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
PstdPhysInvtOrderHdr Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Order Hdr"
PstdPhysInvtOrderLine Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Order Line"

OnBeforePostWhseJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostWhseJnlLine(var ItemJnlLine: Record "Item Journal Line", var PhysInvtOrderLine: Record "Phys. Invt. Order Line", var PstdPhysInvtOrderHdr: Record "Pstd. Phys. Invt. Order Hdr", var OriginalQuantity: Decimal, var OriginalQuantityBase: Decimal, var Positive: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
PstdPhysInvtOrderHdr Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Order Hdr"
OriginalQuantity Decimal
OriginalQuantityBase Decimal
Positive Boolean
IsHandled Boolean

OnAfterIsDifference

[IntegrationEvent(False,False)]
local procedure OnAfterIsDifference(PhysInvtOrderLine: Record "Phys. Invt. Order Line")

Parameters

Name Type Description
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"

OnThrowDifferenceError

[IntegrationEvent(False,False)]
local procedure OnThrowDifferenceError(PhysInvtOrderLine: Record "Phys. Invt. Order Line", var ErrorMsg: Text)

Parameters

Name Type Description
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
ErrorMsg Text

OnCheckOrderLineOnBeforeTestFieldItemBlocked

[IntegrationEvent(False,False)]
local procedure OnCheckOrderLineOnBeforeTestFieldItemBlocked(Item: Record Item, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean

OnCheckOrderLineOnBeforeTestFieldItemVariantBlocked

[IntegrationEvent(False,False)]
local procedure OnCheckOrderLineOnBeforeTestFieldItemVariantBlocked(ItemVariant: Record "Item Variant", var IsHandled: Boolean)

Parameters

Name Type Description
ItemVariant Table Microsoft.Inventory.Item."Item Variant"
IsHandled Boolean

OnCodeOnAferPostPhysInventoryOrderLineNonNegative

[IntegrationEvent(False,False)]
local procedure OnCodeOnAferPostPhysInventoryOrderLineNonNegative(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header", var PhysInvtOrderLine: Record "Phys. Invt. Order Line", var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line")

Parameters

Name Type Description
PhysInvtOrderHeader Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"
PhysInvtOrderLine Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Line"
ItemJnlPostLine Codeunit Microsoft.Inventory.Posting."Item Jnl.-Post Line"

OnAfterCode

[IntegrationEvent(False,False)]
local procedure OnAfterCode(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header", var PstdPhysInvtOrderHdr: Record "Pstd. Phys. Invt. Order Hdr")

Parameters

Name Type Description
PhysInvtOrderHeader Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"
PstdPhysInvtOrderHdr Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Order Hdr"

OnCodeOnBeforeCheckLinesToPost

[IntegrationEvent(False,False)]
local procedure OnCodeOnBeforeCheckLinesToPost(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header", var LinesToPost: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PhysInvtOrderHeader Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"
LinesToPost Boolean
IsHandled Boolean

OnCodeOnAfterMakeInventoryAdjustment

[IntegrationEvent(False,False)]
local procedure OnCodeOnAfterMakeInventoryAdjustment(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header")

Parameters

Name Type Description
PhysInvtOrderHeader Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"

See also