All financial transactions regardless of where they are originated end up in the General ledger module. When it comes to customized functionality, developers should use Dynamics AX APIs to create the required system entries. No transactions can be created directly as this is a very critical step and it may impact on the accuracy of financial data.
To ensure system data consistency, Dynamics AX provides numerous APIs for developers to use. One of them is ledger voucher processing. It is a very basic interface and all other interfaces are based on it if they require financial transaction posting. Vouchers in Dynamics AX are balancing financial entries representing an operation. They include two or more ledger transactions. The ledger voucher API ensures that all required criteria like voucher numbers, financial periods, ledger accounts, financial dimensions, balances, and others are valid.
In this recipe, we will demonstrate how to process ledger vouchers...