feat: refs#6869 ItemShelving_get
This commit is contained in:
parent
44053fa039
commit
ebf09db00d
|
@ -42,7 +42,12 @@ class BuscarItemViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
)
|
)
|
||||||
.enqueue(object : SalixCallback<List<ItemShelvings>>(context) {
|
.enqueue(object : SalixCallback<List<ItemShelvings>>(context) {
|
||||||
override fun onSuccess(response: Response<List<ItemShelvings>>) {
|
override fun onSuccess(response: Response<List<ItemShelvings>>) {
|
||||||
_itemShelvingsList.value = response.body()?.let { ItemShelvingsList(it) }
|
_itemShelvingsList.value = response.body()?.let {
|
||||||
|
val filteredList = it.filter { itemShelving ->
|
||||||
|
itemShelving.shelving.parking != null
|
||||||
|
}
|
||||||
|
ItemShelvingsList(filteredList)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue