1

We want to apply more filters on the Vendor ledger entries that user applied on the request page but the available event cant be used as its not passing the vendor variable by reference and loses all the applied filters in the event.


User wants the vendor payments of a specific Payment Method Code (Bank) but the current system brings all the payments of a vendor, regardless of the filter applied on the Payment Method Code on request page..


Current Event Report 393 Suggest Vendor Payments

[IntegrationEvent(false, false)]

    local procedure OnGetVendLedgEntriesOnAfterVendLedgEntrySetFilters(var VendorLedgerEntry: Record "Vendor Ledger Entry"; Vendor: Record Vendor; PostingDate: Date; LastDueDateToPayReq: Date; Positive: Boolean; Future: Boolean)

    begin

    end;


Without passing it by Reference cant apply filter on Payment Method Code

VendorLedgerEntry.SetRange("Payment Method Code", Vendor.GetFilter("Payment Method Code"));


Requesting Event Report 393 Suggest Vendor Payments var Vendor

[IntegrationEvent(false, false)]

    local procedure OnGetVendLedgEntriesOnAfterVendLedgEntrySetFilters(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var Vendor: Record Vendor; PostingDate: Date; LastDueDateToPayReq: Date; Positive: Boolean; Future: Boolean)

    begin

    end;

Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team