Skip to content

Fleet ​

The fleet is CBS's inventory of vehicles available for rental. Each car belongs to a car category (model/variant grouping) and is assigned to a rental class (pricing tier). Availability, condition, and insurance are all tracked per vehicle.


Car record fields ​

FieldDescription
car_idUnique vehicle identifier (UUID)
make / make_idManufacturer (e.g. Honda / honda)
model / model_idModel name (e.g. Fit / fit)
yearModel year (e.g. 2017)
body_styleBody type (e.g. Sedan, SUV, Hatchback)
colorVehicle colour
engine_numberEngine serial number
chasis_numberChassis/VIN number
registration_certificate_numberRegistration cert number (licence plate link)
fitness_certificate_numberRoadworthiness / fitness cert number
insurance_certificate_numberInsurance policy certificate number
car_category_idLinks the car to a category/rental class
avatar_urlPrimary photo of the vehicle
contact_idLinks to an affiliate or contact record

Car categories and rental classes ​

Cars are grouped into rental classes (Economy, Mid-size, Full-size, SUV, etc.). When a customer books a class, any available car within that class can be assigned to their booking.

  • Rental class sets the pricing tier and insurance plan options.
  • Car category organises makes/models into those tiers.
  • A car's car_category_id determines which rental class it can be attached to.

When creating a booking, staff select the rental class in Step 3 of the wizard. The specific car is attached afterward via Car & Rental Class → Manage Car on the booking edit page.


Attaching a car to a booking ​

After the booking is created:

  1. On the booking edit page, click Car & Rental Class → Manage Car.
  2. The dialog shows all available cars for the booking's rental class (filtered by availability for the trip dates).
  3. Click a car tile to select it.
  4. Click Save — the car is now reserved for that booking.

If the customer requests a specific car, search or scroll to find it and select it. If it's unavailable for those dates, CBS will show it as booked.


Switching a car mid-booking ​

If the original car needs to be changed after pickup (breakdown, upgrade request, etc.):

  1. On the Bookings list, select Switch Car from the action menu, or click Trip & Extensions → Switch Car on the booking edit page. Bookings list
  2. In the Switch Car wizard (Step 1: End Time), select the end time for the current vehicle. Select End TimeDate Selected
  3. Proceed to Step 2: Review Booking to check current trip details. Review Booking
  4. In Step 3: Select Vehicle, choose the replacement rental class and specific vehicle. Select VehicleRental Class SelectedCar Selected
  5. In Step 4: Fees and Rates, review the adjusted rates and prorated fees for the switch. Fees and Rates
  6. In Step 5: Submit, confirm and finalize the switch. Submit Switch
  7. Once submitted, CBS records the switch_car_end_time, switch_car_original_duration, and switch_car_original_total on the trip, automatically prorating the value. After SubmitFinal Booking State
  8. A new checklist may need to be completed for the replacement vehicle.

Vehicle inspection checklist ​

The checklist captures the condition of the car at pickup (check-out) and return (check-in):

  1. On the booking edit page, click Car & Rental Class → Manage Checklist.
  2. Tick all condition checkboxes for the vehicle.
  3. Fill in the check-out notes for each area.
  4. Upload photos: front, left, right, rear.
  5. Click Next then Submit & Create check to save.

If a signing notification appears after submission, dismiss it — the checklist is still saved.


Car availability & auto-assignment ​

Availability rules ​

A car is considered strictly available for a booking if all of the following conditions are met:

  1. Approval & Activation: approved === 1, active === 1, and archived !== 1.
  2. Operational Status: The vehicle is not currently under maintenance, claim, accident, inactive, or decommissioned.
  3. No Overlapping Bookings (with Turnaround Buffer): The vehicle has no other active bookings overlapping with the expanded window [pickup_time - buffer, dropoff_time + buffer].
  4. Branch Matching: When branch matching is enabled, the vehicle's assigned branch (MINKGN or MINMBJ) must match the booking's pickup branch.

Automated assignment ​

  • On Booking Creation & TSD Import: When a booking is submitted or uploaded via TSD batch import with a rental_class specified and no car attached, CBS automatically evaluates available inventory and assigns the best-fit vehicle matching the rental class and branch.
  • Batch Import De-duplication: During multi-booking TSD CSV uploads, the assignment engine maintains an in-memory reservation pool, ensuring two bookings for the same rental class never receive the same vehicle.
  • Manual Batch Auto-Assignment: On the main Bookings dashboard, operators can tick the multi-select checkboxes on unassigned bookings and click Auto-Assign Cars to assign vehicles in bulk on demand.

Archived vehicles & historical integrity ​

  • When a car is archived or retired in RentCars or CBS (archived: 1):
    • It is immediately removed from the active auto-assignment pool and cannot be assigned to future bookings.
    • Historical preservation: Existing and past bookings previously assigned to this car remain completely intact. Contracts, invoices, and accounting attribution retain the vehicle's historical snapshot.
    • If an upcoming unfulfilled booking holds an archived vehicle, operators can use the Car & Rental Class dialog or Batch Auto-Assign to swap the booking to an active vehicle.

Bulk car insurance expenses ​

Each month, CBS can automatically record an insurance expense per vehicle rather than entering them one by one.

Endpoint: POST /api/post-automate-car-insurance-expenses

Payload:

json
{
  "car_ids": ["car-uuid-1", "car-uuid-2"],
  "date": "2025-06-01",
  "credit_account_id": "business_operating_kingston"
}
  • car_ids — list of car UUIDs to create expenses for (one expense per car).
  • date — the accounting date for the expenses (first of the month is conventional).
  • credit_account_id — which chart-of-accounts account to credit (defaults to the business operating account if omitted).

This records the insurance cost per car for the month. It does not handle policy renewal dates or expiry alerts — those require a separate manual process.

If a bulk run needs to be reversed, use the task task__delete-current-month-insurance.js.


Fleet management checklist (monthly) ​

  • [ ] Confirm all vehicle fitness certificates are current (check fitness_certificate_number and expiry in the car record)
  • [ ] Confirm all insurance certificates are current (insurance_certificate_number)
  • [ ] Run the bulk insurance expense automation for the new month
  • [ ] Verify any cars that had maintenance are marked available again
  • [ ] Review the upcoming month's bookings to flag potential availability conflicts

Finding a car's current booking ​

From the Bookings list, filter or search by the car's registration plate or car_id. If you know the car is on a booking but can't find which one, contact an admin who can run a database query against bookings filtered by car.car_id.