PdsCatchWeight::validateQty Method [AX 2012]

Validates whether the quantity in specified unit falls with the acceptable range for the item's catch weight quantity.

NoteNote

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.


  Microsoft Dynamics AX 2012 R3
          client server public static boolean validateQty(
            ItemId _itemId, 
            Qty _qty, 
            UnitOfMeasureRecId _unitOfMeasureRecId, 
            PdsCWInventQty _cwQty, 
           [boolean _verbose])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static boolean validateQty(
            ItemId _itemId, 
            Qty _qty, 
            UnitOfMeasureRecId _unitOfMeasureRecId, 
            PdsCWInventQty _cwQty, 
           [boolean _verbose])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static boolean validateQty(
            ItemId _itemId, 
            Qty _qty, 
            UnitOfMeasureRecId _unitOfMeasureRecId, 
            PdsCWInventQty _cwQty)

  Microsoft Dynamics AX 2012 (FPK)
          client server public static boolean validateQty(
            ItemId _itemId, 
            Qty _qty, 
            UnitOfMeasureRecId _unitOfMeasureRecId, 
            PdsCWInventQty _cwQty)

Run On

Called

Parameters

_itemId
Type: ItemId Extended Data Type
The item ID.
_qty
Type: Qty Extended Data Type
The specified quantity.
_unitOfMeasureRecId
Type: UnitOfMeasureRecId Extended Data Type
A unit of measure ID.
_cwQty
Type: PdsCWInventQty Extended Data Type
A quantity in catch weight unit.
_verbose
Type: boolean
A Boolean value indicating whether to show the error message if the validation fails; optional.

Return Value

Type: boolean
true if quantity falls in the acceptable range or the item is not a catch-weight item; otherwise, false.
Show: