Share via


InventTransWMS_Register.findOrCreateInventSerial Method [AX 2012]

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

Syntax

protected InventSerial findOrCreateInventSerial(InventTrans _inventTrans, InventDim _inventDim)

Run On

Client

Parameters

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

Return Value

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

Exceptions

Exception Condition
Error

The serial number cannot be generated.

See Also

Reference

InventTransWMS_Register Class