Processing a project journal

As with most of the modules in Dynamics AX, the Project management and accounting module contains serveral journals, such as Hour, Expense, Fee, or Item journals. Although they are similar to the General journal, they provide a more convenient user interface for working with projects, and contain some module-specific features.

In this recipe, we will create and post a project journal from code. We will process an Hour journal, holding a registered employee's time.

How to do it...

  1. In the AOT, create a new job named ProjJournalCreate with the following code:
    static void ProjJournalCreate(Args _args) { ProjJournalTable jourTable; ProjJournalTrans jourTrans; ProjJournalTableData jourTableData; ProjJournalTransData jourTransData; ...

Get Microsoft Dynamics AX 2012 Development Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.