Edit

AvailableStockForBatch (productSeq, batchNum, location, exclOrderSeqNum)

Result Type:  Number

Definition:  Calculates the available stock for an inventoried batch/serial/location-tracked product. Available stock is the stock-on-hand less committed stock (i.e. stock already allocated to sales orders excluding the order identified by exclOrderSeqNum).