{"title":"Codeunit 416 Release Service Document, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/416-release-service-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":"codeunit","id":416,"name":"Release Service Document","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/416-release-service-document/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/416-release-service-document/source/","path":"src/Layers/W1/BaseApp/Service/Document/ReleaseServiceDocument.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:5900":{"name":"Service Header","url":"https://jonas-paprotka.de/ref/table/5900-service-header/"},"table:5902":{"name":"Service Line","url":"https://jonas-paprotka.de/ref/table/5902-service-line/"},"codeunit:5770":{"name":"Whse.-Service Release","url":"https://jonas-paprotka.de/ref/codeunit/5770-whse-service-release/"},"codeunit:416":{"name":"Release Service Document","url":"https://jonas-paprotka.de/ref/codeunit/416-release-service-document/"},"codeunit:5900":{"name":"ServOrderManagement","url":"https://jonas-paprotka.de/ref/codeunit/5900-servordermanagement/"}},"procs":[{"name":"OnRun","line":17,"kind":"trigger","steps":[[20,"ext","table",5900,"SetHideValidationDialog",1],[21,"call","Code",0]]},{"name":"Code","line":34,"kind":"procedure","access":"local","params":0,"steps":[[44,"event","OnBeforeReleaseServiceDoc",0],[49,"call","CheckServiceItemBlockedForAllAndItemServiceBlocked",1],[52,"event","OnBeforeNothingToReleaseErr",1],[63,"event","OnCodeOnBeforeCheckLocationCode",1],[72,"call","VerifyLocationCode",1],[73,"ext","table",5902,"IsInventoriableItem",0],[79,"event","OnCodeOnAfterCheck",0],[82,"validate",5900,"Release Status"],[83,"ext","table",5902,"SetServHeader",1],[84,"ext","table",5902,"CalcVATAmountLines",5],[84,"ext","table",5902,"IsShipment",0],[85,"ext","table",5902,"CalcVATAmountLines",5],[85,"ext","table",5902,"IsShipment",0],[86,"ext","table",5902,"UpdateVATOnLines",4],[87,"ext","table",5902,"UpdateVATOnLines",4],[88,"write",5900,"Modify",1],[92,"ext","codeunit",5770,"Release",1],[94,"event","OnAfterReleaseServiceDoc",0]]},{"name":"Reopen","line":97,"kind":"procedure","params":1,"steps":[[102,"event","OnBeforeReopenServiceDoc",0],[103,"validate",5900,"Release Status"],[104,"write",5900,"Modify",1],[107,"ext","codeunit",5770,"Reopen",1],[108,"event","OnAfterReopenServiceDoc",0]]},{"name":"PerformManualRelease","line":111,"kind":"procedure","params":1,"steps":[[113,"event","OnBeforePerformManualRelease",0],[115,"run","codeunit",416],[117,"event","OnAfterPerformManualRelease",0]]},{"name":"PerformManualReopen","line":120,"kind":"procedure","params":1,"steps":[[122,"event","OnBeforePerformManualReopen",0],[123,"call","Reopen",1]]},{"name":"CheckServiceItemBlockedForAllAndItemServiceBlocked","line":143,"kind":"procedure","access":"local","params":1,"steps":[[152,"ext","codeunit",5900,"CheckServiceItemBlockedForAll",1],[153,"ext","codeunit",5900,"CheckItemServiceBlocked",1]]}]}