PdsCatchWeight::cwUnitAndQty Method [AX 2012]

Converts an inventory quantity to a catch weight quantity.

server public static container cwUnitAndQty(
    ItemId _itemId, 
    InventQty _qty, 
   [boolean _applyRounding])

Run On

Server

Parameters

_itemId
Type: ItemId Extended Data Type
An item for which the quantity is to be converted.
_qty
Type: InventQty Extended Data Type
An inventory quantity to be converted.
_applyRounding
Type: boolean
A Boolean value that determines whether the resulting catch weight quantity should be rounded according to the rule defined on the unit; optional.

Return Value

Type: container
A catch weight unit and converted catch weight quantity in a container.
Show: