ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Subscription Billing] page 8006 "Contract Renewal Selection"

Open samra-singhammer opened this issue 1 year ago • 2 comments

Why do you need this change?

Please add an event with IsHandled pattern in order to skip lines that are not related to Subscriptions.

Describe the request

local procedure ServiceHasRenewalTerm(var CustomerContractLine: Record "Cust. Sub. Contract Line")**Result**: Boolean
var
    ServiceCommitment: Record "Subscription Line";
    TempServiceCommitment2: Record "Subscription Line" temporary;
    EmptyDateFormula: DateFormula;
    **IsHandled: Boolean**
begin
    **OnBeforeServiceHasRenewalTerm(CustomerContractLine,IsHandled,Result)
    if IsHandled then
        exit(Result)**

    CustomerContractLine.TestField("Subscription Header No.");
    CustomerContractLine.TestField("Subscription Line Entry No.");

    TempServiceCommitment2 := TempServiceCommitment;
    if TempServiceCommitment.Get(CustomerContractLine."Subscription Line Entry No.") then begin
        ServiceCommitment := TempServiceCommitment;
        TempServiceCommitment := TempServiceCommitment2;
    end else
        ServiceCommitment.Get(CustomerContractLine."Subscription Line Entry No.");
    **Result  := ServiceCommitment."Renewal Term" <> EmptyDateFormula;
    exit(Result);**
end;


**[IntegrationEvent(false, false)]
local procedure OnBeforeServiceHasRenewalTerm(CustSubContractLine: Record "Cust. Sub. Contract Line"; var IsHandled: Boolean; var Result: Boolean)
begin
end;**

Internal work item: AB#612257

samra-singhammer avatar Nov 05 '25 11:11 samra-singhammer

This issue has been approved for contribution ✅ Thanks for contributing.

github-actions[bot] avatar Nov 12 '25 07:11 github-actions[bot]

We found different solution.

samra-singhammer avatar Dec 15 '25 09:12 samra-singhammer