Manuais
PHC GO Funções SDK - Batches
 

Batches


 
 

SearchLotItems


Description

Returns batches list ordered by batch valuation (FIFO, FEFO or LIFO).

Return Function

List of objects.

Parameters


Name Description Type
reference Article reference String
expression Filter batch name by this expression String
warehouse Warehouse number Integer
withStock Indicates if the list will contain only batches with stock Boolean
onlyActive Indicates if the list will contain only actives batches Boolean
orderType Batch valuation Enum PHCBusinessLayer.LotTypes (NONE, FIFO, FEFO, LIFO)

Example


'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)