refs #7161 feat:changeItemTrash
This commit is contained in:
parent
91d1f520c4
commit
f86ae72cdb
|
@ -219,6 +219,13 @@ class InventaryFragment :
|
|||
item.nicho!!,
|
||||
false
|
||||
)
|
||||
//Tarea 7161
|
||||
/* viewModel.itemSetVisibleDiscard(
|
||||
item.itemFk!!.toInt(),
|
||||
mobileApplication.dataStoreApp.readDataStoreKey(WAREHOUSEFK),
|
||||
item.nicho!!,
|
||||
false
|
||||
)*/
|
||||
itemClicked = item
|
||||
customDialog.dismiss()
|
||||
}.setOkButtonTwo(getString(R.string.titleUbicator)) {
|
||||
|
|
|
@ -12,6 +12,7 @@ import es.verdnatura.presentation.base.BaseViewModel
|
|||
import es.verdnatura.presentation.base.getMessageFromAllResponse
|
||||
import es.verdnatura.presentation.base.nameofFunction
|
||||
import es.verdnatura.presentation.common.Event
|
||||
import es.verdnatura.presentation.common.ItemDiscardSalixShortage
|
||||
import es.verdnatura.presentation.common.ResponseItemVO
|
||||
import es.verdnatura.presentation.view.feature.calidad.model.BuyerListVO
|
||||
import es.verdnatura.presentation.view.feature.calidad.model.BuyerVO
|
||||
|
@ -139,6 +140,17 @@ class InventaryViewModel(val context: Context) : BaseViewModel(context) {
|
|||
}
|
||||
})
|
||||
}
|
||||
fun itemSetVisibleDiscard(
|
||||
itemFk: Int, warehouseFk: Int, newValue: Int, isTrash: Boolean
|
||||
) {
|
||||
|
||||
salix.setVisibleDiscard( ItemDiscardSalixShortage(itemFk, warehouseFk, newValue, null))
|
||||
.enqueue(object : SalixCallback<Any>(context) {
|
||||
override fun onSuccess(response: Response<Any>) {
|
||||
_response.value = ResponseItemVO(isError = false, response = response.message())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
fun departmentGetHasMistake() {
|
||||
salix.department_getHasMistake()
|
||||
|
|
Loading…
Reference in New Issue