Skip to content

OnAfterGenJnlLineInit in report 1497 "Trans. Bank Rec. to Gen. Jnl." #29743

@TKapitan

Description

@TKapitan

Why do you need this change?

We need to populate custom fields before the document number and balance account is assigned.

Describe the request

                    GenJnlLine.Init();
--> NEW EVENT
                    OnAfterGenJnlLineInit(GenJnlLine, "Bank Acc. Reconciliation Line");
<-- NEW EVENT
                    GenJnlLine."Line No." := GenJnlLine."Line No." + 10000;
                    GenJnlLine.Validate("Posting Date", "Transaction Date");
                    SourceCodeSetup.Get();
                    case
                        GenJnlTemplate.Type of
                        GenJnlTemplate.Type::General:
    [IntegrationEvent(false, false)]
    local procedure OnAfterGenJnlLineInit(var GenJournalLine: Record "Gen. Journal Line"; BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line")
    begin
    end;

Internal work item: AB#622665

Metadata

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaevent-requestRequest for adding an event

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions