Codeunit 5522 Order Planning Mgt.

Base Application, Microsoft.Inventory.Requisition

Source AL, 612 lines

src/Layers/W1/BaseApp/Inventory/Requisition/OrderPlanningMgt.Codeunit.allines 16 to 31 of 612, Copyright (c) Microsoft Corporation. MIT

codeunit 5522 "Order Planning Mgt."{    trigger OnRun()    begin    end;    var        TempUnplannedDemand: Record "Unplanned Demand";        CompanyInfo: Record "Company Information";        UOMMgt: Codeunit "Unit of Measure Management";        DemandType: Enum "Unplanned Demand Type";        HasGotCompanyInfo: Boolean;#pragma warning disable AA0074        Text000: Label 'Generating Lines to Plan @1@@@@@@@';        Text001: Label 'Item Substitution is not possible for the active line.';#pragma warning disable AA0470

All 612 lines

Events 18 in 29

[IntegrationEvent] OnAfterTransformUnplannedDemandToRequisitionLines(var RequisitionLine: Record "Requisition Line")17-29
[IntegrationEvent] OnAvailQtyOnOtherLocationsOnAfterLocationSetFilters(RequisitionLine: Record "Requisition Line"; var Location: Record Location)17-29
[IntegrationEvent] OnBeforeCalcNextLineNo(var NextLineNo: Integer; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeIncreaseReqLineNo(var UnplannedDemand: Record "Unplanned Demand"; var ReqLine: Record "Requisition Line"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeReqLineModify(var RequisitionLine: Record "Requisition Line"; RequisitionLine2: Record "Requisition Line"; ProdOrderComponent: Record "Prod. Order Component")17-29
Pending, tag 27.0, obsolete since 27: Moved to codeunit MfgOrderPlanningMgt
[IntegrationEvent] OnBeforeRunGetUnplannedDemand(var UnplannedDemand: Record "Unplanned Demand"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnCalcATPQtyOnBeforeCalcQtyAvailabletoPromise(var Item: Record Item)17-29

All 18 events

Public procedures 14 in 29

GetOrdersToPlan(var ReqLine: Record "Requisition Line")17-29
PlanSpecificSalesOrder(var ReqLine: Record "Requisition Line"; SalesOrderNo: Code[20])17-29
PrepareRequisitionRecord(var RequisitionLine: Record "Requisition Line")17-29
DeleteLine(): Boolean17-29
CalcNeededQty(AvailableQty: Decimal; DemandQty: Decimal): Decimal17-29
CalcATPQty(ItemNo: Text[250]; VariantFilter: Text[250]; LocationFilter: Text[250]; DemandDate: Date): Decimal17-29

All 20 procedures in 17-29

Changes 5 in 28

List17181920212223242526272829
Procedures815
Events114
SetSalesOrder()gone after 27
gone
SetProdOrder()gone after 27
gone
SetServOrder()gone after 27
gone
SetJobOrder()gone after 27
gone
SetAsmOrder()gone after 27
gone

All 20 changes in 17-29