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
Public procedures 4 in 29
Changes 1 in 28
| List | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
|---|
| Events | | | | | | | | | | 1 | | 1 | |
|---|
All 2 changes in 23-29