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.
- Jnl.-Post Batch: This codeunit loops through all journal lines in a journal batch and posts all the lines. There is a dialog.
- Jnl.-Post: This is the codeunit that is called from the page. It calls the codeunit jnl.-post batch and takes care of some user messaging.
- Jnl.-Post+Print: This is the codeunit that is called when you push post + print. It does the same as the jnl.-post codeunit but with the additional printing of a report defined in the journal template...