{"title":"Codeunit 1325 Cancel PstdPurchInv (Yes/No), extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1325-cancel-pstdpurchinv-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":1325,"name":"Cancel PstdPurchInv (Yes/No)","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1325-cancel-pstdpurchinv-yes-no/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1325-cancel-pstdpurchinv-yes-no/source/","path":"src/Layers/W1/BaseApp/Purchases/History/CancelPstdPurchInvYesNo.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:1313":{"name":"Correct Posted Purch. Invoice","url":"https://jonas-paprotka.de/ref/codeunit/1313-correct-posted-purch-invoice/"},"table:1900":{"name":"Cancelled Document","url":"https://jonas-paprotka.de/ref/table/1900-cancelled-document/"},"page:140":{"name":"Posted Purchase Credit Memo","url":"https://jonas-paprotka.de/ref/page/140-posted-purchase-credit-memo/"}},"procs":[{"name":"OnRun","line":15,"kind":"trigger","steps":[[17,"call","CancelInvoice",1]]},{"name":"CancelInvoice","line":25,"kind":"procedure","params":1,"steps":[[33,"event","OnCancelInvoiceOnBeforeTestCorrectInvoiceIsAllowed",1],[35,"ext","codeunit",1313,"TestCorrectInvoiceIsAllowed",2],[36,"call","GetCancelPostedInvoiceQst",1],[37,"ext","codeunit",1313,"CancelPostedInvoice",1],[39,"ext","table",1900,"FindPurchCancelledInvoice",1],[42,"event","OnBeforeShowPostedPurchaseCreditMemo",1],[44,"run","page",140]]}]}