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"
|
applicationId "es.verdnatura"
|
||||||
minSdkVersion 24 //21
|
minSdkVersion 24 //21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 152
|
versionCode 153
|
||||||
//versionName = "9.8Beta" version 148
|
//versionName = "9.8Beta" version 148
|
||||||
//versionName = "23.2Beta" 150
|
//versionName = "23.2Beta" 150
|
||||||
versionName = "23.2Beta"
|
versionName = "23.2Beta"
|
||||||
|
|
|
@ -178,7 +178,7 @@ interface VerdnaturaService {
|
||||||
@POST("almacennew/collection_assign")//NO SALIX
|
@POST("almacennew/collection_assign")//NO SALIX
|
||||||
fun collection_assign(
|
fun collection_assign(
|
||||||
):
|
):
|
||||||
Call<Any>
|
Call<String>
|
||||||
|
|
||||||
@POST("almacennew/operator_getItemPackingType")//NO SALIX
|
@POST("almacennew/operator_getItemPackingType")//NO SALIX
|
||||||
fun operator_getItemPackingType(
|
fun operator_getItemPackingType(
|
||||||
|
|
|
@ -765,6 +765,7 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Any>) {
|
override fun onSuccess(response: Response<Any>) {
|
||||||
super.onSuccess(response)
|
super.onSuccess(response)
|
||||||
|
|
||||||
_responseIncQuantity.value =
|
_responseIncQuantity.value =
|
||||||
ResponseItemVO(isError = false, response = response.message().toString())
|
ResponseItemVO(isError = false, response = response.message().toString())
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ class SacadorViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
fun collection_assign() {
|
fun collection_assign() {
|
||||||
silex.collection_assign().enqueue(
|
silex.collection_assign().enqueue(
|
||||||
object :
|
object :
|
||||||
SilexCallback<Any>(context) {
|
SilexCallback<String>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_response.value =
|
_response.value =
|
||||||
ResponseItemVO(
|
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) {
|
if (response.body() != null) {
|
||||||
_response.value =
|
_response.value =
|
||||||
ResponseItemVO(isError = false, response = response.body()!!.toString())
|
ResponseItemVO(isError = false, response = response.body()!!.toString())
|
||||||
|
|
Loading…
Reference in New Issue