Vehicle Inspection Forms
After registering client information, the system generates individual inspection forms for each vehicle. Each form captures motorization type, ITV status, and observations.Overview
Vehicle inspection forms are dynamically generated based on the number of vehicles specified during client registration. Each form is numbered sequentially and includes all necessary fields to document the inspection results.Form Structure
Each vehicle form contains the following sections:Vehicle Identification
Each form displays a header with the vehicle number:The numbering helps you track which vehicle you’re inspecting and corresponds to the final report.
Select Motorization Type
Choose the engine type from four available options:
Available Motorization Options
- Diesel
- Gasolina
- Híbrido
- Eléctrico
🛢️ Diesel
- Radio button ID:
radio1{N} - Name:
motorizacion{N} - Value:
"Diesel" - Rate: 50€ per vehicle
The motorization selection is required for each vehicle. Rates are automatically calculated based on your selection.
Select ITV Status
Indicate whether the vehicle passed inspection:
ITV Status Options
✅ Aprobado
Vehicle passed the ITV inspection
- Radio button ID:
radio5{N} - Name:
aprobados{N} - Value:
"Aprobo"
❌ No Aprobado
Vehicle failed the ITV inspection
- Radio button ID:
radio6{N} - Name:
aprobados{N} - Value:
"NoAprobo"
Add Observations (Optional)
Enter detailed notes about the vehicle’s condition:
- Field ID:
observaciones{N} - Type: Textarea
- Max length: 250 characters
- Rows: 4
- Placeholder: “Ingrese observaciones sobre el estado del vehículo…”
- “Neumáticos desgastados, requieren reemplazo”
- “Sistema de frenos en buen estado”
- “Emisiones fuera de norma, requiere ajuste”
- “Luces delanteras con fisuras”
Pricing Structure
Inspection costs vary by motorization type:| Motorization | Icon | Rate per Vehicle |
|---|---|---|
| Diesel | 🛢️ | 50€ |
| Gasolina | ⛽ | 45€ |
| Híbrido | 🔋 | 35€ |
| Eléctrico | ⚡ | 30€ |
Form Validation
Before you can calculate results, the system validates all vehicle forms:Required Fields Check
Validation Error Messages
- Missing Motorization: “Por favor, seleccione la motorización para el vehículo .”
- Missing ITV Status: “Por favor, seleccione el estado ITV para el vehículo .”
Completing Multiple Vehicles
When inspecting multiple vehicles:- Work sequentially: Complete each vehicle form from top to bottom
- Use observations: Document any issues or notable conditions for each vehicle
- Double-check selections: Verify motorization and status before proceeding
- Scroll through forms: Each vehicle has its own distinct form section
Calculate Results Button
After filling out all vehicle forms, click the “Calcular Resultados” button:- Button ID:
calcular - Function:
calcularYMostrar() - Located at the bottom of all vehicle forms
- Validates all forms before processing
- Transitions to the results view
Data Processing
When you submit the forms, the system:- Validates all required fields
- Collects data from each vehicle form
- Stores information in
vehiculosDataarray:
- Calculates total cost based on motorization rates
- Generates the final inspection report
Technical Reference
Vehicle forms are created by:generarFormulariosVehiculos()- Generates all forms (script.js:44-51)crearFormularioVehiculo(numeroVehiculo)- Creates individual form HTML (script.js:58-102)validarFormulariosVehiculos()- Validates all forms (script.js:167-184)procesarDatosVehiculos()- Processes and stores data (script.js:189-204)
Next Steps
After completing all vehicle inspections and clicking “Calcular Resultados”:- The forms will be hidden with a smooth animation
- The results section will display with client info, ITV statuses, and totals
- You can export or print the final inspection report