Codeunit 5831 PO Matching

Base Application, Microsoft.Inventory.Tracking

Source AL, 150 lines

src/Layers/W1/BaseApp/Inventory/Tracking/POMatching.Codeunit.allines 11 to 26 of 150, Copyright (c) Microsoft Corporation. MIT

codeunit 5831 "PO Matching"{    Access = Public;    #region Edge factory    // Edges are unpersisted "Matched Order Line" records    /// <summary>Builds an invoice-to-order edge.</summary>    /// <param name="InvoiceLineSystemId">SystemId of the Invoice Line.</param>    /// <param name="OrderLineSystemId">SystemId of the Order Line.</param>    /// <param name="QtyToAllocate">The quantity desired to allocate for the match.</param>    /// <returns>A match that can be used in AddMatch.</returns>    procedure InvoiceOrderEdge(InvoiceLineSystemId: Guid; OrderLineSystemId: Guid; QtyToAllocate: Decimal) Edge: Record "Matched Order Line"    begin        Edge."Document Line SystemId" := InvoiceLineSystemId;        Edge."Matched Order Line SystemId" := OrderLineSystemId;

All 150 lines

Public procedures 5 in 29

InvoiceOrderEdge(InvoiceLineSystemId: Guid; OrderLineSystemId: Guid; QtyToAllocate: Decimal): Record "Matched Order Line"new in 29
OrderReceiptEdge(OrderLineSystemId: Guid; ReceiptLineSystemId: Guid; QtyToAllocate: Decimal): Record "Matched Order Line"new in 29
InvoiceOrderReceiptEdge(InvoiceLineSystemId: Guid; OrderLineSystemId: Guid; ReceiptLineSystemId: Guid; QtyToAllocate: Decimal): Record "Matched Order Line"new in 29
InvoiceReceiptEdge(InvoiceLineSystemId: Guid; ReceiptLineSystemId: Guid; QtyToAllocate: Decimal): Record "Matched Order Line"new in 29
SuggestCoveringReceipts(var POMatchingGroup: Codeunit "PO Matching Group")new in 29