Compartir a través de


InventSum::findSumSameBatch Method

Gets a cummulative InventSum and inventory dimension for available inventory for a batch tracked item, taking into consideration appropriate conditions that block the availablity of batches.

Syntax

server public static InventSum findSumSameBatch(
    InventMovement _movement, 
    InventDim _inventDimCriteria, 
    InventDimParm _inventDimParm)

Run On

Server

Parameters

  • _inventDimCriteria
    Type: InventDim Table
    The criteria to limit the inventory search to.
  • _inventDimParm
    Type: InventDimParm Table
    The flags for the inventory dimension criteria values.

Return Value

Type: InventSum Table
A cummulative InventSum record for the available inventory.

Exceptions

Exception Condition
Error

Thrown if the dimension criteria is set to match on a serial number as that situation is not allowed for same batch matching.

[M:Excpetion::Error]

Thrown if the item in _movement is not batch activated.

See Also

Reference

InventSum Table