Codeunit 5530 Calc. Item Availability

Base Application, Microsoft.Inventory.Availability

Source AL, 1,164 lines

src/Layers/W1/BaseApp/Inventory/Availability/CalcItemAvailability.Codeunit.allines 21 to 36 of 1,164, Copyright (c) Microsoft Corporation. MIT

codeunit 5530 "Calc. Item Availability"{    trigger OnRun()    begin    end;    var        TempInvtEventBuf: Record "Inventory Event Buffer" temporary;        EntryNo: Integer;        TableNotSupportedErr: Label 'Table %1 is not supported by the ShowDocument function.', Comment = '%1 = table name';    procedure CalcNewInvtEventBuf(var Item: Record Item; ForecastName: Code[10]; IncludeBlanketOrders: Boolean; ExcludeForecastBefore: Date; IncludePlan: Boolean)    begin        if Item.Type <> Item.Type::Inventory then            exit;

All 1,164 lines

Events 33 in 29

[IntegrationEvent] OnAfterGetDocumentEntries(var InvtEventBuf: Record "Inventory Event Buffer"; var Item: Record Item; var CurrEntryNo: Integer)17-29
[IntegrationEvent] OnAfterGetPlanningLines(var InvtEventBuf: Record "Inventory Event Buffer"; Item: Record Item; ReqLine: Record "Requisition Line"; FromRecRef: RecordRef)17-29
[IntegrationEvent] OnBeforeTryGetQtyOnInventory(var InvtEventBuf: Record "Inventory Event Buffer"; var Item: Record Item; var Result: Boolean; var IsHandled: Boolean)17-29
[IntegrationEvent] OnGetPlanningLinesOnAfterReqLineSetFilters(var ReqLine: Record "Requisition Line"; var Item: Record Item)17-29
[IntegrationEvent] OnAfterGetAnticipatedDemand(var InvtEventBuf: Record "Inventory Event Buffer"; var Item: Record Item; ForecastName: Code[10]; ExcludeForecastBefore: Date; IncludeBlanketOrders: Boolean; EntryNo: Integer)new in 18
[IntegrationEvent] OnGetBlanketSalesOrdersOnAfterAssignQtyReleased(BlanketSalesLine: Record "Sales Line"; QtyReleased: Decimal)new in 18
[IntegrationEvent] OnGetBlanketSalesOrdersOnAfterTransferFromSalesBlanketOrder(BlanketSalesLine: Record "Sales Line"; var InventoryEventBuffer: Record "Inventory Event Buffer")new in 18

All 35 events in 17-29

Public procedures 7 in 29

CalcNewInvtEventBuf(var Item: Record Item; ForecastName: Code[10]; IncludeBlanketOrders: Boolean; ExcludeForecastBefore: Date; IncludePlan: Boolean)17-29
GetInvEventBuffer(var RequestInvtEventBuf: Record "Inventory Event Buffer")17-29
GetDocumentEntries(var InvtEventBuf: Record "Inventory Event Buffer"; var Item: Record Item)17-29
InsertEntry(var NewInvtEventBuffer: Record "Inventory Event Buffer")17-29
NextEntryNo(): Integer17-29
GetSourceReferences(FromRecordID: RecordId; TransferDirection: Enum "Transfer Direction"; var SourceType: Integer; var SourceSubtype: Integer; var SourceID: Code[20]; var SourceBatchName: Code[10]; var SourceProdOrderLine: Integer; var SourceRefNo: Integer): Boolean17-29

All 9 procedures in 17-29

Changes 5 in 27

List17181920212223242526272829
Procedures2
Events10112253
internal RunOnBeforeRunProductionOrderPage(var ProductionOrder: Record "Production Order"; var IsHandled: Boolean)new in 27
added
internal RunOnParentIsInPlanningOnAfterReqLineSetFilters(var RequisitionLine: Record "Requisition Line"; var ProdOrderComp: Record "Prod. Order Component")new in 27
added
[IntegrationEvent] OnBeforeRunProductionOrderPage(var ProductionOrder: Record "Production Order"; var IsHandled: Boolean)new in 21
marked Pending, tag 27.0: Moved to codeunit ProdOrderAvailabilityMgt
[IntegrationEvent] OnParentIsInPlanningOnAfterReqLineSetFilters(var RequisitionLine: Record "Requisition Line"; var ProdOrderComp: Record "Prod. Order Component")new in 23
marked Pending, tag 27.0: Moved to codeunit ProdOrderAvailabilityMgt
[IntegrationEvent] OnParentIsInPlanning(InvtEventBuf: Record "Inventory Event Buffer"; var ParentActionMessage: Enum "Action Message Type"; var Result: Boolean)new in 27
added

All 35 changes in 17-29