{"title":"Codeunit 5831 PO Matching, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5831-po-matching/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":5831,"name":"PO Matching","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5831-po-matching/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5831-po-matching/source/","path":"src/Layers/W1/BaseApp/Inventory/Tracking/POMatching.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:5829":{"name":"PO Matching Group","url":"https://jonas-paprotka.de/ref/codeunit/5829-po-matching-group/"},"codeunit:5828":{"name":"Invoiceable Receipts","url":"https://jonas-paprotka.de/ref/codeunit/5828-invoiceable-receipts/"},"table:5817":{"name":"Matched Order Line","url":"https://jonas-paprotka.de/ref/table/5817-matched-order-line/"},"codeunit:6503":{"name":"Item Tracking Doc. Management","url":"https://jonas-paprotka.de/ref/codeunit/6503-item-tracking-doc-management/"}},"procs":[{"name":"SuggestCoveringReceipts","line":74,"kind":"procedure","params":1,"steps":[[83,"ext","codeunit",5829,"GetInvoiceOrderEdges",0],[87,"ext","codeunit",5829,"GetInvoiceLine",0],[88,"ext","codeunit",5829,"GetOrderLine",0],[90,"ext","codeunit",5829,"AllocatedInInvoiceOrderEdge",0],[90,"ext","codeunit",5829,"SumAllocatedInOrderReceiptEdges",0],[93,"ext","codeunit",5828,"Load",1],[95,"write",5817,"DeleteAll"],[97,"ext","codeunit",5828,"GetReceiptLine",0],[98,"ext","codeunit",5828,"ReceiptNotInvoiced",1],[99,"call","ReceiptHasItemTracking",1],[106,"call","MinDecimal",2],[109,"ext","codeunit",5829,"GetReceiptEdgeQuantity",3],[114,"write",5817,"Insert"],[117,"ext","codeunit",5828,"NextReceipt",0],[121,"ext","codeunit",5829,"AddMatch",1],[122,"call","InvoiceOrderReceiptEdge",4],[129,"ext","codeunit",5829,"NextInvoiceOrderEdge",0]]},{"name":"ReceiptHasItemTracking","line":139,"kind":"procedure","access":"local","params":1,"steps":[[144,"ext","codeunit",6503,"RetrieveEntriesFromShptRcpt",7]]}]}