Codeunit 99000864 Purchase Line Invt. Profile

Base Application, Microsoft.Purchases.Document

Source AL, 140 lines

src/Layers/W1/BaseApp/Purchases/Document/PurchaseLineInvtProfile.Codeunit.allines 10 to 25 of 140, Copyright (c) Microsoft Corporation. MIT

codeunit 99000864 "Purchase Line Invt. Profile"{    // Inventory Profile    procedure TransferInventoryProfileFromPurchaseLine(var InventoryProfile: Record "Inventory Profile"; var PurchaseLine: Record "Purchase Line"; var TrackingReservationEntry: Record "Reservation Entry")    var        ReservationEntry: Record "Reservation Entry";        AutoReservedQty: Decimal;    begin        PurchaseLine.TestField(Type, PurchaseLine.Type::Item);        InventoryProfile.SetSource(            Database::"Purchase Line", PurchaseLine."Document Type".AsInteger(), PurchaseLine."Document No.", PurchaseLine."Line No.", '', 0);        InventoryProfile."Item No." := PurchaseLine."No.";        InventoryProfile."Variant Code" := PurchaseLine."Variant Code";        InventoryProfile."Location Code" := PurchaseLine."Location Code";        InventoryProfile."Bin Code" := PurchaseLine."Bin Code";

All 140 lines

Events 3 in 29

[IntegrationEvent] OnAfterTransferInventoryProfileFromPurchaseLine(var InventoryProfile: Record "Inventory Profile"; PurchaseLine: Record "Purchase Line")new in 25
[IntegrationEvent] OnBeforeTransPurchLineToProfile(var InventoryProfile: Record "Inventory Profile"; var Item: Record Item; ToDate: Date)new in 25
[IntegrationEvent] OnBeforeCheckInsertPurchLineToProfile(var InventoryProfile: Record "Inventory Profile"; var PurchLine: Record "Purchase Line"; ToDate: Date; var IsHandled: Boolean)new in 25

Public procedures 1 in 29

TransferInventoryProfileFromPurchaseLine(var InventoryProfile: Record "Inventory Profile"; var PurchaseLine: Record "Purchase Line"; var TrackingReservationEntry: Record "Reservation Entry")new in 25