ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] table 274 "Bank Acc. Reconciliation Line"

Open panas78 opened this issue 4 years ago • 1 comments

Please add new event OnAfterGetAppliedEntryAccountNo in Table Bank Acc. Reconciliation Line function GetAppliedEntryAccountNo

procedure GetAppliedEntryAccountNo(AppliedToEntryNo: Integer): Code[20]
    var
        CustLedgerEntry: Record "Cust. Ledger Entry";
        VendorLedgerEntry: Record "Vendor Ledger Entry";
        BankAccountLedgerEntry: Record "Bank Account Ledger Entry";

        IsHandled: Boolean;
        AccountNo: Code[20];

    begin
        case "Account Type" of
            "Account Type"::Customer:
                if CustLedgerEntry.Get(AppliedToEntryNo) then
                    exit(CustLedgerEntry."Customer No.");
            "Account Type"::Vendor:
                if VendorLedgerEntry.Get(AppliedToEntryNo) then
                    exit(VendorLedgerEntry."Vendor No.");
            "Account Type"::"Bank Account":
                if BankAccountLedgerEntry.Get(AppliedToEntryNo) then
                    exit(BankAccountLedgerEntry."Bal. Account No.");
        end;

        OnAfterGetAppliedEntryAccountNo(Rec, AppliedToEntryNo, AccountNo, IsHandled);
        IF IsHandled then
            exit(AccountNo);

        exit("Account No.");
    end;

[IntegrationEvent(false, false)]
    local procedure OnAfterGetAppliedEntryAccountNo(var BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line"; AppliedToEntryNo: Integer; var AccountNo: Code[20]; var IsHandled: Boolean)
    begin
    end;

panas78 avatar Dec 31 '21 10:12 panas78

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.

JesperSchulz avatar Jan 15 '22 06:01 JesperSchulz