feat refactor Ubicador #refs 6413

This commit is contained in:
Sergio De la torre 2024-05-28 10:48:37 +02:00
parent aa00a6343f
commit fcb351c7d8
1 changed files with 13 additions and 20 deletions

View File

@ -149,22 +149,15 @@ class UbicadorFragmentNew(
}
if (!isChecked) {
listLocalItems.clear()
listIcons.remove(iconReset)
binding.mainToolbar.toolbarIcons.adapter!!.notifyItemRemoved(
listIcons.indexOf(
iconReset
)
)
listIcons.removeAt(listIcons.size-1)
binding.mainToolbar.toolbarIcons.adapter!!.notifyItemRemoved(listIcons.size)
} else {
listIcons.add(iconReset)
binding.mainToolbar.toolbarIcons.adapter!!.notifyItemInserted(
listIcons.indexOf(
iconReset
)
)
binding.mainToolbar.toolbarIcons.adapter!!.notifyItemInserted(listIcons.size-1)
}
//binding.mainToolbar.toolbarIcons.adapter!!.notifyDataSetChanged()
}
}
@ -408,11 +401,11 @@ class UbicadorFragmentNew(
private fun customDialogActionParking() {
parking = customDialogInput.getValue()
/* tarea 6964
viewModel.hasItemOlder(
shelvingFk, customDialogInput.getValue(),
action = Action.PARKINEAR
)*/
//tarea 6964
/* viewModel.hasItemOlder(
shelvingFk, customDialogInput.getValue(),
action = Action.PARKINEAR
)*/
viewModel.setParking(
shelvingFk, customDialogInput.getValue()
)
@ -766,7 +759,7 @@ class UbicadorFragmentNew(
shelving = shelvingFk,
item = customDialogUbicador.getItemValue().toLong(),
quantity = customDialogUbicador.getVisibleValue()
.toIntOrNull()!! / customDialogUbicador.getPackingValue().toIntOrNull()!!,
.toIntOrNull()!!,
packing = customDialogUbicador.getPackingValue().toIntOrNull(),
warehouse = mobileApplication.dataStoreApp.readDataStoreKey(WAREHOUSEFK),
grouping = null
@ -880,8 +873,8 @@ class UbicadorFragmentNew(
private fun customDialogTransferAction(item: ItemUbicador) {
if (customDialogInput.getValue().isNotEmpty()) {
/*tearea 6964
viewModel.hasItemOlder(
/*tearea 6964*/
/*viewModel.hasItemOlder(
shelvingFkIn = shelvingFk,
shelvingFkOut = customDialogInput.getValue(),
itemFk = item.id,