{"title":"Codeunit 8008 Create Cust. Sub. Contract, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/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":8008,"name":"Create Cust. Sub. Contract","app":"Subscription Billing","url":"https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/","path":"src/Apps/W1/Subscription Billing/App/Import/Codeunits/CreateCustSubContract.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":{"codeunit:310":{"name":"No. Series","url":"https://jonas-paprotka.de/ref/codeunit/310-no-series/"},"table:8052":{"name":"Customer Subscription Contract","url":"https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/"}},"procs":[{"name":"OnRun","line":9,"kind":"trigger","steps":[[12,"call","TestImportedCustomerContract",0],[13,"call","CreateCustomerContract",0]]},{"name":"TestImportedCustomerContract","line":18,"kind":"procedure","access":"local","params":0,"steps":[[24,"call","TestIfCustomerContractSeriesNoCanUseManualNos",0],[25,"event","OnAfterTestImportedCustomerContract",0]]},{"name":"TestIfCustomerContractSeriesNoCanUseManualNos","line":28,"kind":"procedure","access":"local","params":0,"steps":[[34,"ext","codeunit",310,"TestManual",1]]},{"name":"CreateCustomerContract","line":37,"kind":"procedure","access":"local","params":0,"steps":[[43,"write",8052,"Insert",1],[44,"ext","table",8052,"SetHideValidationDialog",1],[45,"event","OnAfterCustomerContractInsert",0],[49,"validate",8052,"Sell-to Customer No."],[51,"validate",8052,"Sell-to Contact No."],[53,"validate",8052,"Bill-to Customer No."],[55,"validate",8052,"Bill-to Contact No."],[57,"validate",8052,"Currency Code"],[59,"validate",8052,"Ship-to Code"],[61,"validate",8052,"Contract Type"],[63,"ext","table",8052,"SetDescription",1],[65,"validate",8052,"Your Reference"],[67,"validate",8052,"Salesperson Code"],[69,"validate",8052,"Assigned User ID"],[74,"validate",8052,"Payment Terms Code"],[76,"validate",8052,"Payment Method Code"],[79,"validate",8052,"Dimension from Job No."],[81,"validate",8052,"Shortcut Dimension 1 Code"],[83,"validate",8052,"Shortcut Dimension 2 Code"],[85,"write",8052,"Modify",1],[86,"event","OnAfterCustomerContractModify",0]]}]}