Codeunit "Phys. Invt. Count.-Management"

ID 7380
Namespace: Microsoft.Inventory.Counting.Journal

Methods

CalcPeriod

procedure CalcPeriod(LastDate: Date, var NextCountingStartDate: Date, var NextCountingEndDate: Date, CountFrequency: Integer)

Parameters

Name Type Description
LastDate Date
NextCountingStartDate Date
NextCountingEndDate Date
CountFrequency Integer

InitFromItemJnl

procedure InitFromItemJnl(ItemJnlLine2: Record "Item Journal Line")

Parameters

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

InitFromWhseJnl

procedure InitFromWhseJnl(WhseJnlLine2: Record "Warehouse Journal Line")

Parameters

Name Type Description
WhseJnlLine2 Table Microsoft.Warehouse.Journal."Warehouse Journal Line"

InitFromCustomJnl

procedure InitFromCustomJnl()

GetSortingMethod

procedure GetSortingMethod(var SortingMethod2: Option)

Parameters

Name Type Description
SortingMethod2 Option

UpdateSKUPhysInvtCount

procedure UpdateSKUPhysInvtCount(var SKU: Record "Stockkeeping Unit")

Parameters

Name Type Description
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"

UpdateItemPhysInvtCount

procedure UpdateItemPhysInvtCount(var Item: Record Item)

Parameters

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

UpdateItemSKUListPhysInvtCount

procedure UpdateItemSKUListPhysInvtCount()

AddToTempItemSKUList

procedure AddToTempItemSKUList(ItemNo: Code[20], LocationCode: Code[10], VariantCode: Code[10], PhysInvtCountingPeriodType: Option)

Parameters

Name Type Description
ItemNo Code[20]
LocationCode Code[10]
VariantCode Code[10]
PhysInvtCountingPeriodType Option

InitTempItemSKUList

procedure InitTempItemSKUList()

SetHideValidationDialog

procedure SetHideValidationDialog(NewHideValidationDialog: Boolean)

Parameters

Name Type Description
NewHideValidationDialog Boolean

InitFromPhysInvtOrder

procedure InitFromPhysInvtOrder(PhysInvtOrderHeader2: Record "Phys. Invt. Order Header")

Parameters

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

Events

OnBeforeCalcInvtQtyOnHand

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcInvtQtyOnHand(DocNo: Code[20], PostingDate: Date, ZeroQty: Boolean, var TempPhysInvtItemSelection: Record "Phys. Invt. Item Selection" temporary, var IsHandled: Boolean, var ItemJournalLine: Record "Item Journal Line", var Item: Record Item)

Parameters

Name Type Description
DocNo Code[20]
PostingDate Date
ZeroQty Boolean
TempPhysInvtItemSelection Table Microsoft.Inventory.Counting.Journal."Phys. Invt. Item Selection"
IsHandled Boolean
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
Item Table Microsoft.Inventory.Item.Item

OnBeforeCalcWhseQtyOnHand

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcWhseQtyOnHand(DocNo: Code[20], PostingDate: Date, ZeroQty: Boolean, var TempPhysInvtItemSelection: Record "Phys. Invt. Item Selection" temporary, var IsHandled: Boolean, var WhseJnlLine: Record "Warehouse Journal Line")

Parameters

Name Type Description
DocNo Code[20]
PostingDate Date
ZeroQty Boolean
TempPhysInvtItemSelection Table Microsoft.Inventory.Counting.Journal."Phys. Invt. Item Selection"
IsHandled Boolean
WhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"

OnBeforeCreatePhysInvtItemJnl

