Share via


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

  • _inventDim
    Type: InventDim Table
    The criteria to limit the batch search for

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.

See Also

Reference

InventSum Table