Share via


InventBatch.pdsEffectiveExpiryDate Method

Retrieves the effective shelf life expiration date for this batch.

Syntax

public date pdsEffectiveExpiryDate()

Run On

Called

Return Value

Type: date
The effective expiration date for the batch; otherwise, nullNothingnullptrunita null reference (Nothing in Visual Basic)

Remarks

This method retrieves the shelf life effective expiration date based on the item model group. The batch expires at midnight on the day that is returned by this method.If shelf life is not enabled or not used for the item that the batch is associated to or if no expiration date is assigned, and then this returns null. Otherwise, this method selects the appropriate expiration date for the batch based on the FEFO rule in the item model group, either expiry date or best before date.Note that the expiry date that is returned based on the best before date is the actual date on which the batch will expire.

See Also

Reference

InventBatch Table