Share via


InventMovement::setMinMaxQty Method [AX 2012]

Checks and sets the minimum or maximum qty that is specified on the item.

Syntax

Note

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 void setMinMaxQty(
            Common _buffer, 
           [boolean _showUsrDialog, 
            boolean _useDefaultOrderSetup, 
            boolean _doMinQtyCheck, 
            boolean _doMaxQtyCheck])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static void setMinMaxQty(
            Common _buffer, 
           [boolean _showUsrDialog, 
            boolean _useDefaultOrderSetup])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static void setMinMaxQty(
            Common _buffer, 
           [boolean _showUsrDialog, 
            boolean _useDefaultOrderSetup])

  Microsoft Dynamics AX 2012 (FPK)
          client server public static void setMinMaxQty(
            Common _buffer, 
           [boolean _showUsrDialog, 
            boolean _useDefaultOrderSetup])

  Microsoft Dynamics AX 2012 (SYS)
          client server public static void setMinMaxQty(
            Common _buffer, 
           [boolean _showUsrDialog, 
            boolean _useDefaultOrderSetup])

Run On

Called

Parameters

  • _useDefaultOrderSetup
    Type: boolean

Remarks

The method calls the setMinMaxQty method on the InventTable. As a default, the Boolean - showUsrDialog is set to true. This displays a dialog box to the user who specifies the minimum or maximum quantity roles for the item.

See Also

Reference

InventMovement Class