ALAppExtensions
ALAppExtensions copied to clipboard
[Subscription Billing] page 8006 "Contract Renewal Selection"
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
This issue has been approved for contribution ✅ Thanks for contributing.
We found different solution.