diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorViewModel.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorViewModel.kt index 0eaf054d..5f98abd1 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorViewModel.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/ubicador/fragment/UbicadorViewModel.kt @@ -195,8 +195,8 @@ class UbicadorViewModel(val context: Context) : BaseViewModel(context) { ) { salix.getInfoFromBuyId( id = buyFk, - ).enqueue(object : SalixCallback(context) { - override fun onSuccess(response: Response) { + ).enqueue(object : SalixCallback(context) { + override fun onSuccess(response: Response) { itemShelvingUpdateFromBuy(itemShelvingFk, response.body().let { it as ItemBuy }) } @@ -287,7 +287,7 @@ class UbicadorViewModel(val context: Context) : BaseViewModel(context) { ) { salix.itemShelvingsUpdate( where = JsonObject().apply { addProperty("id", itemShelvingFk) }, - JsonObject().apply { + params = JsonObject().apply { addProperty("itemFk", itemBuy.itemFk) addProperty("buyFk", itemBuy.id) addProperty("grouping", itemBuy.grouping)