InventCostIndirectFinancial.setReturnQty Method [AX 2012]
Sets the quantity returned.
Syntax
public void setReturnQty(
RecId _inventTransOrigin,
Voucher _voucher,
TransDate _transDate,
Qty _qty)
Run On
Called
Parameters
- _inventTransOrigin
Type: RecId Extended Data Type
The origin of the inventory transaction.
- _voucher
Type: Voucher Extended Data Type
The voucher of the physical update.
- _transDate
Type: TransDate Extended Data Type
The transaction date of the physical update.
- _qty
Type: Qty Extended Data Type
The returned quantity.
Exceptions
Exception | Condition |
---|---|
Error | The quantity has already been set. |
Remarks
When a inventory is physically returned, the returned quantity must be set manually because the inventory transaction is physically and financially updated in the same transaction scope.