SalesATPCalculationShelfLife.checkBatch Method [AX 2012]

Validates a batch disposition code and expiry date.

protected boolean checkBatch(
    ItemId _itemId, 
    InventBatchId _inventBatchId, 
    date _atpEndDate)

Run On



Type: ItemId Extended Data Type
An item ID.
Type: InventBatchId Extended Data Type
A batch ID.
Type: date
The last date of the ATP calculation.

Return Value

Type: boolean
true if the batch has a valid disposition code that will not expire before the last date of the ATP calculation; otherwise, false.