InventBatchJournalController::newBatchJournal Method [AX 2012]

Creates a new instance of a InventBatchJournalController class depending on the batch handling journal type.

Syntax

server public static InventBatchJournalController newBatchJournal(InventBatchJournal _inventBatchJournal)

Run On

Server

Parameters

  • _inventBatchJournal
    Type: InventBatchJournal Table
    The record of the InventBatchJournal table for the batch handling journal.

Return Value

Type: InventBatchJournalController Class
A new instance of a InventBatchJournalController sub-class for the type of the batch handling journal.

Exceptions

Exception Condition
Error

Thrown if _batchHandling is a journal type that is unknown.

See Also

Reference

InventBatchJournalController Class