ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Request for External] - Codeunit 1248 "Process Bank Acc. Rec Lines"- InsertNonReconciledNonImportedLines and GetStatementLineNoOffset

Open AlaAuz opened this issue 6 years ago • 1 comments

Hello, I was wondering if you could make these two procedures external ?

local procedure InsertNonReconciledNonImportedLines(var TempBankAccReconLine: Record "Bank Acc. Reconciliation Line" temporary; StatementLineNoOffset: Integer)
    var
        BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line";
    begin
        if TempBankAccReconLine.FindSet then
            repeat
                if TempBankAccReconLine.CanImport then begin
                    BankAccReconciliationLine := TempBankAccReconLine;
                    BankAccReconciliationLine."Statement Line No." += StatementLineNoOffset;
                    BankAccReconciliationLine.Insert();
                end;
            until TempBankAccReconLine.Next = 0;
    end;
    local procedure GetStatementLineNoOffset(BankAccRecon: Record "Bank Acc. Reconciliation"): Integer
    var
        BankAccReconLine: Record "Bank Acc. Reconciliation Line";
    begin
        BankAccReconLine.SetRange("Statement Type", BankAccRecon."Statement Type");
        BankAccReconLine.SetRange("Statement No.", BankAccRecon."Statement No.");
        BankAccReconLine.SetRange("Bank Account No.", BankAccRecon."Bank Account No.");
        if BankAccReconLine.FindLast then
            exit(BankAccReconLine."Statement Line No.");
        exit(0)
    end;

AlaAuz avatar May 25 '20 08:05 AlaAuz

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. We will update this issue with information about availability.

bc-ghost avatar May 30 '20 07:05 bc-ghost