InventBatchConsumptionValidator.validateSameBatchAvailQty Method [AX 2012]
Determines if there is enough inventory available for the batch selected to satisfy the entire on order amount of the movement.
Syntax
public boolean validateSameBatchAvailQty(
InventMovement _movement,
InventDim _inventDimCriteria,
InventDim _inventDimCriteriaSelected,
CreatedTransactionId _ttsId,
boolean _isWork,
boolean _allowReservedOrdered,
InventQty _availPhysical,
InventQty _availOrdered)
Run On
Called
Parameters
- _movement
Type: InventMovement Class
The movement being reserved.
- _inventDimCriteria
Type: InventDim Table
The inventory dimension criteria used to reserve inventory.
- _inventDimCriteriaSelected
Type: InventDim Table
The inventory dimension criteria currently selected to be reserved.
- _ttsId
Type: CreatedTransactionId Extended Data Type
The transaction id which is used to search for WHSInventReserveDelta records.
- _isWork
Type: boolean
A boolean flag determining if the calculation should be done different because the movement is of a "work" type.
- _allowReservedOrdered
Type: boolean
Determines if the reservation is allowed to be Reserved Ordered.
- _availPhysical
Type: InventQty Extended Data Type
The available physical amount calculated for the full dimensions attempting to be reserved.
- _availOrdered
Type: InventQty Extended Data Type
The total avail amount calculated for the full dimensions attempting to be reserved.
Return Value
Type: boolean
true, if there is enough inventory to satisfy the same batch criteria; otherwise, false.