Share via


InventShelfLifeCriteria::newItemExpiry Method [AX 2012]

Creates a new instance of the InventShelfLifeCriteria class that represents the shelf life requirements of the item and expiration date.

Syntax

client server public static InventShelfLifeCriteria newItemExpiry(ItemId _itemId, TransDate _expiryCheckDate)

Run On

Called

Parameters

  • _expiryCheckDate
    Type: TransDate Extended Data Type
    The date to check for batch expiration. The constructor adjusts the date appropriately if the item is setup for expiration based on best before date.

Return Value

Type: InventShelfLifeCriteria Class
A new instance of the InventShelfLifeCriteria class.

See Also

Reference

InventShelfLifeCriteria Class