InventBatch::pdsCheckExpiryDate Method
Verifies that the batch shelf life has not, or will not expire before the date provided.
Syntax
client server public static boolean pdsCheckExpiryDate(
InventBatchId _inventBatchId,
ItemId _itemId,
[date _date,
boolean _displayMsg,
CustAccount _custId,
PdsOverrideFEFO _override,
InventDim _orderInventDim])
Run On
Called
Parameters
- _inventBatchId
Type: InventBatchId Extended Data Type
The batch ID for which to verify the expiration date.
- _itemId
Type: ItemId Extended Data Type
The item ID for which to verify the expiration date.
- _date
Type: date
A date value that will be used to verify that the expiration date is beyond this date.
- _displayMsg
Type: boolean
A Boolean value that indicates whether a message will be returned if the batch is found to be expired.
- _custId
Type: CustAccount Extended Data Type
The customer account can be provided for sales 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 sales order that will be used as part of the sellable days search.
Return Value
Type: boolean
true if the batch is still valid for the date provided; otherwise false
Remarks
The expiration check will be conducted based on the parameters of the item's InventModelGroup. This will determine whether the check has to be done and against which batch date the check will be conducted.