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
- _itemId
Type: ItemId Extended Data Type
The item to search the batch inventory for
- _inventDimCriteria
Type: InventDim Table
The criteria to limit the batch search for
- _inventDimParm
Type: InventDimParm Table
The flags for the inventory dimension values
- _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
- _reqQty
Type: InventQty Extended Data Type
Optional parameter to search for a batch that has at least the specified quantity available
- _cwReqQty
Type: PdsCWInventQty Extended Data Type
Optional parameter to search for a batch that has at least the specified catch weight quantity available
- _expDate
Type: TransDate Extended Data Type
The expiration date requested
- _custAcct
Type: CustAccount Extended Data Type
Customer account to be used to validate item batch attributes.
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)