{"title":"Codeunit 5942 ServContractQuote-Tmpl. Upd., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5942-servcontractquote-tmpl-upd/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":5942,"name":"ServContractQuote-Tmpl. Upd.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5942-servcontractquote-tmpl-upd/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5942-servcontractquote-tmpl-upd/source/","path":"src/Layers/W1/BaseApp/Service/Contract/ServContractQuoteTmplUpd.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":{"page:6056":{"name":"Service Contract Template List","url":"https://jonas-paprotka.de/ref/page/6056-service-contract-template-list/"},"table:5965":{"name":"Service Contract Header","url":"https://jonas-paprotka.de/ref/table/5965-service-contract-header/"},"table:5972":{"name":"Contract/Service Discount","url":"https://jonas-paprotka.de/ref/table/5972-contract-service-discount/"}},"procs":[{"name":"OnRun","line":11,"kind":"trigger","steps":[[14,"event","OnRunOnAfterResetServiceContractTemplate",0],[18,"call","CheckContractNo",1],[20,"call","PickAndApplyTemplate",1]]},{"name":"CheckContractNo","line":26,"kind":"procedure","access":"local","params":1,"steps":[[31,"event","OnBeforeCheckContractNo",1]]},{"name":"PickAndApplyTemplate","line":38,"kind":"procedure","access":"local","params":1,"steps":[[43,"event","OnBeforePickAndApplyTemplate",1],[47,"run","page",6056],[48,"call","ApplyTemplate",2]]},{"name":"ApplyTemplate","line":51,"kind":"procedure","params":2,"steps":[[56,"event","OnBeforeApplyTemplate",0],[58,"validate",5965,"Contract Group Code"],[59,"validate",5965,"Service Order Type"],[60,"validate",5965,"Service Period"],[61,"validate",5965,"Price Update Period"],[62,"validate",5965,"Response Time (Hours)"],[63,"validate",5965,"Max. Labor Unit Price"],[64,"validate",5965,"Invoice after Service"],[65,"validate",5965,"Invoice Period"],[66,"validate",5965,"Price Inv. Increase Code"],[67,"validate",5965,"Allow Unbalanced Amounts"],[68,"validate",5965,"Contract Lines on Invoice"],[69,"validate",5965,"Combine Invoices"],[70,"validate",5965,"Automatic Credit Memos"],[71,"validate",5965,"Prepaid"],[72,"validate",5965,"Serv. Contract Acc. Gr. Code"],[75,"event","OnApplyTemplateOnBeforeCreateDimFromDefaultDim",0],[76,"ext","table",5965,"CreateDimFromDefaultDim",1],[81,"write",5972,"DeleteAll"],[91,"write",5972,"Insert"],[93,"event","OnAfterApplyTemplate",0]]}]}