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...
- 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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.