Handling DocumentIsPosted variable in document pages
due to some limitations, we are using our own POST action in all sale and purchase documents pages example : page 42 code under standard post action is

We cant access DocumentIsPosted variable in event subscribed to NEW Post action and we are getting document not posted confirmation event after posting documents.
Please provide a way to handle DocumentIsPosted .. may be by adding this to table etc.
Thank you for your suggestion. I don’t think you need a way to handle DocumentIsPosted. Rather we need to refactor the code to do the actual check when the page closes, instead of using a global variable. By doing so, you would not need control over the variable. I have added the work to our backlog. Thank you for bringing this design flaw to our attention.
A fix for the issue will ship in an upcoming update!