Skip to content

[Event Request] new event on function VendPostApplyVendLedgEntry on Codeunit 227 “VendEntry-Apply Posted Entries” #4383

@mannavmej

Description

@mannavmej

🛑🛑🛑This repo is no longer dedicated to handling application requests and enhancements 🛑🛑🛑
Instead please use the following repository: https://github.com/Microsoft/ALAppExtensions

Hello, we need a new event on function VendPostApplyVendLedgEntry on Codeunit 227 “VendEntry-Apply Posted Entries”
OnBeforePostApplyVendLedgEntry(GenJnlLine,VendLedgEntry);
GenJnlPostLine.VendPostApplyVendLedgEntry(GenJnlLine,VendLedgEntry);

EntryNoAfterApplication := FindLastApplDtldVendLedgEntry;
IF EntryNoAfterApplication = EntryNoBeforeApplication THEN
ERROR(NoEntriesAppliedErr,GenJnlLine.FIELDCAPTION("Applies-to ID"));

IF PreviewMode THEN
GenJnlPostPreview.ThrowError;

COMMIT;
Window.CLOSE;
//NEW EVENT
OnAfterPostApplyVendLedgEntry(GenJnlLine,VendLedgEntry);
// NEW EVENT
UpdateAnalysisView.UpdateAll(0,TRUE);

with new publsiher:
[External] [IntegrationEvent] OnAfterPostApplyVendLedgEntry (VAR GenJnlLine: Record "Gen. Journal Line"; VAR VendLedgEntry: Record “Vendor Ledger Entry”)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions