Add new vehicle
Last modified with commit 305c859 on
by Tjasa Simovic.
Clicking “Unesi vozilo” on the general vehicle inventory page opens a form where the following data is entered:
- Vehicle brand (Marka) - dropdown, mandatory. Register is preset and cannot be edited in the app.
- Type (Tip) - free text field, mandatory, for example “Golf 8 GTI”
- Registration plate (Registarska oznaka) - text field, mandatory
- Chassis number (Broj šasije) - text field, mandatory
- Color (Boja) - text field, mandatory
- Usage area (Vrsta korištenja) - radio selection, mandatory
- Purpose (Namen) - dropdown, mandatory, shown only when “Vozni park” is selected
- Status (Status) - dropdown, mandatory
Usage area options:
- Vozni park
- Događaji
Usage area determines where the vehicle is shown on the calendar in Vozni park.
Purpose options are predefined and entered by developers. Selected purpose determines how the vehicle is displayed on the Vozni park calendar.
Status options manually selectable by user:
- Aktivno
- Neispravno
Status “Zauzeto” is never manually selected. It is applied automatically by the system whenever the vehicle is currently assigned within either Events or Vozni park.
If user selects “Neispravno”, we show notification: “Vozilo neće biti dostupno za rezervacije dok se status ručno ne promijeni nazad u ‘Aktivno’.”
Vehicle cannot be set as “Neispravno” if it has active reservations currently or in the future. Brand manager should remove the vehicle from events / remove reservations, then the vehicle can be set as “Neispravno”.
Saving the form adds the vehicle to the general inventory. Vehicle is also shown on the calendar in Vozni park, and on the selection list of vehicles when an event is edited.