Share via


InventSum::findSumBatchExist Method

Get the inventsum and inventory dimension for a batch

Syntax

server public static container findSumBatchExist(
    ItemId _itemId, 
    InventDim _inventDimCriteria, 
    InventDimParm _inventDimParm, 
   [InventDim _inventDimExists, 
    InventDimParm _inventDimParmExists, 
    InventQty _reqQty, 
    PdsCWInventQty _cwReqQty, 
    TransDate _expDate, 
    CustAccount _custAcct])

Run On

Server

Parameters

  • _inventDimCriteria
    Type: InventDim Table
    The criteria to limit the batch search for
  • _inventDimExists
    Type: InventDim Table
    Optional value to only consider batches, where inventory exists also on the specified inventory dimensions
  • _inventDimParmExists
    Type: InventDimParm Table
    The flags for the inventory dimension values for the exists dimensions

Return Value

Type: container
A container with the InventSum record and the InventDim record

Remarks

The method search for the inventory of a batch, that is located within the _inventDimCriteria/_inventDimParm inventory dimensions.

Inventory for that batch, that is not within that criteria is not being included in the InventSum record.

If the _inventDimExists/_inventDimParmExists pair is specified, then only batches, that have inventory within these inventory dimensions are considered.

The selection of the actual batch depends on the reservation settings in the inventory model group (ReserveByDate and FEFO). If the date depend reservation is selected and a required quantity is being passed, then the first batch that matches that requirement is being returned.public static container findSumBatchExist( ItemId _itemId, InventDim _inventDimCriteria, InventDimParm _inventDimParm, InventDim _inventDimExists, InventDimParm _inventDimParmExists, InventQty _reqQty, PdsCWInventQty _cwReqQty TransDate _expDate)

See Also

Reference

InventSum Table