LedgerPostBatch.validatePost Method [AX 2012]

Validates a journal for posting. An exception should be thrown for an invalid journal.

protected abstract void validatePost(Common _journalRecord)

Run On

Called

Parameters

_journalRecord
Type: Common Table
The journal record to be posted.

This is called outside a transaction in the run method. Please use "throw error" and not "checkFailed" since the run method expects a hard failure for an invalid journal. See the LedgerJournalPostBatch class for an example.

Community Additions

ADD
Show: