{"title":"Codeunit 443 Sales-Post Prepayment (Yes/No), extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/443-sales-post-prepayment-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":443,"name":"Sales-Post Prepayment (Yes/No)","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/443-sales-post-prepayment-yes-no/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/443-sales-post-prepayment-yes-no/source/","path":"src/Layers/W1/BaseApp/Sales/Posting/SalesPostPrepaymentYesNo.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:442":{"name":"Sales-Post Prepayments","url":"https://jonas-paprotka.de/ref/codeunit/442-sales-post-prepayments/"},"codeunit:29":{"name":"Error Message Handler","url":"https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/"},"codeunit:443":{"name":"Sales-Post Prepayment (Yes/No)","url":"https://jonas-paprotka.de/ref/codeunit/443-sales-post-prepayment-yes-no/"},"codeunit:19":{"name":"Gen. Jnl.-Post Preview","url":"https://jonas-paprotka.de/ref/codeunit/19-gen-jnl-post-preview/"},"table:112":{"name":"Sales Invoice Header","url":"https://jonas-paprotka.de/ref/table/112-sales-invoice-header/"},"table:114":{"name":"Sales Cr.Memo Header","url":"https://jonas-paprotka.de/ref/table/114-sales-cr-memo-header/"}},"procs":[{"name":"PostPrepmtInvoiceYN","line":41,"kind":"procedure","params":2,"steps":[[48,"event","OnPostPrepmtInvoiceYNOnBeforeConfirm",1],[50,"call","ConfirmForDocument",2],[53,"call","PostPrepmtDocument",2],[57,"call","GetReport",2],[60,"event","OnAfterPostPrepmtInvoiceYN",0]]},{"name":"PostPrepmtCrMemoYN","line":70,"kind":"procedure","params":2,"steps":[[77,"event","OnPostPrepmtCrMemoYNOnBeforeConfirm",1],[79,"call","ConfirmForDocument",2],[82,"call","PostPrepmtDocument",2],[85,"call","GetReport",2],[88,"event","OnAfterPostPrepmtCrMemoYN",0]]},{"name":"ConfirmForDocument","line":93,"kind":"procedure","access":"local","params":2,"steps":[[99,"event","OnBeforeConfirmForDocument",1],[103,"ext","codeunit",27,"GetResponseOrDefault",2]]},{"name":"PostPrepmtDocument","line":106,"kind":"procedure","access":"local","params":2,"steps":[[114,"event","OnBeforePostPrepmtDocument",0],[116,"ext","codeunit",28,"Activate",1],[117,"ext","codeunit",28,"PushContext",4],[118,"ext","codeunit",442,"SetDocumentType",1],[121,"event","OnPostPrepmtDocumentOnBeforeRunSalesPostPrepayments",0],[122,"ext","codeunit",442,"SetSuppressCommit",1],[123,"run","codeunit",442],[124,"ext","codeunit",29,"ShowErrors",0]]},{"name":"Preview","line":132,"kind":"procedure","params":2,"steps":[[138,"ext","codeunit",443,"SetDocumentType",1],[139,"ext","codeunit",19,"Preview",2]]},{"name":"GetReport","line":147,"kind":"procedure","params":2,"steps":[[152,"event","OnBeforeGetReport",1],[161,"ext","table",112,"PrintRecords",1],[167,"ext","table",114,"PrintRecords",1]]},{"name":"OnRunPreview","line":201,"kind":"procedure","access":"local","params":3,"steps":[[210,"ext","codeunit",442,"SetDocumentType",1],[214,"ext","codeunit",442,"SetPreviewMode",1],[215,"run","codeunit",442]]}]}