InventBatchConsumptionValidator::validateAllStatic Method [AX 2012]
Validates all conditions are met to allow reservation of the batch.
Syntax
client server public static boolean validateAllStatic(
InventBatchId _batchId,
InventMovement _movement,
InventDim _dimCriteria,
[TmpPdsBatchAttribSelect _prevAttrSel])
Run On
Called
Parameters
- _batchId
Type: InventBatchId Extended Data Type
The batch Id being evaluated.
- _movement
Type: InventMovement Class
The movement driving the reservation of the batch.
- _dimCriteria
Type: InventDim Table
The inventory dimension criteria that must be met by the reservation.
- _prevAttrSel
Type: TmpPdsBatchAttribSelect Table
A PdsBatchAttribAttribSelect record to be used instead of standard attributes.
Return Value
Type: boolean
true if the batch is valid for reservation; otherwise, false.
Remarks
This method should be used in scenarios where persisting data and caching within the InventBatchConsumptionValidator class will unlikely be used.
Typically it should only be called once during any one process.