[IntegrationEvent(False,False)]
local procedure OnBeforeCreatePhysInvtItemJnl(var ItemJournalLine: Record "Item Journal Line", var TempPhysInvtItemSelection: Record "Phys. Invt. Item Selection" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempPhysInvtItemSelection Table Microsoft.Inventory.Counting.Journal."Phys. Invt. Item Selection"
IsHandled Boolean

OnBeforeCreatePhysInvtOrderLines

[IntegrationEvent(False,False)]
local procedure OnBeforeCreatePhysInvtOrderLines(TempPhysInvtItemSelection: Record "Phys. Invt. Item Selection" temporary, PhysInvtOrderHeader: Record "Phys. Invt. Order Header", var IsHandled: Boolean)

Parameters

Name Type Description
TempPhysInvtItemSelection Table Microsoft.Inventory.Counting.Journal."Phys. Invt. Item Selection"
PhysInvtOrderHeader Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"
IsHandled Boolean

OnBeforePrintPhysInvtList

[IntegrationEvent(False,False)]
local procedure OnBeforePrintPhysInvtList(var ItemJournalBatch: Record "Item Journal Batch", PrintQtyCalculated: Boolean, var TempPhysInvtItemSelection: Record "Phys. Invt. Item Selection" temporary, var IsHandled: Boolean, var PrintDocPerItem: Boolean, var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalBatch Table Microsoft.Inventory.Journal."Item Journal Batch"
PrintQtyCalculated Boolean
TempPhysInvtItemSelection Table Microsoft.Inventory.Counting.Journal."Phys. Invt. Item Selection"
IsHandled Boolean
PrintDocPerItem Boolean
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforePrintWhseInvtList

[IntegrationEvent(False,False)]
local procedure OnBeforePrintWhseInvtList(var WarehouseJournalBatch: Record "Warehouse Journal Batch", PrintQtyCalculated: Boolean, var TempPhysInvtItemSelection: Record "Phys. Invt. Item Selection" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
WarehouseJournalBatch Table Microsoft.Warehouse.Journal."Warehouse Journal Batch"
PrintQtyCalculated Boolean
TempPhysInvtItemSelection Table Microsoft.Inventory.Counting.Journal."Phys. Invt. Item Selection"
IsHandled Boolean

OnCreateCustomPhysInvtJournal

[IntegrationEvent(False,False)]
local procedure OnCreateCustomPhysInvtJournal(var TempPhysInvtItemSelection: Record "Phys. Invt. Item Selection" temporary, SortingMethod: Option, HideValidationDialog: Boolean)

Parameters

Name Type Description
TempPhysInvtItemSelection Table Microsoft.Inventory.Counting.Journal."Phys. Invt. Item Selection"
SortingMethod Option
HideValidationDialog Boolean

OnRunOnAfterSetItemFilters

[IntegrationEvent(False,False)]
local procedure OnRunOnAfterSetItemFilters(var Item: Record Item, SourceJnl: Option)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
SourceJnl Option

OnRunOnAfterSetSKUFilters

[IntegrationEvent(False,False)]
local procedure OnRunOnAfterSetSKUFilters(var StockkeepingUnit: Record "Stockkeeping Unit", SourceJnl: Option)

Parameters

Name Type Description
StockkeepingUnit Table Microsoft.Inventory.Location."Stockkeeping Unit"
SourceJnl Option

OnBeforeRun

[IntegrationEvent(False,False)]
local procedure OnBeforeRun(var WhseJnlLine: Record "Warehouse Journal Line", var SourceJnl: Option)

Parameters

Name Type Description
WhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
SourceJnl Option

OnRunOnSKUOnBeforeInsertTempPhysCountBuffer

[IntegrationEvent(False,False)]
local procedure OnRunOnSKUOnBeforeInsertTempPhysCountBuffer(var Item: Record Item, SKU: Record "Stockkeeping Unit", var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"
IsHandled Boolean

OnRunOnBeforeRunModalPhysInvtItemSelection

[IntegrationEvent(False,False)]
local procedure OnRunOnBeforeRunModalPhysInvtItemSelection(var TempPhysInvtItemSelection: Record "Phys. Invt. Item Selection", var IsHandled: Boolean)

Parameters

Name Type Description
TempPhysInvtItemSelection Table Microsoft.Inventory.Counting.Journal."Phys. Invt. Item Selection"
IsHandled Boolean

OnAfterInsertTempPhysCountBuffer

[IntegrationEvent(False,False)]
local procedure OnAfterInsertTempPhysCountBuffer(var TempPhysInvtItemSelection: Record "Phys. Invt. Item Selection", PhysInvtCountCode: Code[10])

Parameters

Name Type Description
TempPhysInvtItemSelection Table Microsoft.Inventory.Counting.Journal."Phys. Invt. Item Selection"
PhysInvtCountCode Code[10]

OnCreatePhysInvtWhseJnlOnBeforeCalculatePhysInvtCountingRunModal

[IntegrationEvent(False,False)]
local procedure OnCreatePhysInvtWhseJnlOnBeforeCalculatePhysInvtCountingRunModal(var CalculatePhysInvtCounting: Report "Calculate Phys. Invt. Counting", SortingMethod: Option, var IsHandled: Boolean)

Parameters

Name Type Description
CalculatePhysInvtCounting Report Microsoft.Inventory.Counting.Journal."Calculate Phys. Invt. Counting"
SortingMethod Option
IsHandled Boolean

OnBeforeUpdateSKUPhysInvtCount

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateSKUPhysInvtCount(var SKU: Record "Stockkeeping Unit")

Parameters

Name Type Description
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"

OnAfterUpdateSKUPhysInvtCount

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateSKUPhysInvtCount(var SKU: Record "Stockkeeping Unit")

Parameters

Name Type Description
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"

OnCreatePhysInvtOrderLinesOnBeforeCalcPhysInvtOrderLinesRunModal

[IntegrationEvent(False,False)]
local procedure OnCreatePhysInvtOrderLinesOnBeforeCalcPhysInvtOrderLinesRunModal(var CalcPhysInvtOrderCount: Report "Calc. Phys. Invt. Order Count", ZeroQty: Boolean, CalcQtyExpected: Boolean, var Item: Record Item, var CalcPhysInvtOrderLines: Report "Calc. Phys. Invt. Order Lines")

Parameters

Name Type Description
CalcPhysInvtOrderCount Report Microsoft.Inventory.Counting.Document."Calc. Phys. Invt. Order Count"
ZeroQty Boolean
CalcQtyExpected Boolean
Item Table Microsoft.Inventory.Item.Item
CalcPhysInvtOrderLines Report Microsoft.Inventory.Counting.Document."Calc. Phys. Invt. Order Lines"

See also