The posting process
Our journal is now ready to be posted. We've implemented all business logic, except the posting code.
The posting process of a journal in Microsoft Dynamics NAV has several codeunits for the structure:
- Jnl.-Check Line: This codeunit checks if the journal line is valid for posting.
- Jnl.-Post Line: This codeunit does the actual creation of the ledger entry and register tables and calls other Jnl.-Post Line codeunits if necessary to provide the transaction structure in Chapter 1, Introduction to Microsoft Dynamics NAV.
- Jnl.-Post Batch: This codeunit loops though all journal lines in a journal batch and posts all the lines.
- Jnl.-Post: This is the codeunit that is called from the page. It calls the Jnl.-Post Batch codeunit and takes care of some user messaging.
- Jnl.-Post+Print: This is the codeunit that is called when you click on Post + Print. It does the same as the Jnl.-Post codeunit but with the additional printing of a report...