Codeunit 8002 Create Sub. Contract Renewal

Subscription Billing, Microsoft.SubscriptionBilling

Source AL, 489 lines

src/Apps/W1/Subscription Billing/App/Contract Renewal/Codeunits/CreateSubContractRenewal.Codeunit.allines 8 to 23 of 489, Copyright (c) Microsoft Corporation. MIT

codeunit 8002 "Create Sub. Contract Renewal"{    TableNo = "Sub. Contract Renewal Line";    SingleInstance = true;    trigger OnRun()    begin        Rec.ModifyAll("Error Message", '', false);        CreateSingleContractRenewal(Rec);    end;    local procedure RunCheck(var ContractRenewalLine: Record "Sub. Contract Renewal Line")    var        ContractRenewalLine2: Record "Sub. Contract Renewal Line";    begin        ContractRenewalLine2 := ContractRenewalLine;

All 489 lines

Events 12 in 29

[IntegrationEvent] OnAfterCreateSalesHeaderFromSubscriptionContract(CustomerSubscriptionContract: Record "Customer Subscription Contract"; var SalesHeader: Record "Sales Header")new in 26
[IntegrationEvent] OnBeforeInsertSubscriptionContractDescriptionSalesLines(CustomerSubscriptionContract: Record "Customer Subscription Contract"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean)new in 26
[IntegrationEvent] OnAfterInsertSubscriptionContractDescriptionSalesLines(CustomerSubscriptionContract: Record "Customer Subscription Contract"; SalesHeader: Record "Sales Header")new in 26
[IntegrationEvent] OnAfterInsertSalesQuoteLineFromSubContractRenewalLine(var SalesLine: Record "Sales Line"; var SubContractRenewalLine: Record "Sub. Contract Renewal Line")new in 26
[IntegrationEvent] OnAfterInsertTermInfoLine(CurrentSalesHeader: Record "Sales Header"; var SubContractRenewalLine: Record "Sub. Contract Renewal Line")new in 26
[IntegrationEvent] OnBeforeInsertSubscriptionLine(var SalesLine: Record "Sales Line"; var SubContractRenewalLine: Record "Sub. Contract Renewal Line"; var IsHandled: Boolean)new in 26
[IntegrationEvent] OnAfterInsertSubscriptionLine(var SalesLine: Record "Sales Line"; var SubContractRenewalLine: Record "Sub. Contract Renewal Line"; var SalesSubscriptionLine: Record "Sales Subscription Line")new in 26

All 12 events

Public procedures 1 in 29

GetSalesQuoteNo(): Code[20]new in 26

All 4 procedures in 26-29