{"title":"Report 5850 Copy Invt. Document, extension points 29","url":"https://jonas-paprotka.de/ref/report/5850-copy-invt-document/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":"report","id":5850,"name":"Copy Invt. Document","app":"Base Application","url":"https://jonas-paprotka.de/ref/report/5850-copy-invt-document/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/5850-copy-invt-document/source/","path":"src/Layers/W1/BaseApp/Inventory/Document/CopyInvtDocument.Report.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:5857":{"name":"Copy Invt. Document Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/5857-copy-invt-document-mgt/"},"page:6563":{"name":"Invt. Receipts","url":"https://jonas-paprotka.de/ref/page/6563-invt-receipts/"},"page:6566":{"name":"Invt. Shipments","url":"https://jonas-paprotka.de/ref/page/6566-invt-shipments/"}},"procs":[{"name":"DocType2.OnValidate","line":35,"kind":"trigger","steps":[[38,"call","ValidateDocNo",0]]},{"name":"DocNo2.OnLookup","line":47,"kind":"trigger","steps":[[49,"call","LookupDocNo",0]]},{"name":"DocNo2.OnValidate","line":52,"kind":"trigger","steps":[[54,"call","ValidateDocNo",0]]},{"name":"IncludeHeader2.OnValidate","line":63,"kind":"trigger","steps":[[65,"call","ValidateIncludeHeader",0]]},{"name":"AutoFillAppliesFields2.OnValidate","line":100,"kind":"trigger","steps":[[102,"call","ValidateAutoFillApplies",0]]},{"name":"OnOpenPage","line":113,"kind":"trigger","steps":[[133,"call","ValidateDocNo",0],[135,"call","ValidateAutoFillApplies",0]]},{"name":"OnPreReport","line":143,"kind":"trigger","steps":[[146,"call","CheckInputParameters",0],[148,"ext","codeunit",5857,"SetProperties",5],[149,"ext","codeunit",5857,"CopyAsCorrection",1],[150,"ext","codeunit",5857,"SetCopyItemTracking",1],[151,"ext","codeunit",5857,"CopyItemDoc",3],[152,"event","OnAfterOnPreReport",0]]},{"name":"ValidateDocNo","line":176,"kind":"procedure","access":"local","params":0,"steps":[[202,"call","ValidateIncludeHeader",0]]},{"name":"LookupDocNo","line":205,"kind":"procedure","access":"local","params":0,"steps":[[212,"call","ConvertInvtDocumentTypeFrom",1],[216,"call","ConvertInvtDocumentTypeFrom",1],[220,"run","page",6563],[223,"run","page",6566],[241,"event","OnLookupDocNoOnBeforeValidateDocNo",0],[242,"call","ValidateDocNo",0]]},{"name":"ConvertInvtDocumentTypeFrom","line":261,"kind":"procedure","access":"local","params":1,"steps":[[272,"event","OnConvertInvtDocumentTypeFromOnCaseElse",1]]}]}