The Vehicles screen holds the vehicles that belong to one customer. You will be able to see them, add a new one, fill in details from a VIN and keep each record correct.

Before you start #
You need the owner, manager, advisor or dispatcher role. Only the owner and manager see the Delete button.
Steps #
- Open Vehicles. The screen asks "Whose vehicles": find a customer by name, phone, email or plate and pick one. Opening the screen from a customer record's "Add or change vehicles" link picks that customer for you.
- Read the table: Vehicle, Ownership (Customer's), Plate (with its state), VIN, Odometer and Actions.
- To add a vehicle, fill in the form under "New vehicle": VIN, Plate, "Plate state", Year, Make, Model, Trim, Color, Odometer and Notes. Enter a VIN, a plate or a make, and check the year and odometer. Choose Add.
- To fill in details from a VIN, type the VIN and choose "Look up this VIN". The year, make, model and trim fill in, and the screen says "The VIN was read. Check the details before saving."
- To change a vehicle, choose Edit on its row. The form heading becomes "Change this vehicle". Edit the fields and choose Save, or Cancel to leave it as it was.
- To remove a vehicle, choose Delete on its row and confirm. The question reads "Delete this vehicle? A vehicle with any history cannot be deleted."
Good to know #
- The list always belongs to one customer. Pick another customer to see theirs.
- A save shows "Saved." and the table refreshes.
Technical details
- The list loads from
/customers/{id}/vehicles. A new vehicle posts to the same path, a change patches/vehicles/{id}and a delete uses/vehicles/{id}. The VIN lookup calls/vin/{vin}. - The lookup button works once the VIN has enough characters to read.
If something goes wrong #
- "Enter a VIN, a plate or a make, and check the year and odometer.": complete those fields.
- The VIN lookup shows a message: check the VIN for typing errors and try again, or type the details yourself.
- Delete is refused: a vehicle with history stays on file.