diff --git a/app/build.gradle b/app/build.gradle index c7403ac2..ea320a95 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,7 +13,7 @@ android { applicationId "es.verdnatura" minSdkVersion 24 //21 targetSdkVersion 30 - versionCode 152 + versionCode 153 //versionName = "9.8Beta" version 148 //versionName = "23.2Beta" 150 versionName = "23.2Beta" diff --git a/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt b/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt index f73b039e..cf14f573 100644 --- a/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt +++ b/app/src/main/java/es/verdnatura/domain/VerdnaturaService.kt @@ -178,7 +178,7 @@ interface VerdnaturaService { @POST("almacennew/collection_assign")//NO SALIX fun collection_assign( ): - Call + Call @POST("almacennew/operator_getItemPackingType")//NO SALIX fun operator_getItemPackingType( diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionViewModel.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionViewModel.kt index 10f9c4c6..4a0fbcac 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionViewModel.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/collection/fragment/CollectionViewModel.kt @@ -765,6 +765,7 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) { override fun onSuccess(response: Response) { super.onSuccess(response) + _responseIncQuantity.value = ResponseItemVO(isError = false, response = response.message().toString()) } diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/sacador/fragment/SacadorViewModel.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/sacador/fragment/SacadorViewModel.kt index 18eaae53..b96f8c12 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/sacador/fragment/SacadorViewModel.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/sacador/fragment/SacadorViewModel.kt @@ -78,7 +78,7 @@ class SacadorViewModel(val context: Context) : BaseViewModel(context) { fun collection_assign() { silex.collection_assign().enqueue( object : - SilexCallback(context) { + SilexCallback(context) { override fun onError(t: Throwable) { _response.value = ResponseItemVO( @@ -90,7 +90,7 @@ class SacadorViewModel(val context: Context) : BaseViewModel(context) { ) } - override fun onSuccess(response: Response) { + override fun onSuccess(response: Response) { if (response.body() != null) { _response.value = ResponseItemVO(isError = false, response = response.body()!!.toString())