All you 'best practices' people out there are going to have to turn your head for a minute. Of couse if you have a better idea, I'll listen...
Be aware that the techniques that I discuss here are version specific, and are not even guaranteed to work in different service packs.
I often need to gather data and do something with it as a use posts data. For instance, if a user posts a Sales Transaction Entry, I need to do things with the data. This post will document the posting order of different types of transactions.
GP9, edited 11/2009
Sales Order Creation
Order Header inserted in Open
Order Line inserted in Open
Transfer Sales Order To Invoice
Inv Header inserted in Open
Inv Line inserted in Open
Order Header inserted in history
Order Line inserted in history
Order Line deleted from open
Order Header deleted from open
Post Invoice
Inv Header inserted in history
Inv Line inserted in history
Inv Line deleted from open
Inv Header deleted from open
GP10