Version 23.2 Cambiado collection_assign a String.
This commit is contained in:
parent
d28ee67bc2
commit
88ecc0209e
|
@ -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"
|
||||
|
|
|
@ -178,7 +178,7 @@ interface VerdnaturaService {
|
|||
@POST("almacennew/collection_assign")//NO SALIX
|
||||
fun collection_assign(
|
||||
):
|
||||
Call<Any>
|
||||
Call<String>
|
||||
|
||||
@POST("almacennew/operator_getItemPackingType")//NO SALIX
|
||||
fun operator_getItemPackingType(
|
||||
|
|
|
@ -765,6 +765,7 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
|||
|
||||
override fun onSuccess(response: Response<Any>) {
|
||||
super.onSuccess(response)
|
||||
|
||||
_responseIncQuantity.value =
|
||||
ResponseItemVO(isError = false, response = response.message().toString())
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@ class SacadorViewModel(val context: Context) : BaseViewModel(context) {
|
|||
fun collection_assign() {
|
||||
silex.collection_assign().enqueue(
|
||||
object :
|
||||
SilexCallback<Any>(context) {
|
||||
SilexCallback<String>(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<Any>) {
|
||||
override fun onSuccess(response: Response<String>) {
|
||||
if (response.body() != null) {
|
||||
_response.value =
|
||||
ResponseItemVO(isError = false, response = response.body()!!.toString())
|
||||
|
|
Loading…
Reference in New Issue