Codeunit 5400 Available Management

Base Application, Microsoft.Inventory.Availability

Source AL, 213 lines

src/Layers/W1/BaseApp/Inventory/Availability/AvailableManagement.Codeunit.allines 10 to 25 of 213, Copyright (c) Microsoft Corporation. MIT

codeunit 5400 "Available Management"{    trigger OnRun()    begin    end;    procedure ExpectedQtyOnHand(var Item: Record Item; CalcAvailable: Boolean; ExtraNetNeed: Decimal; var Available: Decimal; PlannedOrderReceiptDate: Date) ExpectedQty: Decimal    var        CopyOfItem: Record Item;        IsHandled: Boolean;    begin        IsHandled := false;        OnBeforeCalcExpectedQtyOnHand(Item, CalcAvailable, ExtraNetNeed, Available, PlannedOrderReceiptDate, ExpectedQty, IsHandled);        if IsHandled then            exit(ExpectedQty);

All 213 lines

Events 6 in 29

[IntegrationEvent] OnAfterCalcAvailableQty(var Item: Record Item; CalcAvailable: Boolean; PlannedOrderReceiptDate: Date; var AvailableQty: Decimal)17-29changed in 22
[IntegrationEvent] OnAfterCalcExpectedQty(var Item: Record Item; CalcAvailable: Boolean; ExtraNetNeed: Decimal; var Available: Decimal; PlannedOrderReceiptDate: Date; var ExpectedQty: Decimal)17-29changed in 22
[IntegrationEvent] OnBeforeCalcExpectedQtyOnHand(var Item: Record Item; CalcAvailable: Boolean; ExtraNetNeed: Decimal; var Available: Decimal; PlannedOrderReceiptDate: Date; var ExpectedQty: Decimal; var IsHandled: Boolean)new in 22
[IntegrationEvent] OnBeforeCalcAvailableQty(var Item: Record Item; CalcAvailable: Boolean; PlannedOrderReceiptDate: Date; var AvailableQty: Decimal; var IsHandled: Boolean)new in 22
[IntegrationEvent] OnCalcAvailableQtyOnAfterCalculation(var CopyOfItem: Record Item; var AvailableQty: Decimal)new in 25
[IntegrationEvent] OnCalcAvailableQtyOnAfterCalcFields(var CopyOfItem: Record Item; var ScheduledReceiptQty: Decimal)new in 27

Public procedures 2 in 29

ExpectedQtyOnHand(var Item: Record Item; CalcAvailable: Boolean; ExtraNetNeed: Decimal; var Available: Decimal; PlannedOrderReceiptDate: Date): Decimal17-29
GetItemReorderQty(Item: Record Item; QtyAvailable: Decimal): Decimal17-29

Changes 1 in 27

List17181920212223242526272829
Events411
[IntegrationEvent] OnCalcAvailableQtyOnAfterCalcFields(var CopyOfItem: Record Item; var ScheduledReceiptQty: Decimal)new in 27
added

All 6 changes in 17-29