Microsoft Dynamics AX development

Archive for May, 2017

DIXF: Generate JournalNum for PriceJournal

The entity DMFPriceDiscAdmTransEntity requires the field JournalNum.
I want to generate automatically this number.

In the class DmfPriceDiscAdmTransEntityClass I’ve added a new method:

Aufnahme1

If I start another “Copy data to target”, I hava already the JournalNum (and an existing Price journal) and the target records will be updated (if the journal is not posted).

In the method generatePriceDiscTableLink I’ve called the new method:

Aufnahme2

 

Tag Cloud