Merge branch 'main' into codex/sort-product-list-alphabetically-z5figo

This commit is contained in:
beatz174-bit
2025-11-23 15:15:30 +10:00
committed by GitHub
4 changed files with 169 additions and 7 deletions
+4 -2
View File
@@ -89,7 +89,9 @@ export const ActivePickListScreen = () => {
}, [allItemsPicked, showPicked]);
const visibleItems = useMemo(() => {
let filteredItems = showPicked ? items : items.filter((item) => item.status !== 'picked');
let filteredItems = showPicked
? sortedItems
: sortedItems.filter((item) => item.status !== 'picked');
if (itemFilter === 'cartons') {
return filteredItems.filter((item) => item.is_carton);
@@ -308,7 +310,7 @@ export const ActivePickListScreen = () => {
<PickItemRow
key={item.id}
item={item}
product={products.find((p) => p.id === item.product_id)}
product={productMap.get(item.product_id)}
onIncrementQuantity={() => handleIncrementQuantity(item.id)}
onDecrementQuantity={() => handleDecrementQuantity(item.id)}
onToggleCarton={() => handleToggleCarton(item.id)}