SalesATPCalculationShelfLife.checkBatch Method [AX 2012]

Validates a batch disposition code and expiry date.

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

Run On

Server

Parameters

_itemId
Type: ItemId Extended Data Type
An item ID.
_inventBatchId
Type: InventBatchId Extended Data Type
A batch ID.
_atpEndDate
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.
Show: