ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Event Request: Table 1060 - "Payment Service Setup" - OnBeforeCanUsePaymentMethod

Open JeremyOrgan-DC opened this issue 3 years ago • 1 comments

Please could we have the following event added:

local procedure CanUsePaymentMethod(PaymentMethodCode: Code[10]): Boolean
var
    PaymentMethod: Record "Payment Method";
    IsHandled: Boolean;
    Result: Boolean;
begin
    OnBeforeCanUsePaymentMethod(PaymentMethodCode, Result, IsHandled)
    if IsHandled then
        exit(Result);

    if not PaymentMethod.Get(PaymentMethodCode) then
        exit(true);

    exit(PaymentMethod."Bal. Account No." = '');
end;

[IntegrationEvent(false, false)]
local procedure OnBeforeCanUsePaymentMethod(PaymentMethodCode: Code[10]; var Result: Boolean; var IsHandled: Boolean)
begin
end;

Many Thanks

JeremyOrgan-DC avatar Jan 06 '23 14:01 JeremyOrgan-DC

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

Build ID: 52831.

JesperSchulz avatar Feb 02 '23 15:02 JesperSchulz