i need to restrict reverse transaction entry in General Ledger Entries.
Thanks for support
*This post is locked for comments
i need to restrict reverse transaction entry in General Ledger Entries.
Thanks for support
*This post is locked for comments
You can achieve this by doing small customization
In User Setup add field 'Allow Reverse Transaction' as boolean datatype.
Write a code on reverse transaction action if above field in true then allow for reverse or give error
UserSetup.SETFILTER(UserSetup."User ID",'=%1',USERID);
IF UserSetup.FindFirst then begin
IF NOT "Allow Reverse Transaction" THEN
ERROR('You are not authorized to perform reverse transaction')
ELSE BEGIN
CLEAR(ReversalEntry);
IF Reversed THEN
ReversalEntry.AlreadyReversedEntry(TABLECAPTION,"Entry No.");
IF "Journal Batch Name" = '' THEN
ReversalEntry.TestFieldError;
TESTFIELD("Transaction No.");
ReversalEntry.ReverseTransaction("Transaction No.")
END;
END;
Hope this helps
Dear Nav User123 ,
Its Simple , You have 2 ways to do it Security , Permission Set
check relevant users and make security or remove those permission for the user who wants to remove(from those user's permission set)
You can do that through security. When you do a reverse transaction, NAV creates a record in Reversal Entry. Table 179. Change the permission for the user so that they cannot insert into this table.