{"title":"Table 8062 Cust. Sub. Contract Line, extension points 29","url":"https://jonas-paprotka.de/ref/table/8062-cust-sub-contract-line/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":"table","id":8062,"name":"Cust. Sub. Contract Line","app":"Subscription Billing","url":"https://jonas-paprotka.de/ref/table/8062-cust-sub-contract-line/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/8062-cust-sub-contract-line/source/","path":"src/Apps/W1/Subscription Billing/App/Customer Contracts/Tables/CustSubContractLine.Table.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:8057":{"name":"Subscription Header","url":"https://jonas-paprotka.de/ref/table/8057-subscription-header/"},"table:8059":{"name":"Subscription Line","url":"https://jonas-paprotka.de/ref/table/8059-subscription-line/"},"codeunit:8059":{"name":"Sub. Contracts General Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/8059-sub-contracts-general-mgt/"},"table:8064":{"name":"Billing Line Archive","url":"https://jonas-paprotka.de/ref/table/8064-billing-line-archive/"},"codeunit:8021":{"name":"Text Management","url":"https://jonas-paprotka.de/ref/codeunit/8021-text-management/"},"table:8062":{"name":"Cust. Sub. Contract Line","url":"https://jonas-paprotka.de/ref/table/8062-cust-sub-contract-line/"},"table:8052":{"name":"Customer Subscription Contract","url":"https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/"},"codeunit:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"}},"procs":[{"name":"Contract Line Type.OnValidate","line":31,"kind":"trigger","steps":[[35,"call","CheckAndDisconnectContractLine",0]]},{"name":"No..OnValidate","line":48,"kind":"trigger","steps":[[72,"call","CheckAndDisconnectContractLine",0],[78,"call","CreateServiceObjectWithServiceCommitment",0]]},{"name":"Subscription Description.OnValidate","line":97,"kind":"trigger","steps":[[99,"call","UpdateServiceObjectDescription",0]]},{"name":"Subscription Line Description.OnValidate","line":106,"kind":"trigger","steps":[[108,"call","UpdateServiceCommitmentDescription",0]]},{"name":"OnDelete","line":143,"kind":"trigger","steps":[[145,"call","ErrorIfUnreleasedCustSubContractDeferralExists",0],[146,"call","AskIfClosedContractLineCanBeDeleted",0],[147,"call","UpdateServiceCommitmentDimensions",0],[148,"call","RecalculateHarmonizedBillingFieldsOnCustomerContract",1],[149,"call","ErrorIfUsageDataBillingIsLinkedToContractLine",0],[150,"call","CheckAndDisconnectContractLine",0]]},{"name":"OnModify","line":153,"kind":"trigger","steps":[[156,"call","ErrorIfUnreleasedCustSubContractDeferralExists",0]]},{"name":"CreateServiceObjectWithServiceCommitment","line":180,"kind":"procedure","access":"local","params":0,"steps":[[189,"ext","table",8057,"InitForSourceNo",2],[190,"ext","table",8057,"UpdateCustomerDataFromCustomerContract",1],[192,"write",8057,"Insert",1],[196,"ext","table",8059,"InitForServiceObject",2],[197,"ext","table",8059,"UpdateFromCustomerContract",1],[201,"write",8059,"Insert"]]},{"name":"CheckAndDisconnectContractLine","line":217,"kind":"procedure","access":"local","params":0,"steps":[[222,"ext","codeunit",8059,"BillingLineExists",3],[225,"ext","table",8064,"FilterBillingLineArchiveOnContractLine",3],[228,"ext","table",8064,"PostedDocumentExist",0],[229,"write",8064,"Delete"],[231,"ext","table",8059,"DisconnectContractLine",1],[233,"ext","table",8059,"DeleteOrDisconnectServiceCommitment",1],[235,"event","OnAfterCheckAndDisconnectContractLine",0]]},{"name":"OpenServiceObjectCard","line":238,"kind":"procedure","access":"internal","params":0,"steps":[[242,"ext","table",8057,"OpenServiceObjectCard",1]]},{"name":"UpdateServiceObjectDescription","line":255,"kind":"procedure","access":"local","params":0,"steps":[[264,"validate",8057,"Description"],[265,"write",8057,"Modify",1],[268,"event","OnAfterUpdateSubscriptionDescription",0]]},{"name":"UpdateServiceCommitmentDescription","line":271,"kind":"procedure","access":"local","params":0,"steps":[[280,"validate",8059,"Description"],[281,"write",8059,"Modify",1],[284,"event","OnAfterUpdateSubscriptionLineDescription",0]]},{"name":"LoadServiceCommitmentForContractLine","line":287,"kind":"procedure","params":1,"steps":[[298,"call","GetServiceCommitment",1],[303,"call","GetServiceCommitment",1],[306,"event","OnAfterLoadAmountsForContractLine",0]]},{"name":"UpdateServiceCommitmentDimensions","line":322,"kind":"procedure","access":"local","params":0,"steps":[[333,"ext","table",8059,"SetDefaultDimensions",1],[334,"write",8059,"Modify"],[336,"call","DeleteRelatedVendorServiceCommDimensions",1]]},{"name":"DeleteRelatedVendorServiceCommDimensions","line":339,"kind":"procedure","access":"local","params":1,"steps":[[346,"ext","table",8059,"FilterOnServiceObjectAndPackage",4],[349,"ext","table",8059,"SetDefaultDimensions",1],[351,"ext","table",8059,"ApplyContractDimensions",3],[352,"write",8059,"Modify"]]},{"name":"AskIfClosedContractLineCanBeDeleted","line":356,"kind":"procedure","access":"local","params":0,"steps":[[360,"call","GetConfirmResponse",2],[361,"ext","codeunit",8021,"GetProcessingAbortedErr",0]]},{"name":"CheckSelectedContractLines","line":372,"kind":"procedure","access":"local","params":1,"steps":[[374,"call","ErrorIfTextLineIsSelected",1],[375,"call","ErrorIfOneCustomerContractLineIsSelected",1],[376,"call","TestAndCompareSelectedCustomerContractLines",1],[377,"event","OnAfterCheckSelectedContractLinesOnMergeContractLines",0]]},{"name":"TestAndCompareSelectedCustomerContractLines","line":386,"kind":"procedure","access":"local","params":1,"steps":[[401,"ext","table",8062,"GetServiceCommitment",1],[412,"ext","codeunit",8059,"BillingLineExists",3],[420,"ext","codeunit",8059,"TestMergingServiceObjects",2],[421,"ext","codeunit",8059,"TestMergingServiceCommitments",2]]},{"name":"RecalculateHarmonizedBillingFieldsOnCustomerContract","line":432,"kind":"procedure","access":"local","params":1,"steps":[[437,"ext","table",8052,"RecalculateHarmonizedBillingFieldsBasedOnNextBillingDate",1]]},{"name":"FindFirstSubscriptionLine","line":446,"kind":"procedure","access":"internal","params":1,"steps":[[448,"call","FilterOnServiceCommitment",1]]},{"name":"MergeContractLines","line":457,"kind":"procedure","params":1,"steps":[[462,"call","CheckSelectedContractLines",1],[466,"call","MergeCustomerContractLine",2]]},{"name":"InitFromServiceCommitment","line":471,"kind":"procedure","access":"internal","params":2,"steps":[[477,"call","GetNextLineNo",1],[479,"ext","table",8057,"GetContractLineTypeFromServiceObject",0],[485,"event","OnAfterInitFromSubscriptionLine",0]]},{"name":"MergeCustomerContractLine","line":488,"kind":"procedure","access":"local","params":2,"steps":[[493,"call","CreateDuplicateServiceObject",3],[494,"call","CreateMergedServiceCommitment",3],[495,"call","CloseCustomerContractLines",1],[496,"call","AssignNewServiceCommitmentToCustomerContract",2]]},{"name":"CreateDuplicateServiceObject","line":512,"kind":"procedure","access":"local","params":3,"steps":[[516,"call","GetNewServiceObjectQuantity",1],[517,"write",8057,"Insert",1]]},{"name":"CreateMergedServiceCommitment","line":520,"kind":"procedure","access":"local","params":3,"steps":[[522,"ext","table",8062,"GetServiceCommitment",1],[525,"validate",8059,"Amount"],[526,"validate",8059,"Subscription Line Start Date"],[527,"write",8059,"Insert",1]]},{"name":"AssignNewServiceCommitmentToCustomerContract","line":530,"kind":"procedure","access":"local","params":2,"steps":[[537,"ext","table",8052,"CreateCustomerContractLineFromServiceCommitment",2]]},{"name":"CloseCustomerContractLines","line":541,"kind":"procedure","access":"local","params":1,"steps":[[548,"ext","table",8062,"GetServiceCommitment",1],[549,"call","UpdateServiceCommitmentAndCloseCustomerContractLine",2],[552,"ext","table",8057,"UpdateServicesDates",0],[553,"write",8057,"Modify"]]},{"name":"UpdateServiceCommitmentAndCloseCustomerContractLine","line":558,"kind":"procedure","access":"local","params":2,"steps":[[562,"validate",8059,"Subscription Line End Date"],[564,"write",8059,"Modify"],[567,"write",8062,"Modify"]]},{"name":"GetConfirmResponse","line":570,"kind":"procedure","params":2,"steps":[[574,"ext","codeunit",27,"GetResponse",2]]}]}