Book Image

Microsoft Dynamics NAV 2013 Application Design - Second Edition

By : Marije Brummel
Book Image

Microsoft Dynamics NAV 2013 Application Design - Second Edition

By: Marije Brummel

Overview of this book

This book is a focused tutorial on Microsoft Dynamics NAV application development to help you develop complete applications and not just application outlines. This hands-on guide starts off by introducing the supply chain that you will be using throughout the book. You will then implement the Microsoft Dynamics NAV ERP suite and learn to set it up and customize it for various industries. You will learn how to customize Dynamics NAV to suit the different aspects of a business such as financial management, relationship management, production, jobs, trade, storage, logistics, and so on. The book will take you through these Microsoft-designed application features and show you how to customize and extend them safely. Therefore, by the end of this book, you will be able to create a structure of your own in Microsoft Dynamics NAV.
Table of Contents (12 chapters)

Integrating with financial management

Although it is not likely to make big changes in financial management, it might be necessary to create G/L Entries in a new posting routine.

In the previous chapter, we already pointed out briefly that during posting transactions in Microsoft Dynamics NAV, the actual journal line records are never really inserted in the database. They are used as temporary containers to hold the data during posting. Doing an actual INSERT would require defining a journal template name, journal batch name, and line no. and could cause locking in the database.

Let's create a new codeunit that will create a G/L transaction.

Creating a G/L transaction

After creating the codeunit, we need to set up the two variables that are the minimum requirement to post something to the general ledger.

The preceding screenshot shows two variables:

  • GenJnlLine: This is a reference to the General Journal Line table (81).
  • GenJnlPostLine: The Gen. Jnl...