PdsCatchWeight::convertQtyToCWQty Method [AX 2012]

Converts a quantity in the specified unit to a catch weight quantity.

server public static PdsCWInventQty convertQtyToCWQty(
    ItemId _itemId, 
    Qty _qty, 
    UnitOfMeasureSymbol _unitId, 
   [NoYes _applyRounding])

Run On

Server

Parameters

_itemId
Type: ItemId Extended Data Type
A string value that holds the item ID.
_qty
Type: Qty Extended Data Type
A real value that represents a quantity to be converted.
_unitId
Type: UnitOfMeasureSymbol Extended Data Type
A string value that represents a unit symbol.
_applyRounding
Type: NoYes Enumeration
A Boolean that indicates whether rounding should be applied.

Return Value

Type: PdsCWInventQty Extended Data Type
A real value that represents a catch weight quantity.

ExceptionCondition
Error

The specified unit ID is empty.

-or-

The inventory unit ID does not exist.

-or-

The catch weight unit ID does not exist.

Show: