Restrict some user from posting Journal.

How to restrict some user from posting journal ?

For example : I need to restrict user ANDY from posting Cash Receipt Journal.

I’ve deleted some permission from their role including these :

codeunit :

  • Gen. Jnl.-Post

  • Gen. Jnl.-Post+Print

  • Gen. Jnl.-Post Line

  • Gen. Jnl.-Post Batch

But my user still able to posting.

I’m using NAV 4.0 SP 3

In this we can do one small customization by adding one Boolean field in User Setup table as ‘Restrict Posting’ and check before posting the journal entries (Write a code on Post button). If it is allowed then it will post or else it will show error message