diff --git a/src/screens/ActivePickListScreen.tsx b/src/screens/ActivePickListScreen.tsx
index f4d4c77..21f80b7 100644
--- a/src/screens/ActivePickListScreen.tsx
+++ b/src/screens/ActivePickListScreen.tsx
@@ -112,6 +112,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;
@@ -221,16 +231,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"
+ />
+
+