Table 8062 Cust. Sub. Contract Line
src/Apps/W1/Subscription Billing/App/Customer Contracts/Tables/CustSubContractLine.Table.al623 lines, Copyright (c) Microsoft Corporation. MIT
namespace Microsoft.SubscriptionBilling;using Microsoft.Finance.GeneralLedger.Account;using Microsoft.Foundation.AuditCodes;using Microsoft.Inventory.Item;using Microsoft.Purchases.Vendor;using System.Utilities;table 8062 "Cust. Sub. Contract Line"{ Caption = 'Customer Subscription Contract Line'; DataClassification = CustomerContent; DrillDownPageId = "Customer Contract Lines"; LookupPageId = "Customer Contract Lines"; fields { field(1; "Subscription Contract No."; Code[20]) { Caption = 'Subscription Contract No.'; TableRelation = "Customer Subscription Contract"; } field(2; "Line No."; Integer) { Caption = 'Line No.'; } field(3; "Contract Line Type"; Enum "Contract Line Type") { Caption = 'Type'; trigger OnValidate() var TempCustomerContractLine: Record "Cust. Sub. Contract Line" temporary; begin CheckAndDisconnectContractLine(); TempCustomerContractLine := Rec; Init(); "Contract Line Type" := TempCustomerContractLine."Contract Line Type"; end; } field(4; "No."; Code[20]) { Caption = 'No.'; TableRelation = if ("Contract Line Type" = const(Item)) Item where("Subscription Option" = filter("Sales with Service Commitment" | "Service Commitment Item"), Blocked = const(false)) else if ("Contract Line Type" = const("G/L Account")) "G/L Account" where("Direct Posting" = const(true), "Account Type" = const(Posting), Blocked = const(false)); ValidateTableRelation = false; trigger OnValidate() var Item: Record Item; GLAccount: Record "G/L Account"; TempCustomerContractLine: Record "Cust. Sub. Contract Line" temporary; begin if "No." <> '' then case "Contract Line Type" of "Contract Line Type"::Item: begin if not Item.Get("No.") then Error(EntityDoesNotExistErr, Item.TableCaption, "No."); if Item.Blocked or Item."Subscription Option" in ["Item Service Commitment Type"::"Sales without Service Commitment", "Item Service Commitment Type"::"Sales without Service Commitment"] then Error(ItemBlockedOrWithoutServiceCommitmentsErr, "No."); end; "Contract Line Type"::"G/L Account": begin if not GLAccount.Get("No.") then Error(EntityDoesNotExistErr, GLAccount.TableCaption, "No."); if GLAccount.Blocked or not GLAccount."Direct Posting" or (GLAccount."Account Type" <> GLAccount."Account Type"::Posting) then Error(GLAccountBlockedOrNotForDirectPostingErr, "No."); end; end; CheckAndDisconnectContractLine(); TempCustomerContractLine := Rec; Init(); SystemId := TempCustomerContractLine.SystemId; "Contract Line Type" := TempCustomerContractLine."Contract Line Type"; "No." := TempCustomerContractLine."No."; CreateServiceObjectWithServiceCommitment(); end; } field(100; "Subscription Header No."; Code[20]) { Caption = 'Subscription No.'; TableRelation = "Subscription Header"; Editable = false; } field(101; "Subscription Line Entry No."; Integer) { Caption = 'Subscription Line Entry No.'; TableRelation = "Subscription Line"."Entry No."; Editable = false; } field(102; "Subscription Description"; Text[100]) { Caption = 'Subscription Description'; trigger OnValidate() begin UpdateServiceObjectDescription(); end; } field(106; "Subscription Line Description"; Text[100]) { Caption = 'Subscription Line Description'; trigger OnValidate() begin UpdateServiceCommitmentDescription(); end; } field(107; "Closed"; Boolean) { Caption = 'Closed'; } field(109; "Service Object Quantity"; Decimal) { Caption = 'Quantity'; FieldClass = FlowField; CalcFormula = lookup("Subscription Header".Quantity where("No." = field("Subscription Header No."))); Editable = false; AutoFormatType = 0; DecimalPlaces = 0 : 5; } field(200; "Planned Sub. Line exists"; Boolean) { Caption = 'Planned Subscription Line exists'; Editable = false; FieldClass = FlowField; CalcFormula = exist("Planned Subscription Line" where("Subscription Header No." = field("Subscription Header No."), "Subscription Contract No." = field("Subscription Contract No."), "Subscription Contract Line No." = field("Line No."))); } } keys { key(PK; "Subscription Contract No.", "Line No.") { Clustered = true; } } trigger OnDelete() begin ErrorIfUnreleasedCustSubContractDeferralExists(); AskIfClosedContractLineCanBeDeleted(); UpdateServiceCommitmentDimensions(); RecalculateHarmonizedBillingFieldsOnCustomerContract(Rec."Line No."); ErrorIfUsageDataBillingIsLinkedToContractLine(); CheckAndDisconnectContractLine(); end; trigger OnModify() begin if Rec."Contract Line Type" <> xRec."Contract Line Type" then ErrorIfUnreleasedCustSubContractDeferralExists(); end; var TextManagement: Codeunit "Text Management"; ContractsGeneralMgt: Codeunit "Sub. Contracts General Mgt."; ConfirmManagement: Codeunit "Confirm Management"; HideValidationDialog: Boolean; DeletionNotAllowedErr: Label 'Deletion is not allowed because the line is linked to a contract billing line. Please delete the billing proposal first.'; ClosedContractLinesDeletionQst: Label 'Deleting the contract line breaks the link to the Subscription Line in the Subscription. Do you want to continue?'; OneContractLineSelectedErr: Label 'Please select the lines you want to combine.'; BillingLinesForSelectedContractLinesExistsErr: Label 'Billing Lines for exists for at least one of the selected contract lines. Delete the Billing Lines before merging the Contract Lines.'; ContractLinesWithDifferentDimensionSelectedErr: Label 'There are different dimension values for the Contract Lines. Complete the dimensions before merging the Contract Lines.'; ContractLinesWithDifferentNextBillingDateSelectedErr: Label 'There is a different Next Billing Date for the Contract Lines. The Contract Lines must be billed so that the Next Billing Date is the same before they can be combined.'; NotAllowedMergingTextLinesErr: Label 'Merging with text lines is not allowed.'; ContractLinesMergedMsg: Label 'Customer Subscription Contract lines have been merged.'; ContractLineWithDifferentCustRefCannotBeMergedErr: Label 'Subscription Lines from Subscriptions with different Customer References cannot be merged.'; LinesWithSerialNoCannotBeMergedErr: Label 'Contract lines cannot be merged if Serial No. is entered into Subscription.'; ContractLineCannotBeDeletedErr: Label 'You cannot delete the contract line because usage data exist for it. Please delete all related data in Usage Data Billing first.'; EntityDoesNotExistErr: Label '%1 with the No. %2 does not exist.', Comment = '%1 = Item or GL Account, %2 = Entity No.'; ItemBlockedOrWithoutServiceCommitmentsErr: Label 'The item %1 cannot be blocked and must be of type "Non-Inventory" with the Subscription Option set to "Sales with Subscription" or "Subscription Item".', Comment = '%1=Item No.'; GLAccountBlockedOrNotForDirectPostingErr: Label 'The G/L Account %1 cannot be blocked and must allow direct posting to it.', Comment = '%1=G/L Account No.'; UnreleasedCustSubContractDeferralExistsErr: Label 'Contract lines cannot be deleted as long as open Contract Deferrals exists. Please release the Contract Deferrals before deleting the Contract line.'; local procedure CreateServiceObjectWithServiceCommitment() var CustomerContract: Record "Customer Subscription Contract"; ServiceObject: Record "Subscription Header"; ServiceCommitment: Record "Subscription Line"; begin if "No." = '' then exit; CustomerContract.Get("Subscription Contract No."); ServiceObject.InitForSourceNo("Contract Line Type", "No."); ServiceObject.UpdateCustomerDataFromCustomerContract(CustomerContract); ServiceObject."Created in Contract line" := true; ServiceObject.Insert(true); "Subscription Header No." := ServiceObject."No."; "Subscription Description" := ServiceObject.Description; ServiceCommitment.InitForServiceObject(ServiceObject, "Service Partner"::Customer); ServiceCommitment.UpdateFromCustomerContract(CustomerContract); ServiceCommitment."Created in Contract line" := true; ServiceCommitment."Subscription Contract No." := Rec."Subscription Contract No."; ServiceCommitment."Subscription Contract Line No." := Rec."Line No."; ServiceCommitment.Insert(false); "Subscription Line Entry No." := ServiceCommitment."Entry No."; "Subscription Line Description" := ServiceCommitment.Description; end; local procedure ErrorIfUsageDataBillingIsLinkedToContractLine() var UsageDataBilling: Record "Usage Data Billing"; begin UsageDataBilling.SetRange(Partner, "Service Partner"::Customer); UsageDataBilling.SetRange("Subscription Contract No.", "Subscription Contract No."); UsageDataBilling.SetRange("Subscription Contract Line No.", "Line No."); if not UsageDataBilling.IsEmpty() then Error(ContractLineCannotBeDeletedErr); end; local procedure CheckAndDisconnectContractLine() var ServiceCommitment: Record "Subscription Line"; BillingLineArchive: Record "Billing Line Archive"; begin if ContractsGeneralMgt.BillingLineExists(Enum::"Service Partner"::Customer, Rec."Subscription Contract No.", Rec."Line No.") then Error(DeletionNotAllowedErr); BillingLineArchive.FilterBillingLineArchiveOnContractLine(Enum::"Service Partner"::Customer, "Subscription Contract No.", "Line No."); if BillingLineArchive.FindSet() then begin repeat if not BillingLineArchive.PostedDocumentExist() then BillingLineArchive.Delete(false); until BillingLineArchive.Next() = 0; ServiceCommitment.DisconnectContractLine("Subscription Line Entry No."); end else ServiceCommitment.DeleteOrDisconnectServiceCommitment("Subscription Line Entry No."); OnAfterCheckAndDisconnectContractLine(Rec, xRec); end; internal procedure OpenServiceObjectCard() var ServiceObject: Record "Subscription Header"; begin ServiceObject.OpenServiceObjectCard("Subscription Header No."); end; procedure GetNextLineNo(CustomerContractNo: Code[20]) LineNo: Integer var CustomerContractLine: Record "Cust. Sub. Contract Line"; begin CustomerContractLine.SetRange("Subscription Contract No.", CustomerContractNo); if CustomerContractLine.FindLast() then LineNo := CustomerContractLine."Line No."; LineNo += 10000; end; local procedure UpdateServiceObjectDescription() var ServiceObject: Record "Subscription Header"; begin case Rec."Contract Line Type" of Enum::"Contract Line Type"::Item, Enum::"Contract Line Type"::"G/L Account": begin ServiceObject.Get(Rec."Subscription Header No."); ServiceObject.Validate(Description, Rec."Subscription Description"); ServiceObject.Modify(true); end; end; OnAfterUpdateSubscriptionDescription(Rec); end; local procedure UpdateServiceCommitmentDescription() var ServiceCommitment: Record "Subscription Line"; begin case Rec."Contract Line Type" of Enum::"Contract Line Type"::Item, Enum::"Contract Line Type"::"G/L Account": begin ServiceCommitment.Get(Rec."Subscription Line Entry No."); ServiceCommitment.Validate(Description, Rec."Subscription Line Description"); ServiceCommitment.Modify(true); end; end; OnAfterUpdateSubscriptionLineDescription(Rec); end; procedure LoadServiceCommitmentForContractLine(var ServiceCommitment: Record "Subscription Line") var LocalServiceCommitment: Record "Subscription Line"; begin ServiceCommitment.Init(); if "Subscription Contract No." = '' then exit; case "Contract Line Type" of Enum::"Contract Line Type"::Item, Enum::"Contract Line Type"::"G/L Account": if ServiceCommitment.IsTemporary then begin if GetServiceCommitment(LocalServiceCommitment) then begin LocalServiceCommitment.CalcFields(Quantity); ServiceCommitment.TransferFields(LocalServiceCommitment); end; end else if GetServiceCommitment(ServiceCommitment) then ServiceCommitment.CalcFields(Quantity); end; OnAfterLoadAmountsForContractLine(Rec, ServiceCommitment); end; procedure GetServiceCommitment(var ServiceCommitment: Record "Subscription Line"): Boolean var begin ServiceCommitment.Init(); exit(ServiceCommitment.Get(Rec."Subscription Line Entry No.")); end; internal procedure GetServiceObject(var ServiceObject: Record "Subscription Header"): Boolean begin ServiceObject.Init(); exit(ServiceObject.Get(Rec."Subscription Header No.")); end; local procedure UpdateServiceCommitmentDimensions() var ServiceCommitment: Record "Subscription Line"; begin if Rec."Subscription Header No." = '' then exit; if not ServiceCommitment.Get(Rec."Subscription Line Entry No.") then exit;#pragma warning disable AA0214 ServiceCommitment.SetDefaultDimensions(true); ServiceCommitment.Modify(false);#pragma warning restore AA0214 DeleteRelatedVendorServiceCommDimensions(ServiceCommitment); end; local procedure DeleteRelatedVendorServiceCommDimensions(ServiceCommitment: Record "Subscription Line") var VendorServiceCommitment: Record "Subscription Line"; VendorContract: Record "Vendor Subscription Contract"; SourceCodeSetup: Record "Source Code Setup"; begin SourceCodeSetup.Get(); VendorServiceCommitment.FilterOnServiceObjectAndPackage(ServiceCommitment."Subscription Header No.", ServiceCommitment.Template, ServiceCommitment."Subscription Package Code", Enum::"Service Partner"::Vendor); if VendorServiceCommitment.FindSet() then repeat VendorServiceCommitment.SetDefaultDimensions(true); if VendorContract.Get(VendorServiceCommitment."Subscription Contract No.") then VendorServiceCommitment.ApplyContractDimensions(VendorContract."Dimension Set ID", SourceCodeSetup.Purchases, Database::Vendor); VendorServiceCommitment.Modify(false); until VendorServiceCommitment.Next() = 0; end; local procedure AskIfClosedContractLineCanBeDeleted() begin if not Rec.Closed then exit; if not GetConfirmResponse(ClosedContractLinesDeletionQst, true) then Error(TextManagement.GetProcessingAbortedErr()); end; local procedure ErrorIfTextLineIsSelected(var CustomerContractLine: Record "Cust. Sub. Contract Line") begin CustomerContractLine.SetRange("Contract Line Type", Enum::"Contract Line Type"::Comment); if not CustomerContractLine.IsEmpty() then Error(NotAllowedMergingTextLinesErr); CustomerContractLine.SetRange("Contract Line Type"); end; local procedure CheckSelectedContractLines(var CustomerContractLine: Record "Cust. Sub. Contract Line") begin ErrorIfTextLineIsSelected(CustomerContractLine); ErrorIfOneCustomerContractLineIsSelected(CustomerContractLine); TestAndCompareSelectedCustomerContractLines(CustomerContractLine); OnAfterCheckSelectedContractLinesOnMergeContractLines(CustomerContractLine); end; local procedure ErrorIfOneCustomerContractLineIsSelected(var CustomerContractLine: Record "Cust. Sub. Contract Line") begin if CustomerContractLine.Count < 2 then Error(OneContractLineSelectedErr); end; local procedure TestAndCompareSelectedCustomerContractLines(var CustomerContractLine: Record "Cust. Sub. Contract Line") var ServiceCommitment: Record "Subscription Line"; PrevServiceCommitment: Record "Subscription Line"; ServiceObject: Record "Subscription Header"; PrevServiceObject: Record "Subscription Header"; PrevNextBillingDate: Date; FirstLine: Boolean; PrevDimensionSetID: Integer; begin FirstLine := true; PrevDimensionSetID := 0; PrevNextBillingDate := 0D; if CustomerContractLine.FindSet() then repeat CustomerContractLine.GetServiceCommitment(ServiceCommitment); ServiceObject.Get(CustomerContractLine."Subscription Header No."); if not FirstLine then case true of ServiceObject."Customer Reference" <> PrevServiceObject."Customer Reference": Error(ContractLineWithDifferentCustRefCannotBeMergedErr); ServiceObject."Serial No." <> PrevServiceObject."Serial No.": Error(LinesWithSerialNoCannotBeMergedErr); PrevDimensionSetID <> ServiceCommitment."Dimension Set ID": Error(ContractLinesWithDifferentDimensionSelectedErr); ContractsGeneralMgt.BillingLineExists(Enum::"Service Partner"::Customer, CustomerContractLine."Subscription Contract No.", CustomerContractLine."Line No."): Error(BillingLinesForSelectedContractLinesExistsErr); PrevNextBillingDate <> ServiceCommitment."Next Billing Date": Error(ContractLinesWithDifferentNextBillingDateSelectedErr); ((ServiceCommitment."Subscription Header No." <> PrevServiceCommitment."Subscription Header No.") or (ServiceCommitment."Entry No." <> PrevServiceCommitment."Entry No.")): begin if ServiceObject."No." <> PrevServiceObject."No." then ContractsGeneralMgt.TestMergingServiceObjects(ServiceObject, PrevServiceObject); ContractsGeneralMgt.TestMergingServiceCommitments(ServiceCommitment, PrevServiceCommitment); end; end; PrevDimensionSetID := ServiceCommitment."Dimension Set ID"; PrevNextBillingDate := ServiceCommitment."Next Billing Date"; PrevServiceCommitment := ServiceCommitment; PrevServiceObject := ServiceObject; FirstLine := false; until CustomerContractLine.Next() = 0; end; local procedure RecalculateHarmonizedBillingFieldsOnCustomerContract(DeletedCustContractLineNo: Integer) var CustomerContract: Record "Customer Subscription Contract"; begin CustomerContract.Get(Rec."Subscription Contract No."); CustomerContract.RecalculateHarmonizedBillingFieldsBasedOnNextBillingDate(DeletedCustContractLineNo); end; internal procedure FilterOnServiceCommitment(ServiceCommitment: Record "Subscription Line") begin Rec.SetRange("Subscription Line Entry No.", ServiceCommitment."Entry No."); Rec.SetRange("Subscription Contract No.", ServiceCommitment."Subscription Contract No."); end; internal procedure FindFirstSubscriptionLine(SubscriptionLine: Record "Subscription Line"): Boolean begin Rec.FilterOnServiceCommitment(SubscriptionLine); exit(Rec.FindFirst()); end; internal procedure FilterOnServiceObjectContractLineType() begin SetRange("Contract Line Type", "Contract Line Type"::Item, "Contract Line Type"::"G/L Account"); end; procedure MergeContractLines(var CustomerContractLine: Record "Cust. Sub. Contract Line") var RefCustomerContractLine: Record "Cust. Sub. Contract Line"; SelectCustContractLines: Page "Select Cust. Contract Lines"; begin CheckSelectedContractLines(CustomerContractLine); SelectCustContractLines.SetTableView(CustomerContractLine); if SelectCustContractLines.RunModal() = Action::OK then begin SelectCustContractLines.GetRecord(RefCustomerContractLine); if MergeCustomerContractLine(CustomerContractLine, RefCustomerContractLine) then Message(ContractLinesMergedMsg); end; end; internal procedure InitFromServiceCommitment(ServiceCommitment: Record "Subscription Line"; ContractNo: Code[20]) var ServiceObject: Record "Subscription Header"; begin Rec.Init(); Rec."Subscription Contract No." := ContractNo; Rec."Line No." := GetNextLineNo(Rec."Subscription Contract No."); ServiceObject.Get(ServiceCommitment."Subscription Header No."); Rec."Contract Line Type" := ServiceObject.GetContractLineTypeFromServiceObject(); Rec."No." := ServiceObject."Source No."; Rec."Subscription Header No." := ServiceObject."No."; Rec."Subscription Description" := ServiceObject.Description; Rec."Subscription Line Entry No." := ServiceCommitment."Entry No."; Rec."Subscription Line Description" := ServiceCommitment.Description; OnAfterInitFromSubscriptionLine(Rec, ServiceCommitment, ServiceObject); end; local procedure MergeCustomerContractLine(var CustomerContractLine: Record "Cust. Sub. Contract Line"; RefCustomerContractLine: Record "Cust. Sub. Contract Line"): Boolean var ServiceObject: Record "Subscription Header"; ServiceCommitment: Record "Subscription Line"; begin CreateDuplicateServiceObject(ServiceObject, RefCustomerContractLine."Subscription Header No.", CustomerContractLine); CreateMergedServiceCommitment(ServiceCommitment, ServiceObject, RefCustomerContractLine); CloseCustomerContractLines(CustomerContractLine); if not AssignNewServiceCommitmentToCustomerContract(CustomerContractLine."Subscription Contract No.", ServiceCommitment) then exit(false); exit(true); end; local procedure GetNewServiceObjectQuantity(var CustomerContractLine: Record "Cust. Sub. Contract Line") NewQuantity: Decimal var ServiceObject: Record "Subscription Header"; begin if CustomerContractLine.FindSet() then repeat ServiceObject.Get(CustomerContractLine."Subscription Header No."); NewQuantity += ServiceObject.Quantity; until CustomerContractLine.Next() = 0; end; local procedure CreateDuplicateServiceObject(var NewServiceObject: Record "Subscription Header"; ServiceObjectNo: Code[20]; var CustomerContractLine: Record "Cust. Sub. Contract Line") begin NewServiceObject.Get(ServiceObjectNo); NewServiceObject."No." := ''; NewServiceObject.Quantity := GetNewServiceObjectQuantity(CustomerContractLine); NewServiceObject.Insert(true); end; local procedure CreateMergedServiceCommitment(var ServiceCommitment: Record "Subscription Line"; ServiceObject: Record "Subscription Header"; RefCustomerContractLine: Record "Cust. Sub. Contract Line") begin RefCustomerContractLine.GetServiceCommitment(ServiceCommitment); ServiceCommitment."Entry No." := 0; ServiceCommitment."Subscription Header No." := ServiceObject."No."; ServiceCommitment.Validate(Amount, ServiceCommitment.Price * ServiceObject.Quantity); ServiceCommitment.Validate("Subscription Line Start Date", ServiceCommitment."Next Billing Date"); ServiceCommitment.Insert(true); end; local procedure AssignNewServiceCommitmentToCustomerContract(ContractNo: Code[20]; NewServiceCommitment: Record "Subscription Line"): Boolean var CustomerContract: Record "Customer Subscription Contract"; begin if ContractNo = '' then exit(false); CustomerContract.Get(ContractNo); CustomerContract.CreateCustomerContractLineFromServiceCommitment(NewServiceCommitment, ContractNo); exit(true); end; local procedure CloseCustomerContractLines(var CustomerContractLine: Record "Cust. Sub. Contract Line") var ServiceCommitment: Record "Subscription Line"; ServiceObject: Record "Subscription Header"; begin if CustomerContractLine.FindSet() then repeat CustomerContractLine.GetServiceCommitment(ServiceCommitment); UpdateServiceCommitmentAndCloseCustomerContractLine(ServiceCommitment, CustomerContractLine);#pragma warning disable AA0214 ServiceObject.Get(CustomerContractLine."Subscription Header No."); ServiceObject.UpdateServicesDates(); ServiceObject.Modify(false);#pragma warning restore AA0214 until CustomerContractLine.Next() = 0; end; local procedure UpdateServiceCommitmentAndCloseCustomerContractLine(var ServiceCommitment: Record "Subscription Line"; var CustomerContractLine: Record "Cust. Sub. Contract Line") begin ServiceCommitment."Subscription Line End Date" := ServiceCommitment."Next Billing Date"; ServiceCommitment."Next Billing Date" := 0D; ServiceCommitment.Validate("Subscription Line End Date"); ServiceCommitment.Closed := true; ServiceCommitment.Modify(false); CustomerContractLine.Closed := true; CustomerContractLine.Modify(false); end; procedure GetConfirmResponse(ConfirmQuestion: Text; DefaultButton: Boolean): Boolean begin if HideValidationDialog then exit(true); exit(ConfirmManagement.GetResponse(ConfirmQuestion, DefaultButton)); end; internal procedure IsCommentLine(): Boolean begin exit("Contract Line Type" = "Contract Line Type"::Comment); end; local procedure ErrorIfUnreleasedCustSubContractDeferralExists() var CustSubContractDeferral: Record "Cust. Sub. Contract Deferral"; begin CustSubContractDeferral.SetRange("Subscription Contract No.", "Subscription Contract No."); CustSubContractDeferral.SetRange("Subscription Contract Line No.", "Line No."); CustSubContractDeferral.SetRange(Released, false); if not CustSubContractDeferral.IsEmpty() then Error(UnreleasedCustSubContractDeferralExistsErr); end; [IntegrationEvent(false, false)] local procedure OnAfterCheckSelectedContractLinesOnMergeContractLines(var SelectedCustSubContractLine: Record "Cust. Sub. Contract Line") begin end; [IntegrationEvent(false, false)] local procedure OnAfterCheckAndDisconnectContractLine(var CustSubContractLine: Record "Cust. Sub. Contract Line"; xCustSubContractLine: Record "Cust. Sub. Contract Line") begin end; [IntegrationEvent(false, false)] local procedure OnAfterUpdateSubscriptionDescription(var CustSubContractLine: Record "Cust. Sub. Contract Line") begin end; [IntegrationEvent(false, false)] local procedure OnAfterUpdateSubscriptionLineDescription(var CustSubContractLine: Record "Cust. Sub. Contract Line") begin end; [IntegrationEvent(false, false)] local procedure OnAfterLoadAmountsForContractLine(var CustSubContractLine: Record "Cust. Sub. Contract Line"; var SubscriptionLine: Record "Subscription Line") begin end; [IntegrationEvent(false, false)] local procedure OnAfterInitFromSubscriptionLine(var CustSubContractLine: Record "Cust. Sub. Contract Line"; SubscriptionLine: Record "Subscription Line"; SubscriptionHeader: Record "Subscription Header") begin end;}