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.
Generates an inventory batch ID from the batch journal item's batch number group.
Syntax
private InventBatchId generateBatchId(InventMovement _movement)
Run On
Server
Parameters
- _movement
Type: InventMovement Class
The movement from which to take number group properties when generating the new inventory batch ID.
Return Value
Type: InventBatchId Extended Data Type
A new inventory batch ID.
Exceptions
Exception | Condition |
---|---|
Error | Thrown if the item's defined batch number group cannot be found or if the item does not have a batch number group defined. -or- Thrown if the defined batch number group is setup for manual batch number allocation. -or- Thrown if the number group is not setup properly to produce an inventory batch number. -or- Thrown if the generated inventory batch number already exists for the batch journal item. |