Share via


InventTable::setMinMaxQty Method

Determines a quantity that conforms with the minimum, maximum and multiple settings of an ItemAccount.

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 Qty setMinMaxQty(
            InventItemOrderSetupMap _inventItemOrderSetupMap, 
            Qty _transQty, 
            UnitOfMeasureSymbol _transUnitId, 
           [boolean _displayInformationToUser, 
            boolean _lockMinQtyCheck, 
            boolean _lockMaxQtyCheck, 
            boolean _lockMultipleCheck, 
            boolean _doMultipleCheck, 
            boolean _doMinQtyCheck, 
            boolean _doMaxQtyCheck])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static Qty setMinMaxQty(
            InventItemOrderSetupMap _inventItemOrderSetupMap, 
            Qty _transQty, 
            UnitOfMeasureSymbol _transUnitId, 
           [boolean _displayInformationToUser, 
            boolean _lockMinQtyCheck, 
            boolean _lockMaxQtyCheck, 
            boolean _lockMultipleCheck, 
            boolean _doMultipleCheck])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static Qty setMinMaxQty(
            InventItemOrderSetupMap _inventItemOrderSetupMap, 
            Qty _transQty, 
            UnitOfMeasureSymbol _transUnitId, 
           [boolean _displayInformationToUser, 
            boolean _lockMinQtyCheck, 
            boolean _lockMaxQtyCheck, 
            boolean _lockMultipleCheck, 
            boolean _doMultipleCheck])

  Microsoft Dynamics AX 2012 (FPK)
          client server public static Qty setMinMaxQty(
            InventItemOrderSetupMap _inventItemOrderSetupMap, 
            Qty _transQty, 
            UnitOfMeasureSymbol _transUnitId, 
           [boolean _displayInformationToUser, 
            boolean _lockMinQtyCheck, 
            boolean _lockMaxQtyCheck, 
            boolean _lockMultipleCheck])

  Microsoft Dynamics AX 2012 (SYS)
          client server public static Qty setMinMaxQty(
            InventItemOrderSetupMap _inventItemOrderSetupMap, 
            Qty _transQty, 
            UnitOfMeasureSymbol _transUnitId, 
           [boolean _displayInformationToUser, 
            boolean _lockMinQtyCheck, 
            boolean _lockMaxQtyCheck, 
            boolean _lockMultipleCheck])

Run On

Called

Parameters

  • _displayInformationToUser
    Type: boolean
    A Boolean value that defines if the information should be shown to the user.
  • _lockMinQtyCheck
    Type: boolean
    A Boolean value that defines if the minimum quantity must be adjusted without user interaction if the requirement is not met.
  • _lockMaxQtyCheck
    Type: boolean
    A Boolean value that defines if the maximum quantity must be adjusted without user interaction if the requirement is not met.
  • _lockMultipleCheck
    Type: boolean
    A Boolean value that defines if the multiple quantity must be adjusted without user interaction if the requirement is not met.
  • _doMultipleCheck
    Type: boolean
    A Boolean value that defines if the multiple quantity should be validated after corrected.

Return Value

Type: Qty Extended Data Type
The adjusted transaction quantity.

See Also

Reference

InventTable Table