Codeunit 303 Allocate Reserv Cust. Priority

Base Application, Microsoft.Inventory.Tracking

Source AL, 92 lines

src/Layers/W1/BaseApp/Inventory/Tracking/AllocateReservCustPriority.Codeunit.allines 7 to 22 of 92, Copyright (c) Microsoft Corporation. MIT

codeunit 303 "Allocate Reserv Cust. Priority" implements "Allocate Reservation"{    var        DescriptionTxt: Label 'Distribution based on Priority field in the customer card. The program will automatically fulfill all demands when the existing stock is sufficient. In cases of insufficient quantities, the system will prioritize supplying customers with the highest priority.';    procedure Allocate(var ReservationWkshLine: Record "Reservation Wksh. Line")    var        ReservWkshLine: Record "Reservation Wksh. Line";        IsHandled: Boolean;    begin        ReservWkshLine.Copy(ReservationWkshLine);        ReservWkshLine.FilterGroup := 2;        ReservWkshLine.SetFilter("Item No.", ReservationWkshLine.GetFilter("Item No."));        ReservWkshLine.SetFilter("Variant Code", ReservationWkshLine.GetFilter("Variant Code"));        ReservWkshLine.SetFilter("Location Code", ReservationWkshLine.GetFilter("Location Code"));        ReservWkshLine.FilterGroup := 0;

All 92 lines

Events 2 in 29

[IntegrationEvent] OnAllocateOnAfterReservationWorksheetLinePrepare(var ReservationWkshLine2: Record "Reservation Wksh. Line"; var ReservationWkshLine: Record "Reservation Wksh. Line"; var IsHandled: Boolean)new in 26
[IntegrationEvent] OnContinueAllocationIfDemandNotFulfilled(var ReservationWkshLine: Record "Reservation Wksh. Line"; var IsHandled: Boolean)new in 28

Public procedures 4 in 29

Allocate(var ReservationWkshLine: Record "Reservation Wksh. Line")new in 23
AllocationCompleted(var ReservationWkshLine: Record "Reservation Wksh. Line"): Booleannew in 23
DeleteAllocation(var ReservationWkshLine: Record "Reservation Wksh. Line")new in 23
GetDescription(): Textnew in 23

Changes 1 in 28

List17181920212223242526272829
Events11
[IntegrationEvent] OnContinueAllocationIfDemandNotFulfilled(var ReservationWkshLine: Record "Reservation Wksh. Line"; var IsHandled: Boolean)new in 28
added

All 2 changes in 23-29