InventSum::pdsSameBatchExpiredPhysical Method
Get the cumulative inventsum for batches that are expired based on an expiration date.
Syntax
server public static InventSum pdsSameBatchExpiredPhysical(
ItemId _itemId,
InventDim _inventDim,
TransDate _date)
Run On
Server
Parameters
- _itemId
Type: ItemId Extended Data Type
The item to find the batches which are expired
- _inventDim
Type: InventDim Table
The criteria to limit the batch search for
- _date
Type: TransDate Extended Data Type
The Expiration date for which the batches can not exceed
Return Value
Type: InventSum Table
A cumulative InventSum Record
Remarks
The method goes through all inventSum record within the inventDim and InventDimParm combination and examines the related InventBatch records.
The InventSum record is included if the underlying InventBatch record is concidered expired based on the date provided. The expired batch is evaluated by looking at either the BestBeforeDate or the ExpDate as defined in the Inventory model group.The resulting InventSum record is returned to the caller.