Returns batches list ordered by batch valuation (FIFO, FEFO or LIFO).
List of objects.
'Get all batches from reference VUK01.
'The list will contain only active batches with stock greater then 0
'This list will be ordered by FIFO
Dim VUK01 as StVO = SDK.Query.getEntityData(of StVO)(New FilterItem(St.ref, Comparison.Equal, "'VUK01'")).firstOrDefault()
Dim lots As List(Of Object) = SDK.Batches.SearchLotItems(VUK01.ref, "", 0, True, True, VUK01.lottype)