{"title":"Table 8065 Vend. Sub. Contract Line, extension points 29","url":"https://jonas-paprotka.de/ref/table/8065-vend-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":8065,"name":"Vend. Sub. Contract Line","app":"Subscription Billing","url":"https://jonas-paprotka.de/ref/table/8065-vend-sub-contract-line/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/8065-vend-sub-contract-line/source/","path":"src/Apps/W1/Subscription Billing/App/Vendor Contracts/Tables/VendSubContractLine.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:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"},"codeunit:8021":{"name":"Text Management","url":"https://jonas-paprotka.de/ref/codeunit/8021-text-management/"},"table:8065":{"name":"Vend. Sub. Contract Line","url":"https://jonas-paprotka.de/ref/table/8065-vend-sub-contract-line/"},"table:8063":{"name":"Vendor Subscription Contract","url":"https://jonas-paprotka.de/ref/table/8063-vendor-subscription-contract/"}},"procs":[{"name":"Contract Line Type.OnValidate","line":28,"kind":"trigger","steps":[[32,"call","CheckAndDisconnectContractLine",0]]},{"name":"No..OnValidate","line":45,"kind":"trigger","steps":[[69,"call","CheckAndDisconnectContractLine",0],[75,"call","CreateServiceObjectWithServiceCommitment",0]]},{"name":"Subscription Description.OnValidate","line":94,"kind":"trigger","steps":[[96,"call","UpdateServiceObjectDescription",0]]},{"name":"Subscription Line Description.OnValidate","line":103,"kind":"trigger","steps":[[105,"call","UpdateServiceCommitmentDescription",0]]},{"name":"OnDelete","line":138,"kind":"trigger","steps":[[140,"call","ErrorIfUnreleasedVendSubContractDeferralExists",0],[141,"call","AskIfClosedContractLineCanBeDeleted",0],[142,"call","UpdateServiceCommitmentDimensions",0],[143,"call","ErrorIfUsageDataBillingIsLinkedToContractLine",0],[144,"call","CheckAndDisconnectContractLine",0]]},{"name":"OnModify","line":147,"kind":"trigger","steps":[[150,"call","ErrorIfUnreleasedVendSubContractDeferralExists",0]]},{"name":"CreateServiceObjectWithServiceCommitment","line":170,"kind":"procedure","access":"local","params":0,"steps":[[179,"ext","table",8057,"InitForSourceNo",2],[181,"write",8057,"Insert",1],[185,"ext","table",8059,"InitForServiceObject",2],[186,"ext","table",8059,"UpdateFromVendorContract",1],[190,"write",8059,"Insert"]]},{"name":"OpenServiceObjectCard","line":206,"kind":"procedure","access":"internal","params":0,"steps":[[210,"ext","table",8057,"OpenServiceObjectCard",1]]},{"name":"CheckAndDisconnectContractLine","line":213,"kind":"procedure","access":"local","params":0,"steps":[[218,"ext","codeunit",8059,"BillingLineExists",3],[221,"ext","table",8064,"FilterBillingLineArchiveOnContractLine",3],[224,"ext","table",8064,"PostedPurchaseDocumentExist",0],[225,"write",8064,"Delete"],[227,"ext","table",8059,"DisconnectContractLine",1],[229,"ext","table",8059,"DeleteOrDisconnectServiceCommitment",1]]},{"name":"UpdateServiceObjectDescription","line":242,"kind":"procedure","access":"local","params":0,"steps":[[251,"validate",8057,"Description"],[252,"write",8057,"Modify",1]]},{"name":"UpdateServiceCommitmentDescription","line":257,"kind":"procedure","access":"local","params":0,"steps":[[266,"validate",8059,"Description"],[267,"write",8059,"Modify",1]]},{"name":"LoadServiceCommitmentForContractLine","line":272,"kind":"procedure","access":"internal","params":1,"steps":[[283,"call","GetServiceCommitment",1],[288,"call","GetServiceCommitment",1]]},{"name":"UpdateServiceCommitmentDimensions","line":306,"kind":"procedure","access":"internal","params":0,"steps":[[318,"ext","table",8059,"SetDefaultDimensions",1],[319,"ext","table",8059,"FilterOnServiceObjectAndPackage",4],[323,"ext","table",8059,"ApplyContractDimensions",3],[325,"write",8059,"Modify"]]},{"name":"AskIfClosedContractLineCanBeDeleted","line":328,"kind":"procedure","access":"local","params":0,"steps":[[334,"ext","codeunit",27,"GetResponse",2],[335,"ext","codeunit",8021,"GetProcessingAbortedErr",0]]},{"name":"FindFirstSubscriptionLine","line":349,"kind":"procedure","access":"internal","params":1,"steps":[[351,"call","FilterOnServiceCommitment",1]]},{"name":"MergeContractLines","line":355,"kind":"procedure","access":"internal","params":1,"steps":[[360,"call","CheckSelectedContractLines",1],[364,"call","MergeVendorContractLine",2]]},{"name":"CheckSelectedContractLines","line":369,"kind":"procedure","access":"local","params":1,"steps":[[371,"call","ErrorIfTextLineIsSelected",1],[372,"call","ErrorIfOneVendorContractLineIsSelected",1],[373,"call","TestAndCompareSelectedVendorContractLines",1]]},{"name":"TestAndCompareSelectedVendorContractLines","line":390,"kind":"procedure","access":"local","params":1,"steps":[[405,"ext","table",8065,"GetServiceCommitment",1],[411,"ext","codeunit",8059,"BillingLineExists",3],[419,"ext","codeunit",8059,"TestMergingServiceObjects",2],[420,"ext","codeunit",8059,"TestMergingServiceCommitments",2]]},{"name":"MergeVendorContractLine","line":431,"kind":"procedure","access":"local","params":2,"steps":[[436,"call","CreateDuplicateServiceObject",3],[437,"call","CreateMergedServiceCommitment",3],[438,"call","CloseVendorContractLines",1],[439,"call","AssignNewServiceCommitmentToVendorContract",2]]},{"name":"CreateDuplicateServiceObject","line":444,"kind":"procedure","access":"local","params":3,"steps":[[448,"call","GetNewServiceObjectQuantity",1],[449,"write",8057,"Insert",1]]},{"name":"CreateMergedServiceCommitment","line":452,"kind":"procedure","access":"local","params":3,"steps":[[457,"validate",8059,"Amount"],[458,"validate",8059,"Subscription Line Start Date"],[459,"write",8059,"Insert",1]]},{"name":"AssignNewServiceCommitmentToVendorContract","line":462,"kind":"procedure","access":"local","params":2,"steps":[[469,"ext","table",8063,"CreateVendorContractLineFromServiceCommitment",1]]},{"name":"CloseVendorContractLines","line":473,"kind":"procedure","access":"local","params":1,"steps":[[481,"call","UpdateServiceCommitmentAndCloseVendorContractLine",2],[484,"ext","table",8057,"UpdateServicesDates",0],[485,"write",8057,"Modify"]]},{"name":"UpdateServiceCommitmentAndCloseVendorContractLine","line":501,"kind":"procedure","access":"local","params":2,"steps":[[505,"validate",8059,"Subscription Line End Date"],[507,"write",8059,"Modify"],[510,"write",8065,"Modify"]]},{"name":"InitFromServiceCommitment","line":513,"kind":"procedure","access":"internal","params":2,"steps":[[519,"call","GetNextLineNo",1],[521,"ext","table",8057,"GetContractLineTypeFromServiceObject",0],[527,"event","OnAfterInitFromSubscriptionLine",0]]}]}