bcquality/microsoft/knowledge/finance/reverse-transactions-by-transaction-number.bad.al
Jesper Schulz-Wedde fa63d5526c Expand Finance pilot into a source-verified review domain
Move Finance knowledge to the Microsoft-owned layer, add nine scoped rules with eighteen AL samples, and register bounded Finance review with complete paired evaluation coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-17 16:09:17 +02:00

18 lines
607 B
AL

// Demonstration only; independently authored, not copied from BaseApp.
codeunit 50106 "Reverse Selected Posting"
{
procedure RequestReversal(SelectedEntryNo: Integer)
var
GLEntry: Record "G/L Entry";
ReversalEntry: Record "Reversal Entry";
begin
if not GuiAllowed() then
Error(InteractiveSessionErr);
GLEntry.Get(SelectedEntryNo);
GLEntry.TestField("Transaction No.");
ReversalEntry.ReverseTransaction(GLEntry."Entry No.");
end;
var
InteractiveSessionErr: Label 'Request the reversal from an interactive session.';
}