PreControl quitar agrupaciones.

This commit is contained in:
Sergio De la torre 2023-06-14 07:57:34 +02:00
parent ea510de356
commit 863957812b
1 changed files with 6 additions and 6 deletions

View File

@ -1141,17 +1141,17 @@ class CollectionFragmentPreChecker(
sales = salesList.sortedWith(compareBy({ it.saleOrder }))
myGroupList = groupSaleGroup(salesList).sortedWith(compareBy({ it.saleOrder }))
// myGroupList = groupSaleGroup(salesList).sortedWith(compareBy({ it.saleOrder }))
if (type == CONTROLADOR || type == PRECHECKER) {
sales = salesList.sortedWith(compareBy({ it.picked }))
myGroupList = groupSaleGroup(salesList).sortedWith(compareBy({ it.picked }))
// myGroupList = groupSaleGroup(salesList).sortedWith(compareBy({ it.picked }))
}
saleAdapter =
SaleAdapter(
myGroupList,
sales,
pasillerosItemClickListener!!,
object : OnQuantityClickListener {
@ -1499,19 +1499,19 @@ class CollectionFragmentPreChecker(
if (sales[position].isPrepared == "1") {
sales[position].pickedQuantity = sales[position].quantity!!
}
checkStateParent()
// checkStateParent()
} else if (type == CONTROLADOR) {
sales[position].isControlled = if (sales[position].isControlled == "1") "0" else "1"
//En primera instancia coge el primer elemento hijo para realizar la copia y según se va interactuando con las sales ya se actualiza el
// estado del padre
checkStateParent()
// checkStateParent()
}
if (type == PRECHECKER) {
sales[position].isPreControlled =
if (sales[position].isPreControlled == "1") "0" else "1"
checkStateParent()
// checkStateParent()
}