refs #6964 feat:stopWarnings&checking

This commit is contained in:
Sergio De la torre 2024-04-23 08:04:40 +02:00
parent cacd7d3fbb
commit 4636968674
2 changed files with 32 additions and 1 deletions

View File

@ -395,10 +395,15 @@ class UbicadorFragmentNew(
private fun customDialogActionParking() {
parking = customDialogInput.getValue()
viewModel.hasItemOlder(
/* tarea 6964
viewModel.hasItemOlder(
shelvingFk, customDialogInput.getValue(),
action = Action.PARKINEAR
)*/
viewModel.setParking(
shelvingFk, customDialogInput.getValue()
)
customDialogInput.dismiss()
}
@ -587,6 +592,11 @@ class UbicadorFragmentNew(
override fun onVisibleClickListener(item: ItemUbicador) {
if (!isAutoSelf) {
if (item.isChecked == 0) {
viewModel.updateIsChecked(itemShelvingFk = item.id)
}
showAddItemNew(
itemUbicador = item, isEditItem = true
)
@ -852,11 +862,15 @@ class UbicadorFragmentNew(
private fun customDialogTransferAction(item: ItemUbicador) {
if (customDialogInput.getValue().isNotEmpty()) {
/*tearea 6964
viewModel.hasItemOlder(
shelvingFkIn = shelvingFk,
shelvingFkOut = customDialogInput.getValue(),
itemFk = item.id,
action = Action.TRANSFERIR
)*/
viewModel.itemShelvingTransfer(
item.id, customDialogInput.getValue()
)
listItems.remove(item)
adapter!!.notifyDataSetChanged()

View File

@ -354,6 +354,23 @@ class UbicadorViewModel(val context: Context) : BaseViewModel(context) {
})
}
fun updateIsChecked(
itemShelvingFk: Int
) {
salix.itemShelvingUpdate(
id = itemShelvingFk,
params = hashMapOf("isChecked" to 1)
).enqueue(object : SalixCallback<Any>(context) {
override fun onSuccess(response: Response<Any>) {
_response.value = ResponseItemVO(isError = false, response = response.message())
}
})
}
fun shelvingChangeSalix(
shelvingFkIn: String, shelvingFkOut: String