{"title":"Codeunit 445 Purch.-Post Prepmt. (Yes/No), extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/445-purch-post-prepmt-yes-no/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":445,"name":"Purch.-Post Prepmt. (Yes/No)","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/445-purch-post-prepmt-yes-no/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/445-purch-post-prepmt-yes-no/source/","path":"src/Layers/W1/BaseApp/Purchases/Posting/PurchPostPrepmtYesNo.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:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"},"codeunit:28":{"name":"Error Message Management","url":"https://jonas-paprotka.de/ref/codeunit/28-error-message-management/"},"codeunit:444":{"name":"Purchase-Post Prepayments","url":"https://jonas-paprotka.de/ref/codeunit/444-purchase-post-prepayments/"},"codeunit:29":{"name":"Error Message Handler","url":"https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/"},"codeunit:445":{"name":"Purch.-Post Prepmt. (Yes/No)","url":"https://jonas-paprotka.de/ref/codeunit/445-purch-post-prepmt-yes-no/"},"codeunit:19":{"name":"Gen. Jnl.-Post Preview","url":"https://jonas-paprotka.de/ref/codeunit/19-gen-jnl-post-preview/"},"table:122":{"name":"Purch. Inv. Header","url":"https://jonas-paprotka.de/ref/table/122-purch-inv-header/"},"table:124":{"name":"Purch. Cr. Memo Hdr.","url":"https://jonas-paprotka.de/ref/table/124-purch-cr-memo-hdr/"}},"procs":[{"name":"PostPrepmtInvoiceYN","line":32,"kind":"procedure","params":2,"steps":[[38,"event","OnPostPrepmtInvoiceYNOnBeforeConfirmPostInvoice",0],[39,"ext","codeunit",27,"GetResponseOrDefault",2],[42,"call","PostPrepmtDocument",2],[46,"call","GetReport",2],[49,"event","OnAfterPostPrepmtInvoiceYN",0]]},{"name":"PostPrepmtCrMemoYN","line":54,"kind":"procedure","params":2,"steps":[[60,"ext","codeunit",27,"GetResponseOrDefault",2],[63,"call","PostPrepmtDocument",2],[66,"call","GetReport",2],[69,"event","OnAfterPostPrepmtCrMemoYN",0]]},{"name":"PostPrepmtDocument","line":74,"kind":"procedure","access":"local","params":2,"steps":[[81,"event","OnBeforePostPrepmtDocument",0],[83,"ext","codeunit",28,"Activate",1],[84,"ext","codeunit",28,"PushContext",4],[85,"ext","codeunit",444,"SetDocumentType",1],[87,"run","codeunit",444],[88,"ext","codeunit",29,"ShowErrors",0]]},{"name":"Preview","line":91,"kind":"procedure","params":2,"steps":[[97,"ext","codeunit",445,"SetDocumentType",1],[98,"ext","codeunit",19,"Preview",2]]},{"name":"GetReport","line":101,"kind":"procedure","params":2,"steps":[[106,"event","OnBeforeGetReport",1],[115,"ext","table",122,"PrintRecords",1],[121,"ext","table",124,"PrintRecords",1]]},{"name":"OnRunPreview","line":143,"kind":"procedure","access":"local","params":3,"steps":[[152,"ext","codeunit",444,"SetDocumentType",1],[156,"ext","codeunit",444,"SetPreviewMode",1],[157,"run","codeunit",444]]}]}