Overview
The Customer Directory (Directorio de Clientes) is the central hub for managing all your business contacts. MotorDesk supports automatic data validation through API integration for Peruvian tax documents (RUC/DNI).Viewing Customers
The main customers page shows:- DOCUMENTO: Tax identification number (RUC/DNI/CE)
- CLIENTE / RAZÓN SOCIAL: Customer or business name
- CONTACTO: Phone and email
- VEHÍCULOS: Number of associated vehicles (clickable badge)
- ACCIONES: View, Edit, Delete buttons
Registering a New Customer
Open Registration Form
Click the REGISTRAR CLIENTE button (with Plus icon) at the top-right of the Customers page.A modal titled Nuevo Cliente will appear.
Select Document Type
Choose the appropriate Tipo de Documento:
- RUC: For companies or persons with registered businesses (11 digits)
- DNI: For individuals/natural persons (8 digits)
- CE: Carnet de Extranjería for foreign nationals
The document number field will automatically limit characters based on the selected type.
Enter and Validate Document Number
Type the Número de Documento in the text field.Automatic Validation (Recommended):
- Enter a valid RUC (11 digits) or DNI (8 digits)
- Click the Search icon button next to the document field
- Wait for the API to retrieve official data from SUNAT/RENIEC
- If successful, you’ll see a ✔ Validado (Validated) indicator
- Nombre o Razón Social (Name or Business Name)
- Dirección Fiscal (Registered Address)
Complete Customer Information
Fill in or verify the following fields:Auto-filled from API:
- Nombres o Razón Social: Individual name or company legal name
- Dirección Fiscal: Official registered address
- Teléfono: Contact phone number
- Email: Email address for notifications
API Document Validation
MotorDesk integrates with external APIs to validate Peruvian tax documents: Benefits:- ✅ Ensures data accuracy
- ✅ Reduces manual entry errors
- ✅ Gets official registered information
- ✅ Speeds up customer registration
- User enters RUC or DNI
- System calls
fetchDecolectaData()function - API returns official business/person data
- Form auto-populates with validated information
- Green checkmark (✔ Validado) confirms success
The API validation requires an active internet connection. In offline mode, you can still register customers manually.
Editing Customer Information
Click Edit Button
Click the Editar Datos button (Edit2 icon) in the Actions column.The modal title will change to Editar Cliente.
Modify Information
Update any fields that need changes. The form will be pre-filled with existing data.
Viewing Customer Details
Click the Ver Expediente button (Eye icon) to access:- Complete customer profile
- Associated vehicles list
- Invoice history
- Total sales statistics
- Contact information
Deleting a Customer
Search and Pagination
Search Functionality:- Real-time search as you type
- Searches across: document numbers and customer names
- Case-insensitive matching
- Partial match support
- Mostrar [5/10/20/50] registros: Select records per page
- Página X de Y: Current page indicator
- Anterior/Siguiente: Navigate between pages
- Mostrando X de Y registros: Shows current view count
Understanding Customer Fields
| Field | Description | Source |
|---|---|---|
| Tipo de Documento | RUC, DNI, or CE | User selection |
| Número de Documento | Tax ID or national ID | User entry + API |
| Nombre/Razón Social | Person or business name | API auto-fill or manual |
| Dirección Fiscal | Registered address | API auto-fill or manual |
| Teléfono | Contact phone | Manual entry |
| Email address | Manual entry | |
| Total Vehículos | Vehicle count | System calculated |
Empty State
If no customers match your search:- 🔍 Search icon appears
- “No se encontraron clientes.” message
- Clear search or adjust filters
Integration Points
Customer data connects to:- Invoice Creation: Select customer for billing
- Vehicle Management: Assign as owner or driver
- Reporting: Sales by customer analytics
- History Tracking: View all transactions per customer
Best Practices
- Always use API validation when registering Peruvian RUC/DNI documents
- Keep contact information current for communication
- Use complete business names to avoid confusion
- Verify addresses before creating invoices for delivery
- Check vehicle relationships before deleting customers
- Add email addresses for electronic invoice delivery
- Use the search function to avoid duplicate registrations
Offline Customer Registration
When working offline:- API validation won’t be available (search button disabled)
- You can still register customers manually
- All fields except API-validated ones work normally
- Data will be available immediately for local invoicing
- Changes sync when connection is restored
The system tracks which customer records were created offline vs. online for data quality purposes.
Next Steps
- Use registered customers to Create Invoices
- Link customers to vehicles in Fleet Management
- Learn about Offline Mode capabilities
