InventSum::pdsNoSalesResPhysicalSLItem Method
Get the cumulative inventsum for batches that are blocked for sales reservation for Shelf Life items
Syntax
server public static InventSum pdsNoSalesResPhysicalSLItem(
ItemId _itemId,
InventDim _inventDim,
InventDimParm _inventDimParm,
TransDate _expDate)
Run On
Server
Parameters
- _itemId
Type: ItemId Extended Data Type
The item to find the batches which are not allowed
- _inventDim
Type: InventDim Table
The criteria to limit the batch search for
- _inventDimParm
Type: InventDimParm Table
The flags for the inventory dimension values
- _expDate
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 has a disposition code that is does not allow the item to be included as it is blocked for sales reservation. In addition to the disposition, and since the item is a shelf life item, the search is limited to batches which are still within their expiration dates. This is done so that the batch will not be counted twice.The resulting InventSum record is returned to the caller.