{"title":"Codeunit 6138 E-Document Update Order, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/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":6138,"name":"E-Document Update Order","app":"E-Document Core","url":"https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6138-e-document-update-order/source/","path":"src/Apps/W1/EDocument/App/src/Processing/EDocumentUpdateOrder.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:6109":{"name":"E-Document Import Helper","url":"https://jonas-paprotka.de/ref/codeunit/6109-e-document-import-helper/"},"table:38":{"name":"Purchase Header","url":"https://jonas-paprotka.de/ref/table/38-purchase-header/"}},"procs":[{"name":"OnRun","line":12,"kind":"trigger","steps":[[14,"call","UpdateOrder",3]]},{"name":"UpdateOrder","line":30,"kind":"procedure","access":"local","params":3,"steps":[[36,"ext","codeunit",6109,"ProcessFieldNoValidate",3],[41,"call","SetHeaderConfirmGeneratorFields",2],[46,"ext","codeunit",6109,"ProcessFieldNoValidate",3],[54,"event","OnBeforeProcessHeaderFieldsAssignment",0],[58,"ext","codeunit",6109,"ProcessFieldNoValidate",3],[61,"event","OnBeforeProcessHeaderFieldsValidation",0],[65,"ext","codeunit",6109,"ProcessField",4],[68,"event","OnCreateNewPurchHdrOnBeforeRecRefModify",0]]},{"name":"SetHeaderConfirmGeneratorFields","line":72,"kind":"procedure","access":"local","params":2,"steps":[[78,"ext","table",38,"SetHideValidationDialog",1],[82,"validate",38,"Pay-to Vendor No."],[86,"validate",38,"Buy-from Contact No."],[90,"validate",38,"Pay-to Contact No."],[94,"validate",38,"VAT Base Discount %"],[96,"write",38,"Modify",1]]}]}