LedgerPostBatch.constructChild Method [AX 2012]

Creates a new instance of the derivative class for posting journals.

protected abstract LedgerPostBatch constructChild(
    Common _journalRecord, 
    boolean _transferErrors, 
   [boolean _isJournalSplitForbidden])

Run On

Called

Parameters

_journalRecord
Type: Common Table
The journal record with which to initialize the child.
_transferErrors
Type: boolean
A Boolean value that determines whether the child transfers errors. If true, the child transfers errors.
_isJournalSplitForbidden
Type: boolean
A Boolean value that determines whether journal splits are forbidden; optional. The default value is false.

Return Value

Type: LedgerPostBatch Class
A new instance of a LedgerPostBatch derivative class.

This is called within a transaction when inside a batch process. It is called outside a transaction when outside a batch process in the run method. In most cases you should just return a new instance of your derivative class. See the LedgerJournalPostBatch class for an example.

Community Additions

ADD
Show: