Codeunit 227 VendEntry-Apply Posted Entries

Base Application, Microsoft.Purchases.Payables

Source AL, 817 lines

src/Layers/W1/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.allines 19 to 34 of 817, Copyright (c) Microsoft Corporation. MIT

codeunit 227 "VendEntry-Apply Posted Entries"{    EventSubscriberInstance = Manual;    Permissions = TableData "Vendor Ledger Entry" = rimd;    TableNo = "Vendor Ledger Entry";    trigger OnRun()    var        ApplyUnapplyParameters: Record "Apply Unapply Parameters";        SequenceNoMgt: Codeunit "Sequence No. Mgt.";    begin        SequenceNoMgt.SetPreviewMode(PreviewMode);        if PreviewMode then            case RunOptionPreviewContext of                RunOptionPreview::Apply:                    Apply(Rec, ApplyUnapplyParametersContext);

All 817 lines

Events 29 in 29

[IntegrationEvent] OnAfterCheckReversal(VendLedgerEntry: Record "Vendor Ledger Entry")17-29
[IntegrationEvent] OnAfterPostApplyVendLedgEntry(GenJournalLine: Record "Gen. Journal Line"; VendorLedgerEntry: Record "Vendor Ledger Entry"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line")17-29
[IntegrationEvent] OnBeforeApply(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var DocumentNo: Code[20]; var ApplicationDate: Date)17-29
[IntegrationEvent] OnBeforeApplyVendEntryFormEntry(var ApplyingVendLedgEntry: Record "Vendor Ledger Entry"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeGetApplicationDate(VendorLedgEntry: Record "Vendor Ledger Entry"; var ApplicationDate: Date; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeRunUpdateAnalysisView(var IsHandled: Boolean)17-29
[IntegrationEvent] OnGetApplicationDateOnAfterSetFilters(var ApplyToVendLedgEntry: Record "Vendor Ledger Entry"; VendorLedgEntry: Record "Vendor Ledger Entry")17-29

All 36 events in 17-29

Public procedures 15 in 29

GetApplicationDate(VendLedgEntry: Record "Vendor Ledger Entry"): Date17-29
FindLastApplEntry(VendLedgEntryNo: Integer): Integer17-29
UnApplyDtldVendLedgEntry(DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry")17-29
UnApplyVendLedgEntry(VendLedgEntryNo: Integer)17-29
CheckReversal(VendLedgEntryNo: Integer)17-29
ApplyVendEntryFormEntry(var ApplyingVendLedgEntry: Record "Vendor Ledger Entry")17-29

All 22 procedures in 17-29

Changes 4 in 24

List17181920212223242526272829
Procedures1517
Events349624
[IntegrationEvent] OnApplyVendEntryFormEntryOnAfterVendLedgEntrySetFilters(var VendorLedgEntry: Record "Vendor Ledger Entry"; var ApplyToVendLedgEntry: Record "Vendor Ledger Entry"; var IsHandled: Boolean)20 to 23
gone
[IntegrationEvent] OnApplyVendEntryFormEntryOnAfterVendLedgEntrySetFilters(var VendorLedgEntry: Record "Vendor Ledger Entry"; var ApplyToVendLedgEntry: Record "Vendor Ledger Entry"; var IsHandled: Boolean; var VendEntryApplID: Code[50])new in 24
added
[IntegrationEvent] OnApplyOnBeforePostingDateMustNotBeBeforeError(var ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var VendorLedgerEntry: Record "Vendor Ledger Entry"; PreviewMode: Boolean; var IsHandled: Boolean)new in 24
added
[IntegrationEvent] OnPostUnApplyVendorCommitOnBeforePostingDateMustNotBeBeforeError(var ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var DetailedVendorLedgEntry2: Record "Detailed Vendor Ledg. Entry"; PreviewMode: Boolean; var IsHandled: Boolean)new in 24
added

All 51 changes in 17-29