Notifications
Announcements
No record found.
i need to restrict reverse transaction entry in General Ledger Entries.
Thanks for support
*This post is locked for comments
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.
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 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;
Hope this helps
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.