{"title":"Codeunit 6461 Serv. Document Print, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6461-serv-document-print/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":6461,"name":"Serv. Document Print","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/6461-serv-document-print/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6461-serv-document-print/source/","path":"src/Layers/W1/BaseApp/Service/Document/ServDocumentPrint.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":{"table:77":{"name":"Report Selections","url":"https://jonas-paprotka.de/ref/table/77-report-selections/"},"codeunit:5950":{"name":"Service-Calc. Discount","url":"https://jonas-paprotka.de/ref/codeunit/5950-service-calc-discount/"}},"procs":[{"name":"PrintServiceHeader","line":34,"kind":"procedure","params":1,"steps":[[40,"call","GetServHeaderDocTypeUsage",1],[43,"call","CalcServDisc",1],[44,"event","OnBeforePrintServiceHeader",0],[53,"ext","table",77,"PrintForCust",3]]},{"name":"PrintServiceItemWorksheet","line":56,"kind":"procedure","params":1,"steps":[[64,"event","OnBeforePrintServiceItemWorksheet",0],[73,"ext","table",77,"PrintForCust",3]]},{"name":"PrintServiceContract","line":76,"kind":"procedure","params":1,"steps":[[82,"call","GetServContractTypeUsage",1],[85,"event","OnBeforePrintServiceContract",0],[94,"ext","table",77,"PrintForCust",3]]},{"name":"CalcServDisc","line":97,"kind":"procedure","params":1,"steps":[[104,"event","OnBeforeCalcServDisc",1],[114,"run","codeunit",5950]]},{"name":"GetServContractTypeUsage","line":120,"kind":"procedure","params":1,"steps":[[133,"event","OnGetServContractTypeUsageElseCase",1]]},{"name":"GetServHeaderDocTypeUsage","line":141,"kind":"procedure","params":1,"steps":[[158,"event","OnGetServHeaderDocTypeUsageElseCase",1]]},{"name":"PrintServiceHeaderToDocumentAttachment","line":166,"kind":"procedure","params":1,"steps":[[173,"call","DoPrintServiceHeaderToDocumentAttachment",2]]},{"name":"DoPrintServiceHeaderToDocumentAttachment","line":177,"kind":"procedure","access":"local","params":2,"steps":[[182,"call","GetServHeaderDocTypeUsage",1],[185,"call","CalcServDisc",1],[187,"ext","table",77,"SaveAsDocumentAttachment",5]]},{"name":"PrintServiceContractToDocumentAttachment","line":190,"kind":"procedure","params":1,"steps":[[197,"call","DoPrintServiceContractToDocumentAttachment",2]]},{"name":"DoPrintServiceContractToDocumentAttachment","line":201,"kind":"procedure","access":"local","params":2,"steps":[[206,"call","GetServContractTypeUsage",1],[210,"ext","table",77,"SaveAsDocumentAttachment",5]]},{"name":"InitReportSelection","line":244,"kind":"procedure","access":"local","params":1,"steps":[[248,"call","InsertRepSelection",3],[250,"call","InsertRepSelection",3],[252,"call","InsertRepSelection",3],[254,"call","InsertRepSelection",3],[256,"call","InsertRepSelection",3],[258,"call","InsertRepSelection",3],[260,"call","InsertRepSelection",3],[262,"call","InsertRepSelection",3],[264,"call","InsertRepSelection",3]]},{"name":"InsertRepSelection","line":268,"kind":"procedure","access":"local","params":3,"steps":[[277,"write",77,"Insert"]]}]}