Skip to content

[Event Request] Table 1251 "Text-to-Account Mapping" - OnInsertRecFromBankAccReconciliationLineOnBeforeInsert #29227

Description

@RZ440

Why do you need this change?

We added some custom fields to that table and need a possibility to fill them from the reconciliation lines.

Describe the request

Hello,
can you please add a new Event OnInsertRecFromBankAccReconciliationLineOnBeforeInsert in Procedure on Table 1251 "Text-to-Account Mapping" ?

    procedure InsertRecFromBankAccReconciliationLine(BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line")
    var
        TextToAccMapping: Record "Text-to-Account Mapping";
        LastLineNo: Integer;
    begin
.
.
.
                SetSourceTypeFromReconcLine(BankAccReconciliationLine);
                case "Bal. Source Type" of
                    "Bal. Source Type"::Customer,
                    "Bal. Source Type"::Vendor:
                        "Bal. Source No." := BankAccReconciliationLine."Account No.";
                    "Bal. Source Type"::"G/L Account":
                        begin
                            "Debit Acc. No." := BankAccReconciliationLine."Account No.";
                            "Credit Acc. No." := BankAccReconciliationLine."Account No.";
                        end;
                end;
                OnInsertRecFromBankAccReconciliationLineOnBeforeInsert(Rec, BankAccReconciliationLine);

                if "Mapping Text" <> '' then
                    Insert();
            end;

            Reset();

            Commit();
        end;

        PAGE.RunModal(PAGE::"Text-to-Account Mapping", Rec);
    end;
[IntegrationEvent(false, false)]
local procedure OnInsertRecFromBankAccReconciliationLineOnBeforeInsert(var TexttoAccountMapping: Record "Text-to-Account Mapping"; BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line")
begin
end;

Internal work item: AB#608822

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions