InventMovement.updateSerialNumReceipt Method [AX 2012]
Verifies if a particular receipt inventory transaction update can be done for a particular serial number, and creates a serial number if necessary.
Syntax
public void updateSerialNumReceipt(
InventTrans _inventTrans,
InventTrans _inventTrans_orig,
[InventDim _inventDim])
Run On
Called
Parameters
- _inventTrans
Type: InventTrans Table
Current InventTrans record.
- _inventTrans_orig
Type: InventTrans Table
Original DB InventTrans record.
- _inventDim
Type: InventDim Table
Current InventDim record linked to the _inventTrans record.
Exceptions
Exception | Condition |
---|---|
Error | Throw error if different than 1 in either qty or CW qty fields. 0 is allowed if this is CW a weight adjustment movement. -or- Throw error if dimAllowBlankReceipt not enabled. -or- Throw error if dimAllowBlankReceipt not enabled. |
Remarks
If item is a catch weight item and the InventDim record has a serial number, added cw qty check if greater than one(1).