Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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. |