Skip to content

[W1][Codeunit][370][Bank Acc. Reconciliation Post] OnBeforeApplyVendLedgEntry event Requested #29597

@pandea04

Description

@pandea04

Why do you need this change?

Business Requirement:
Current solution requires to change the logic of application in Vendor Ledger Entry, for Bank Account Reconciliation.

Current Limitation:
The existing functionality in BC does not allow to change the logic of the method that posts application of Vendor Ledger Entry and add additional validation

Microsoft Idea Proposal Document - Bank Account Reconciliation.docx

Describe the request

Requesting even to be added on Bank Acc. Reconciliation Post
Requested Integration Event


    [IntegrationEvent(false, false)]
    local procedure OnBeforeApplyVendLedgEntry(var VendLedgEntry: Record "Vendor Ledger Entry"; AppliedPmtEntry: Record "Applied Payment Entry"; var BankAcc: Record "Bank Account"; AppliesToID: Code[50]; PostingDate: Date; PmtDiscDueDate: Date; PmtDiscToleranceDate: Date; RemPmtDiscPossible: Decimal;var PreviewMode:Boolean;var IsHandled: Boolean)
    begin
    end;

This event will allow to add additional logic for the amount that needs to be applied for logical data flow to be added in 
, adding IsHandled

        IsHandled := false;
        OnBeforeApplyVendLedgEntry(VendLedgEntry, AppliedPmtEntry, BankAcc, AppliesToID, PostingDate, PmtDiscDueDate, PmtDiscToleranceDate, RemPmtDiscPossible, PreviewMode,IsHandled);
        if IsHandled then
            exit;

procedure ApplyVendLedgEntry(AppliedPmtEntry: Record "Applied Payment Entry"; AppliesToID: Code[50]; PostingDate: Date; PmtDiscDueDate: Date; PmtDiscToleranceDate: Date; RemPmtDiscPossible: Decimal)

similar to ApplyCustLedgEntry(AppliedPmtEntry: Record "Applied Payment Entry"; AppliesToID: Code[50]; PostingDate: Date; PmtDiscDueDate: Date; PmtDiscToleranceDate: Date; RemPmtDiscPossible: Decimal)

Image

to be added in procedure ApplyVendLedgEntry

Image

Internal work item: AB#619542

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