InventTransWMS_Register::updateInventFromMovementServer Method [AX 2012]
Converts the proposed changes into real inventory updates for a specified inventory movement.
Syntax
server protected static boolean updateInventFromMovementServer(
InventMovement _movement,
TmpInventTransWMS _tmpInventTransWMS,
container _mapQtyByTmpInventTransWMSPacked,
container _mapInventTransInventTransOriginPacked,
InventTransWMSRegistrationObserver _inventTransWMSRegistrationObserver)
Run On
Server
Parameters
- _movement
Type: InventMovement Class
The inventory movement for which items are being registered.
- _tmpInventTransWMS
Type: TmpInventTransWMS Table
The pending changes TmpInventTransWMS temporary table.
- _mapQtyByTmpInventTransWMSPacked
Type: container
A packed map that contains detail information to the pending records.
- _mapInventTransInventTransOriginPacked
Type: container
A packed map that contains inventory transaction to origin mapping.
- _inventTransWMSRegistrationObserver
Type: InventTransWMSRegistrationObserver Interface
An instance of the InventTransWMSRegistrationObserver class.
Return Value
Type: boolean
true if the update is successful; otherwise, false.
Exceptions
Exception | Condition |
---|---|
Error | The requested quantity cannot be updated due to missing InventTrans records with the right status. |