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)
|
||||
.enqueue(object : SilexCallback<Any>(context) {
|
||||
override fun onError(t: Throwable) {
|
||||
_responseinsert.value = ResponseItemVO(
|
||||
isError = true,
|
||||
errorMessage = getMessageFromAllResponse(nameofFunction(this), t.message!!)
|
||||
)
|
||||
}
|
||||
|
||||
.enqueue(object : SalixCallback<Any>(context) {
|
||||
override fun onSuccess(response: Response<Any>) {
|
||||
_responseinsert.value = ResponseItemVO(
|
||||
isError = false
|
||||
|
|
|
@ -13,7 +13,6 @@ import es.verdnatura.presentation.base.getMessageFromAllResponse
|
|||
import es.verdnatura.presentation.base.nameofFunction
|
||||
import es.verdnatura.presentation.common.Event
|
||||
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.SalesModifiedList
|
||||
import es.verdnatura.presentation.view.feature.collection.SalixSaleQuantity
|
||||
|
@ -316,17 +315,18 @@ class CollectionViewModel(val context: Context) : BaseViewModel(context) {
|
|||
buyFk: Long,
|
||||
isScanned: Boolean?
|
||||
) {
|
||||
salix.saleTrackingUpdate(SaleTrackingReplaceSalix(
|
||||
//Tarea 6276
|
||||
/* salix.saleTrackingUpdate(SaleTrackingReplaceSalix(
|
||||
saleFk,originalQuantity,code, isChecked != "0",buyFk,isScanned!!
|
||||
))
|
||||
/*silex.saleTrackingReplace(
|
||||
))*/
|
||||
silex.saleTrackingReplace(
|
||||
saleFk,
|
||||
originalQuantity,
|
||||
code,
|
||||
isChecked != "0",
|
||||
buyFk,
|
||||
isScanned!!
|
||||
)*/
|
||||
)
|
||||
.enqueue(object : SilexCallback<Any>(context) {
|
||||
override fun onError(t: Throwable) {
|
||||
_responseSaleReplace.value = ResponseItemVO(
|
||||
|
|
Loading…
Reference in New Issue