Codeunit 386 Reverse Payment Rec. Journal

Base Application, Microsoft.Bank.Reconciliation

Source AL, 1,000 lines

src/Layers/W1/BaseApp/Bank/Reconciliation/ReversePaymentRecJournal.Codeunit.allines 34 to 49 of 1,000, Copyright (c) Microsoft Corporation. MIT

codeunit 386 "Reverse Payment Rec. Journal"{    EventSubscriberInstance = Manual;    var        EmptyTransactionNoErr: Label 'Entry %1 cannot be reversed because its "Transaction No." is not defined.', Comment = '%1 - The Entry No. of the transaction that cannot be reversed';        PostedPaymentReconciliationNotSelectedErr: Label 'You must select a journal to reverse.';        CantFindRelatedEntriesErr: Label 'Related entries not found. To unapply and reverse payments you must do it manually.';        PaymentRecJournalAlreadyReversedErr: Label 'This payment reconciliation journal has already been reversed.';        GLRegisterNo: Integer;    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Gen. Jnl.-Post Line", 'OnAfterInitGLRegister', '', false, false)]    local procedure SetGLRegisterNoInPostedPaymentRecHeader(var GLRegister: Record "G/L Register"; var GenJournalLine: Record "Gen. Journal Line")    begin        GLRegisterNo := GLRegister."No.";    end;

All 1,000 lines

Events 11 in 29

[IntegrationEvent] OnAfterReverseEntry()new in 22
[IntegrationEvent] OnBeforeReverseEntry(var PaymentRecRelatedEntry: Record "Payment Rec. Related Entry")new in 22
[IntegrationEvent] OnErrorIfEntryIsNotReversableOnBeforeEntryIsReversable(var IsHandled: Boolean)new in 22
[IntegrationEvent] OnCopyPaymentRecJournalFromPostedPaymentReconLinesOnAfterInsertBankAccReconciliationLine(var PostedPaymentReconLine: Record "Posted Payment Recon. Line"; var BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line")new in 22
[IntegrationEvent] OnAfterCreateCopyPaymentRecJournal(var PostedPaymentReconHdr: Record "Posted Payment Recon. Hdr"; var BankAccReconciliation: Record "Bank Acc. Reconciliation")new in 23
[IntegrationEvent] OnBeforeEntryIsReversable(JournalBatchName: Code[10]; DocumentType: Enum "Gen. Journal Document Type"; AmountToApply: Decimal; AppliesToDocNo: Code[20]; AppliesToID: Code[50]; SourceCode: Code[10]; var Result: Boolean; var IsHandled: Boolean)new in 27
[IntegrationEvent] OnInsertRelatedAndAppliedEntriesOnAfterFilterCustLedgerEntry(var CustLedgerEntry: Record "Cust. Ledger Entry"; var BankAccountLedgerEntry: Record "Bank Account Ledger Entry")new in 28

All 11 events

Public procedures 8 in 29

SetGLRegisterNo(BankAccReconciliation: Record "Bank Acc. Reconciliation")new in 21
RunReversalWizard(var PostedPaymentReconHdr: Record "Posted Payment Recon. Hdr")new in 21
UnapplyEntry(var PaymentRecRelatedEntry: Record "Payment Rec. Related Entry"; ShowEntriesToPost: Boolean)new in 21
ReverseEntry(var PaymentRecRelatedEntry: Record "Payment Rec. Related Entry"; ShowEntriesToPost: Boolean)new in 21
ErrorIfEntryIsNotReversable(CustLedgerEntry: Record "Cust. Ledger Entry")new in 21
ErrorIfEntryIsNotReversable(VendorLedgerEntry: Record "Vendor Ledger Entry")new in 21

All 8 procedures

Changes 5 in 28

List17181920212223242526272829
Procedures1
Events4115
[IntegrationEvent] OnInsertRelatedAndAppliedEntriesOnAfterFilterCustLedgerEntry(var CustLedgerEntry: Record "Cust. Ledger Entry"; var BankAccountLedgerEntry: Record "Bank Account Ledger Entry")new in 28
added
[IntegrationEvent] OnInsertRelatedAndAppliedEntriesOnAfterFilterVendorLedgerEntry(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var BankAccountLedgerEntry: Record "Bank Account Ledger Entry")new in 28
added
[IntegrationEvent] OnInsertRelatedAndAppliedEntriesOnAfterFilterEmployeeLedgerEntry(var EmployeeLedgerEntry: Record "Employee Ledger Entry"; var BankAccountLedgerEntry: Record "Bank Account Ledger Entry")new in 28
added
[IntegrationEvent] OnAfterInsertRelatedAndAppliedEntriesOfGLRegister(var GLRegister: Record "G/L Register"; var PostedPaymentReconHdr: Record "Posted Payment Recon. Hdr"; var StatementLineNo: Integer)new in 28
added
[IntegrationEvent] OnAfterInsertRelatedAndAppliedEntries(BankAccountNo: Code[20]; StatementNo: Code[20]; StatementLineNo: Integer; AccountType: Enum "Gen. Journal Account Type"; var BankAccountLedgerEntry: Record "Bank Account Ledger Entry")new in 28
added

All 12 changes in 21-29