InventBatchConsumptionValidator.validateExpiryDate Method [AX 2012]
Validates that the batch can be reserved based on batch expiration date and customer sellable days.
Syntax
protected boolean validateExpiryDate(
InventBatch _inventBatch,
[date _date,
CustAccount _custAccount,
PdsOverrideFEFO _override,
InventDim _orderInventDim])
Run On
Called
Parameters
- _inventBatch
Type: InventBatch Table
The inventory batch to validate.
- _date
Type: date
A date value that will be used to verify that the expiration date is beyond this date.
- _custAccount
Type: CustAccount Extended Data Type
The customer account can be provided for order validation. This will allow for the retrieval of sellable days information.
- _override
Type: PdsOverrideFEFO Extended Data Type
Determines whether the expiration check will be done.
- _orderInventDim
Type: InventDim Table
The InventDim record for a order that will be used as part of the sellable days search.
Return Value
Type: boolean
true if the batch is valid for the date provided; othwerise, false.