Overview
The service ticket creation process (Hoja de Servicio) allows you to register new repair jobs with client information, device details, and work descriptions. The system includes smart client lookup, device catalog integration, and automatic folio generation.Prerequisites
- Permission:
servicios.crear(Create Services) - Active user account with appropriate role (Técnico or Administrador)
Step-by-Step Process
Navigate to the service ticket creation page from your main dashboard. The form is located at
/hoja-servicio.- The system will search for existing clients automatically
- Matching suggestions appear in a dropdown below the field
- Select an existing client to auto-fill their contact details
- Only numeric input is accepted
- This field is used for client lookup and duplicate detection
When you select an existing client from suggestions, their phone, address, and preferred serial number settings are automatically populated.
- Laptop
- Desktop Computer (PC)
- Printer
- Monitor
- Common brands: Apple, MSI, Lenovo, Acer, Dell, Ateck, Asus, HP
- Available models update based on selected brand
- Device specifications auto-populate when model is selected
- Enter the device’s serial number
- Or check “No quiero poner el numero de serie” to skip
You must either provide a serial number OR explicitly check the “skip serial number” option. The form will not submit without one of these choices.
// Auto-populated from model catalog if available
{
procesador: "Intel Core i5", // Processor
ram: "8 GB", // RAM
disco: "SSD 256 GB", // Storage
estadoPantalla: "Funciona bien",
estadoTeclado: "Funciona bien",
estadoMouse: "Funciona bien",
funciona: "Sí",
enciendeEquipo: "Sí",
contrasenaEquipo: "" // Optional password
}
Check “Rellenar caracteristicas despues” (Fill characteristics later) if you need to capture device specs after initial registration.
- This field uses fuzzy matching for duplicate detection
- Textarea auto-expands as you type
- Enter numeric value
- Or check “Precio se define después del mantenimiento” to set price later
Duplicate Detection
The system prevents duplicate service entries using:- Same phone number, device type, brand, and model
- Service is not in a final state (not “entregado”, “cancelado”, or “no_reparable”)
- Similar work description (normalized text matching)
Client Auto-Linking
When creating a service:- Existing Client Selected: Updates their record with latest info
- New Client: Creates a new client document automatically
- Client ID: Stored in
servicioIdfield for relationship tracking
Folio Generation
Each service receives a unique folio identifier:- Format varies by brand (e.g., “MSI/001”, “HP/042”)
- Stored in a separate
folioscollection for uniqueness guarantee - Cannot be changed after creation
- Used for service lookup in POS and status tracking
src/js/services/servicios_firestore.js:196-229
Best Practices
Use Client Lookup
Always search for existing clients before creating new ones to maintain clean data.
Complete Serial Numbers
Capture serial numbers when possible for warranty tracking and device identification.
Detailed Work Descriptions
Write clear work descriptions to avoid confusion and improve duplicate detection.
Verify Device Info
Confirm auto-populated specs match the actual device before submitting.
Troubleshooting
Client suggestions not appearing?- Ensure you’ve typed at least 3 characters
- Check that the client exists in the database
- Wait for the 300ms debounce delay
- Verify the brand and model combination exists in the CSV catalog
- Try manually entering specifications
- Review the existing service to confirm it’s truly a duplicate
- If it’s a different repair, modify the work description to be more specific
- Consider marking the old service as completed/delivered first
Related Workflows
- Managing Clients - Client record management
- Processing Sales - Collecting payment for completed services
- Permissions & Roles - Understanding the
servicios.crearpermission
