Scans
π― Overviewβ
The Scans Page provides a comprehensive view and management interface for all scanning operations within projects. This interface displays scan records in a tabular format with advanced filtering, sorting, and pagination capabilities. It serves as the central hub for monitoring scanning activities, reviewing scan data, and managing scan records lifecycle including deletion/restoration.
π Access Requirementsβ
π₯ Required Roles & Permissionsβ
- View Scans:
scans.getpermission - Create Scans:
scans.insertpermission - Edit Scans:
scans.updatepermission - Delete/Restore Scans: Administrative access to project
π Permission Scopeβ
- Project-Based: Access limited to scans within user's assigned projects
- Role-Based Filtering: Different views based on user permissions
- Session Validation: Access tied to active zone sessions
π» Interface Layoutβ
π Main Table Viewβ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π [Search] [Zone Filter] [Date Range] [Status] [ActionsβΌ] β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β π Match Code | Zone | User | Count | Price | Date | Status β
β βββββββββββββββΌβββββββΌβββββββΌββββββββΌββββββββΌβββββββΌβββββββββ€
β β ABC123 β A1 β John β 5 β β¬12.50β 14:30β β β
β β DEF456 β B2 β Mary β 3 β β¬8.75 β 14:25β β β
β β GHI789 β A1 β John β 2 β β¬5.00 β 14:20β β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β π [β Prev] Page 1 of 15 [Next βΆ] | π 150 total scans β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ποΈ Tab Navigationβ
- π Active Scans: Current scan records
- ποΈ Deleted Scans: Trashed scan records (if accessible)
ποΈ Filter Controlsβ
- π Match Code Search: Real-time text filtering
- π’ Zone Selection: Filter by warehouse zones
- π€ User Filter: Filter by scanning operators
- π Date Range: Custom date filtering
- π° Price Range: Filter by value ranges
- β Status Filter: Verified/Unverified scans
β Key Featuresβ
π Data Displayβ
- Dynamic Columns: Configurable based on ScanFlowConfig
- Real-time Updates: Live data synchronization
- Sortable Headers: Click to sort by any column
- Responsive Design: Adapts to mobile/tablet screens
π Advanced Filteringβ
- Multi-criteria Search: Combine multiple filters
- Regex Support: Pattern matching in match codes
- Case-insensitive Search: Flexible text matching
- Persistent Filters: Maintains filter state during session
π Pagination & Performanceβ
- Configurable Page Size: Adjust records per page
- Efficient Loading: Server-side pagination
- Progress Indicators: Loading states for operations
- Lazy Loading: Optimized for large datasets
π― Scan Operationsβ
- Quick Edit: In-line editing capabilities
- Bulk Operations: Multi-select actions
- Verification Status: Track scan validation
- Revision History: View scan modification history
π Usage Guideβ
π Viewing Scansβ
- Navigate to Scans page via main navigation
- Select Project from project dropdown (if multiple)
- Apply Filters to narrow down results:
- Enter match code in search box
- Select specific zones from dropdown
- Choose date range using date pickers
- Filter by verification status
- Sort Data by clicking column headers
- Navigate Pages using pagination controls
π Searching & Filteringβ
- Text Search:
π Search: "ABC" β Shows all scans with "ABC" in match code - Zone Filtering:
π’ Zone: "Warehouse A" β Shows scans from specific zone - Date Range:
π From: 2024-01-01 To: 2024-01-31 β Shows January scans - Combined Filters:
π "PRD" + π’ "Zone A" + β "Verified" β Specific subset
π Understanding Scan Dataβ
- Match Code: Product/item identifier from scanning
- Zone Code: Location where scan was performed
- Warehouse Code: Facility identifier
- Count: Quantity scanned
- Price: Unit value (if configured)
- Created By: Original scanning operator
- Modified By: Last user to edit scan
- Verified By: User who performed verification
- Status Indicators:
- β Verified: Scan confirmed accurate
- β οΈ Unverified: Awaiting verification
- π Modified: Scan has been edited
- π Revision: Shows revision number
ποΈ Managing Deleted Scansβ
- Switch to Deleted Tab to view trashed scans
- Review deleted scan records
- Restore scans if needed (admin only)
- Permanent Deletion (admin only, if configured)
β οΈ Troubleshootingβ
π« Common Issuesβ
β "No scans found"
- β Check filters: Clear or adjust filter criteria
- β Verify project: Ensure correct project selected
- β Check permissions: Confirm scans.get permission
β "Loading forever"
- β Network connection: Check internet connectivity
- β Server status: Verify server accessibility
- β Browser cache: Clear cache and refresh
β "Filter not working"
- β Syntax check: Ensure proper search syntax
- β Case sensitivity: Verify case-insensitive matching
- β Data availability: Confirm data exists for criteria
β "Permission denied"
- β Role assignment: Contact admin for proper roles
- β Project access: Verify project membership
- β Session validity: Re-login if session expired
π± Mobile/Responsive Issuesβ
- Horizontal Scrolling: Normal for tables on small screens
- Touch Gestures: Swipe to scroll table content
- Filter Collapse: Filters may collapse on mobile
- Pagination Controls: May stack vertically on small screens
π Performance Optimizationβ
- Use Specific Filters: Narrow down large datasets
- Date Range Limits: Avoid querying entire history
- Page Size Adjustment: Reduce if loading slowly
- Clear Cache: Refresh browser if data seems stale
π οΈ Technical Detailsβ
π Data Structureβ
// Scan Record Structure
{
_id: "scanId123",
sessionId: "session456",
originalSessionId: "originalSession789",
order: 1,
matchCode: "ABC123",
count: 5,
match: {
code: "ABC123",
description: "Product ABC",
price: 12.50,
// ... additional match fields
},
isVerified: true,
verifyReason: "Quality check passed",
addMarkerBelow: false,
modifiedAt: new Date(),
projectId: "project123",
qmChecked: false,
source: "Web",
deleted: false,
// Computed fields
createdBy: { username: "john.doe" },
modifiedBy: { username: "jane.smith" },
verifiedBy: { username: "supervisor" },
warehouseCode: "WH001",
zoneCode: "A1",
revision: 1
}
π§ Configuration Dependenciesβ
- ScanFlowConfig: Defines visible columns and validation rules
- VerifyReasons: Configures required verification reasons
- Project Settings: Controls access and functionality
- Role Permissions: Determines available operations
π‘ Real-time Featuresβ
- Reactive Subscriptions: Auto-updates when data changes
- Live Filters: Instant search results
- Session Monitoring: Tracks user session state
- Progress Indicators: Shows operation status
ποΈ Filter Implementationβ
// Filter Structure
{
matchCode: "ABC", // Text search
match: { // Match field filtering
description: "Product",
price: 12.50
},
zoneId: "zone123", // Zone filtering
userId: "user456", // User filtering
startDate: "2024-01-01", // Date range start
endDate: "2024-01-31", // Date range end
isVerified: true, // Verification status
deleted: false // Deletion status
}
π Security Featuresβ
- Role-based Access: Enforced at method level
- Project Isolation: Users see only assigned projects
- Session Validation: Active session required for operations
- Input Validation: All parameters validated
- Audit Trail: Revision history maintained
π Performance Considerationsβ
- Server-side Pagination: Efficient for large datasets
- Indexed Queries: Optimized database access
- Selective Field Loading: Minimizes data transfer
- Caching Strategy: Reduces redundant queries
- Bulk Operations: Efficient multi-record updates
This documentation covers the comprehensive scan management interface. For additional assistance or advanced configuration options, consult with your system administrator.