Today I want to share with you one of possible ways how you can catch the process how Inventory release created a GL Batch and GL Transactions.
Lets assume that we want to change description or Sub-Account during inventory receipt release, than i need to do following things:
- Create extension of INReleaseProcess, that is responsible for release operation.
- Override ReleaseDocProc, that is doing main release job.
- In this method we have links to JournalEntry and INRegister, where we can check what is going on and add some additional logic
- Add RowInserting event to JournalEntry that will handle creation of batch or tran
- Change description or sub-account where it is required
In the end you have exactly required batch.
Have a nice Development!