{"title":"Report 9091 Combine Service Shipments, extension points 29","url":"https://jonas-paprotka.de/ref/report/9091-combine-service-shipments/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":9091,"name":"Combine Service Shipments","app":"Base Application","url":"https://jonas-paprotka.de/ref/report/9091-combine-service-shipments/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/9091-combine-service-shipments/source/","path":"src/Layers/W1/BaseApp/Service/Document/CombineServiceShipments.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":{"table:5991":{"name":"Service Shipment Line","url":"https://jonas-paprotka.de/ref/table/5991-service-shipment-line/"},"codeunit:43":{"name":"Language","url":"https://jonas-paprotka.de/ref/codeunit/43-language/"},"table:98":{"name":"General Ledger Setup","url":"https://jonas-paprotka.de/ref/table/98-general-ledger-setup/"},"codeunit:799":{"name":"VAT Reporting Date Mgt","url":"https://jonas-paprotka.de/ref/codeunit/799-vat-reporting-date-mgt/"},"table:5900":{"name":"Service Header","url":"https://jonas-paprotka.de/ref/table/5900-service-header/"},"codeunit:5950":{"name":"Service-Calc. Discount","url":"https://jonas-paprotka.de/ref/codeunit/5950-service-calc-discount/"},"codeunit:5980":{"name":"Service-Post","url":"https://jonas-paprotka.de/ref/codeunit/5980-service-post/"}},"procs":[{"name":"Service Shipment Line.OnAfterGetRecord","line":41,"kind":"trigger","steps":[[47,"event","OnBeforeServiceShipmentLineOnAfterGetRecord",1],[66,"event","OnBeforeCustIsBlockedOnAfterGetRecord",0],[68,"call","ShouldFinalizeServiceInvHeader",3],[70,"call","FinalizeServiceInvHeader",0],[71,"call","InsertServiceInvHeader",0],[78,"event","OnServiceShipmentLineBeforeInsertInvLineFromShptLine",1],[82,"event","OnServiceShipmentLineOnAfterGetRecordOnBeforeInsertInvLineFromShptLine",0],[83,"ext","table",5991,"InsertInvLineFromShptLine",1]]},{"name":"Service Shipment Line.OnAfterGetRecord","line":125,"kind":"trigger","steps":[[130,"event","OnAfterGetRecordServiceOrderHeader",1],[134,"ext","codeunit",43,"GetLanguageIdOrDefault",1],[135,"ext","codeunit",43,"GetFormatRegionOrDefault",1]]},{"name":"Service Shipment Line.OnPostDataItem","line":143,"kind":"trigger","steps":[[150,"call","ShowResult",0]]},{"name":"Service Shipment Line.OnPreDataItem","line":153,"kind":"trigger","steps":[[169,"event","OnServiceOrderHeaderOnPreDataItem",0]]},{"name":"PostingDate.OnValidate","line":193,"kind":"trigger","steps":[[195,"call","UpdateVATDate",0]]},{"name":"DocDateReq.OnValidate","line":204,"kind":"trigger","steps":[[206,"call","UpdateVATDate",0]]},{"name":"OnOpenPage","line":251,"kind":"trigger","steps":[[257,"event","OnBeforeOnOpenPage",1],[266,"ext","table",98,"GetVATDate",2],[269,"ext","codeunit",799,"IsVATDateEnabled",0]]},{"name":"OnPostReport","line":277,"kind":"trigger","steps":[[279,"event","OnBeforePostReport",0]]},{"name":"OnPreReport","line":282,"kind":"trigger","steps":[[284,"event","OnBeforePreReport",0]]},{"name":"FinalizeServiceInvHeader","line":330,"kind":"procedure","access":"local","params":0,"steps":[[336,"event","OnBeforeFinalizeServiceInvHeader",0],[341,"event","OnFinalizeServiceInvHeaderOnBeforeDelete",0],[342,"write",5900,"Delete",1],[343,"event","OnFinalizeServiceInvHeaderOnAfterDelete",0],[346,"event","OnFinalizeServiceInvHeader",0],[348,"run","codeunit",5950],[355,"event","OnFinalizeServiceInvHeaderOnAfterCalcShouldPostInv",0],[358,"run","codeunit",5980]]},{"name":"InsertServiceInvHeader","line":363,"kind":"procedure","access":"local","params":0,"steps":[[368,"event","OnBeforeInsertServiceInvHeader",1],[375,"event","OnBeforeServiceInvHeaderInsert",0],[376,"write",5900,"Insert",1],[377,"call","ValidateCustomerNo",2],[378,"validate",5900,"Posting Date"],[379,"validate",5900,"Document Date"],[380,"validate",5900,"VAT Reporting Date"],[381,"validate",5900,"Currency Code"],[382,"validate",5900,"EU 3-Party Trade"],[384,"validate",5900,"Journal Templ. Name"],[389,"event","OnBeforeServiceInvHeaderModify",0],[390,"write",5900,"Modify"],[394,"event","OnAfterInsertServiceInvHeader",0]]},{"name":"InitializeRequest","line":397,"kind":"procedure","params":6,"steps":[[401,"ext","table",98,"GetVATDate",2]]},{"name":"ValidateCustomerNo","line":414,"kind":"procedure","access":"local","params":2,"steps":[[419,"event","OnBeforeValidateCustomerNo",1],[423,"validate",5900,"Customer No."],[424,"validate",5900,"Bill-to Customer No."]]},{"name":"ShowResult","line":432,"kind":"procedure","access":"local","params":0,"steps":[[434,"event","OnBeforeShowResult",0],[437,"call","FinalizeServiceInvHeader",0],[438,"event","OnServiceShipmentHeaderOnAfterFinalizeServiceInvHeader",0]]},{"name":"ShouldFinalizeServiceInvHeader","line":455,"kind":"procedure","access":"local","params":3,"steps":[[465,"event","OnAfterShouldFinalizeServiceInvHeader",0]]},{"name":"UpdateVATDate","line":469,"kind":"procedure","access":"local","params":0,"steps":[[471,"ext","table",98,"GetVATDate",2]]}]}