Compartir a través de


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

  • _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.
  • _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.

See Also

Reference

InventBatch Table