PreControl quitar agrupaciones.
This commit is contained in:
parent
ea510de356
commit
863957812b
|
@ -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()
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue