Codeunit 7380 Phys. Invt. Count.-Management

Base Application, Microsoft.Inventory.Counting.Journal

Source AL, 747 lines

src/Layers/W1/BaseApp/Inventory/Counting/Journal/PhysInvtCountManagement.Codeunit.allines 17 to 32 of 747, Copyright (c) Microsoft Corporation. MIT

codeunit 7380 "Phys. Invt. Count.-Management"{    trigger OnRun()    var        Item: Record Item;        SKU: Record "Stockkeeping Unit";        IsHandled: Boolean;    begin        OnBeforeRun(WhseJnlLine, SourceJnl);        Item.SetFilter("Phys Invt Counting Period Code", '<>''''');        Item.SetFilter("Next Counting Start Date", '<>%1', 0D);        Item.SetFilter("Next Counting End Date", '<>%1', 0D);        OnRunOnAfterSetItemFilters(Item, SourceJnl);        if Item.Find('-') then

All 747 lines

Events 17 in 29

[IntegrationEvent] OnBeforeCreatePhysInvtItemJnl(var ItemJournalLine: Record "Item Journal Line"; var TempPhysInvtItemSelection: Record "Phys. Invt. Item Selection" temporary; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforePrintWhseInvtList(var WarehouseJournalBatch: Record "Warehouse Journal Batch"; PrintQtyCalculated: Boolean; var TempPhysInvtItemSelection: Record "Phys. Invt. Item Selection" temporary; var IsHandled: Boolean)17-29
[IntegrationEvent] OnCreateCustomPhysInvtJournal(var TempPhysInvtItemSelection: Record "Phys. Invt. Item Selection" temporary; SortingMethod: Option " ",Item,Bin; HideValidationDialog: Boolean)17-29
[IntegrationEvent] OnRunOnAfterSetItemFilters(var Item: Record Item; SourceJnl: Option ItemJnl,WhseJnl,PhysInvtOrder,Custom)17-29
[IntegrationEvent] OnRunOnAfterSetSKUFilters(var StockkeepingUnit: Record "Stockkeeping Unit"; SourceJnl: Option ItemJnl,WhseJnl,PhysInvtOrder,Custom)17-29
[IntegrationEvent] OnBeforeRun(var WhseJnlLine: Record "Warehouse Journal Line"; var SourceJnl: Option)17-29
[IntegrationEvent] OnRunOnSKUOnBeforeInsertTempPhysCountBuffer(var Item: Record Item; SKU: Record "Stockkeeping Unit"; var IsHandled: Boolean)17-29

All 21 events in 17-29

Public procedures 12 in 29

CalcPeriod(LastDate: Date; var NextCountingStartDate: Date; var NextCountingEndDate: Date; CountFrequency: Integer)17-29
InitFromItemJnl(ItemJnlLine2: Record "Item Journal Line")17-29
InitFromWhseJnl(WhseJnlLine2: Record "Warehouse Journal Line")17-29
InitFromCustomJnl()17-29
GetSortingMethod(var SortingMethod2: Option " ",Item,Bin)17-29
UpdateSKUPhysInvtCount(var SKU: Record "Stockkeeping Unit")17-29

All 12 procedures

Changes 1 in 22

List17181920212223242526272829
Events4411
[IntegrationEvent] 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")new in 22
added

All 10 changes in 17-29