PdsCatchWeight::convertCWQty Method [AX 2012]

Converts a quantity from a catch weight unit to an inventory unit.

server private static InventQty convertCWQty(
    PdsCWInventQty _cwQty, 
    EcoResProductRecId _productRecId, 
    UnitOfMeasureRecId _fromCWUnitRecId, 
    UnitOfMeasureRecId _toUnitRecId)

Run On

Server

Parameters

_cwQty
Type: PdsCWInventQty Extended Data Type
The quantity to convert.
_productRecId
Type: EcoResProductRecId Extended Data Type
The ID of the product.
_fromCWUnitRecId
Type: UnitOfMeasureRecId Extended Data Type
The ID of the unit of measure in which the quantity is specified.
_toUnitRecId
Type: UnitOfMeasureRecId Extended Data Type
The ID of the unit of measure to which the quantity should be converted.

Return Value

Type: InventQty Extended Data Type
The converted value of the quantity if the conversion is successful; otherwise, zero.
Show: