Share via


InventTransWMS_Register.findOrCreateInventBatch Method [AX 2012]

Finds or creates a new InventBatch record for the InventTrans record.

Syntax

protected InventBatch findOrCreateInventBatch(InventTrans _inventTrans, InventDim _inventDim)

Run On

Client

Parameters

  • _inventTrans
    Type: InventTrans Table
    An InventTrans record for which to create the batch number.
  • _inventDim
    Type: InventDim Table
    An InventDim record for which to create the batch number.

Return Value

Type: InventBatch Table
The existing InventBatch record if found; otherwise, the created InventBatch record.

Exceptions

Exception Condition
Error

The batch ID cannot be created for the inventory batch.

See Also

Reference

InventTransWMS_Register Class