The main change is the addition of vehicleId to the statebag of freshly purchased vehicles.
The generatePlate function has also been renamed, to a more descriptive name.
There is still a risk of generating a plate that is in the database. A SQL procedure for creating a vehicle could solve the problem.
Checklist
[x] I have personally loaded this code into an updated Qbox project and checked all of its functionality.
[X] My pull request fits the contribution guidelines & code conventions.
Description
Fixes https://github.com/Qbox-project/qbx_garages/issues/55
The main change is the addition of vehicleId to the statebag of freshly purchased vehicles. The generatePlate function has also been renamed, to a more descriptive name.
Checklist