This commit is contained in:
Phuoc Nguyen
2025-10-28 15:51:48 +07:00
parent e14ae56c3c
commit 0010446298
6 changed files with 352 additions and 39 deletions

View File

@@ -170,11 +170,18 @@ class _WarehouseSelectionPageState
return WarehouseCard(
warehouse: warehouse,
onTap: () {
// Select warehouse and navigate to operations
// Select warehouse and navigate directly to products page
ref.read(warehouseProvider.notifier).selectWarehouse(warehouse);
// Navigate to operations page
context.push('/operations', extra: warehouse);
// Navigate to products page with warehouse data
context.push(
'/products',
extra: {
'warehouse': warehouse,
'warehouseName': warehouse.name,
'operationType': 'import', // Default to import
},
);
},
);
},