diff --git a/src/screens/ActivePickListScreen.tsx b/src/screens/ActivePickListScreen.tsx index b177ea5..b1cd0d5 100644 --- a/src/screens/ActivePickListScreen.tsx +++ b/src/screens/ActivePickListScreen.tsx @@ -115,6 +115,16 @@ export const ActivePickListScreen = () => { await db.pickItems.delete(itemId); }; + const handleMarkAllPicked = async () => { + setShowPicked(true); + const timestamp = Date.now(); + await Promise.all( + items.map((item) => + db.pickItems.update(item.id, { status: 'picked', updated_at: timestamp }), + ), + ); + }; + const addOrUpdateItem = async (product: Product) => { if (!id) return; @@ -241,16 +251,20 @@ export const ActivePickListScreen = () => { } label="Cartons" /> } label="Units" /> - setShowPicked(event.target.checked)} - /> - } - label="Show picked" - sx={{ ml: { xs: 0, sm: 2 } }} - /> + + setShowPicked(event.target.checked)} + /> + } + label="Show picked" + /> + +