refs #6276: prepare Salixback
This commit is contained in:
parent
89cbca08c9
commit
b788e29663
|
@ -298,14 +298,7 @@ class ItemCardViewModel(var context: Context) : BaseViewModel(context) {
|
||||||
),
|
),
|
||||||
) {
|
) {
|
||||||
salix.uploadImage("catalog", itemFK, filePart)
|
salix.uploadImage("catalog", itemFK, filePart)
|
||||||
.enqueue(object : SilexCallback<Any>(context) {
|
.enqueue(object : SalixCallback<Any>(context) {
|
||||||
override fun onError(t: Throwable) {
|
|
||||||
_responseinsert.value = ResponseItemVO(
|
|
||||||
isError = true,
|
|
||||||
errorMessage = getMessageFromAllResponse(nameofFunction(this), t.message!!)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onSuccess(response: Response<Any>) {
|
override fun onSuccess(response: Response<Any>) {
|
||||||
_responseinsert.value = ResponseItemVO(
|
_responseinsert.value = ResponseItemVO(
|
||||||
isError = false
|
isError = false
|
||||||
|
|
|
@ -13,7 +13,6 @@ import es.verdnatura.presentation.base.getMessageFromAllResponse
|
||||||
import es.verdnatura.presentation.base.nameofFunction
|
import es.verdnatura.presentation.base.nameofFunction
|
||||||
import es.verdnatura.presentation.common.Event
|
import es.verdnatura.presentation.common.Event
|
||||||
import es.verdnatura.presentation.common.ResponseItemVO
|
import es.verdnatura.presentation.common.ResponseItemVO
|
||||||
import es.verdnatura.presentation.common.SaleTrackingReplaceSalix
|
|
||||||
import es.verdnatura.presentation.view.feature.collection.ItemVO
|
import es.verdnatura.presentation.view.feature.collection.ItemVO
|
||||||
import es.verdnatura.presentation.view.feature.collection.SalesModifiedList
|
import es.verdnatura.presentation.view.feature.collection.SalesModifiedList
|
||||||
import es.verdnatura.presentation.view.feature.collection.SalixSaleQuantity
|
import es.verdnatura.presentation.view.feature.collection.SalixSaleQuantity
|
||||||
|
@ -316,17 +315,18 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
||||||
buyFk: Long,
|
buyFk: Long,
|
||||||
isScanned: Boolean?
|
isScanned: Boolean?
|
||||||
) {
|
) {
|
||||||
salix.saleTrackingUpdate(SaleTrackingReplaceSalix(
|
//Tarea 6276
|
||||||
|
/* salix.saleTrackingUpdate(SaleTrackingReplaceSalix(
|
||||||
saleFk,originalQuantity,code, isChecked != "0",buyFk,isScanned!!
|
saleFk,originalQuantity,code, isChecked != "0",buyFk,isScanned!!
|
||||||
))
|
))*/
|
||||||
/*silex.saleTrackingReplace(
|
silex.saleTrackingReplace(
|
||||||
saleFk,
|
saleFk,
|
||||||
originalQuantity,
|
originalQuantity,
|
||||||
code,
|
code,
|
||||||
isChecked != "0",
|
isChecked != "0",
|
||||||
buyFk,
|
buyFk,
|
||||||
isScanned!!
|
isScanned!!
|
||||||
)*/
|
)
|
||||||
.enqueue(object : SilexCallback<Any>(context) {
|
.enqueue(object : SilexCallback<Any>(context) {
|
||||||
override fun onError(t: Throwable) {
|
override fun onError(t: Throwable) {
|
||||||
_responseSaleReplace.value = ResponseItemVO(
|
_responseSaleReplace.value = ResponseItemVO(
|
||||||
|
|
Loading…
Reference in New Issue