Overview
Barcode scanning is the primary input method in EnvaSistema. The app is designed to work with warehouse handheld terminals equipped with physical scanner buttons, enabling fast and accurate inventory operations.Scanning Interface
Most inventory operations use theScanningLayout component, which provides a consistent scanning experience across all operation types.
Interface Elements
Operation Header
Shows the operation title and subtitle with color-coding:
- Blue (
#0061A6): Standard operations (receipts, sales) - Red (
#B71C1C): Destructive operations (waste/merma) - Gray (
#455A64): Transformations
Information Card
Displays operation-specific instructions with:
- Colored left accent strip
- Info/radar icon
- Clear instruction text
How to Scan Barcodes
Position Your Terminal
Hold the terminal comfortably with one hand, ensuring the scanner window is unobstructed.
Aim at Barcode
Point the scanner at the barcode from 6-12 inches away (15-30 cm). The barcode should be clearly visible.
Press Scanner Button
Press the physical scanner button on the side of the terminal. You’ll see:
- A red laser beam or LED light
- An audible beep when successful
- The scan counter increment
Scanning Layout Implementation
The scanning interface is implemented inScanningLayout.kt:28-196:
Scan Counter
The scan count is tracked using Compose state (ScanningLayout.kt:44):
ScanningLayout.kt:147-155):
Scan Area Design
The scan area (ScanningLayout.kt:103-138) provides visual feedback:
The scan area shows a QR code scanner icon and clear instructions in Spanish, making it easy for new users to understand the scanning process.
Operation-Specific Scanning
Different operations use customized scanning parameters:Standard Receipt Operations
Destructive Operations (Waste/Merma)
Package Operations
Save Button Behavior
The save button has intelligent enable/disable logic (ScanningLayout.kt:45):
Information Cards
Each scanning screen includes a color-coded information card (ScanningLayout.kt:72-98):
Blue Cards
Standard operations with helpful tips
Red Cards
Critical warnings for destructive operations
Green Cards
Success confirmations or positive actions
Gray Cards
Neutral information or transformation operations
Best Practices
Extra Content Support
Some operations include additional input fields before the scanning area (ScanningLayout.kt:66-70):
- Invoice number input field
- Customer name/ID field
- Return reason selection
Troubleshooting
Scanner doesn't beep or scan
Scanner doesn't beep or scan
Possible causes:
- Low battery on the terminal
- Scanner hardware malfunction
- Barcode format not supported
- Charge the terminal
- Restart the device
- Try a different barcode
- Contact IT support
Counter doesn't increment
Counter doesn't increment
Possible causes:
- Scan was unsuccessful (no beep)
- App interface frozen
- Listen for the beep confirmation
- Scan the item again
- If frozen, return to home screen and restart the operation
Save button stays gray
Save button stays gray
Scanned wrong items
Scanned wrong items
Solution: Currently, you must:
- Use the back button to cancel the operation
- Start a new operation
- Scan the correct items
Scanning Workflow Example
Here’s a typical workflow for Producción Nueva (New Production Receipt):Scan Items
- Point scanner at first barcode
- Press scanner button
- Wait for beep
- Verify counter shows “1”
- Repeat for all items
Color Coding Reference
| Operation Type | Primary Color | Hex Code | Usage |
|---|---|---|---|
| Standard (Ingresos/Salidas) | Blue | #0061A6 | Most operations |
| Destructive (Merma) | Red | #B71C1C | Waste/destruction |
| Transformations | Gray | #455A64 | Disassembly |
| Information Background | Light Blue | #E1F5FE | Info cards |
| Warning Background | Light Red | #FFEBEE | Warning cards |
Next Steps
Navigation
Learn about app navigation and menu structure
Shift Management
Understand shift information and user sessions