Appearance
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
| Field | Description |
|---|---|
| car_id | Unique vehicle identifier (UUID) |
| make / make_id | Manufacturer (e.g. Honda / honda) |
| model / model_id | Model name (e.g. Fit / fit) |
| year | Model year (e.g. 2017) |
| body_style | Body type (e.g. Sedan, SUV, Hatchback) |
| color | Vehicle colour |
| engine_number | Engine serial number |
| chasis_number | Chassis/VIN number |
| registration_certificate_number | Registration cert number (licence plate link) |
| fitness_certificate_number | Roadworthiness / fitness cert number |
| insurance_certificate_number | Insurance policy certificate number |
| car_category_id | Links the car to a category/rental class |
| avatar_url | Primary photo of the vehicle |
| contact_id | Links 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_iddetermines 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:
- On the booking edit page, click Car & Rental Class → Manage Car.
- The dialog shows all available cars for the booking's rental class (filtered by availability for the trip dates).
- Click a car tile to select it.
- 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.):
- On the Bookings list, select Switch Car from the action menu, or click Trip & Extensions → Switch Car on the booking edit page.

- In the Switch Car wizard (Step 1: End Time), select the end time for the current vehicle.


- Proceed to Step 2: Review Booking to check current trip details.

- In Step 3: Select Vehicle, choose the replacement rental class and specific vehicle.



- In Step 4: Fees and Rates, review the adjusted rates and prorated fees for the switch.

- In Step 5: Submit, confirm and finalize the switch.

- Once submitted, CBS records the
switch_car_end_time,switch_car_original_duration, andswitch_car_original_totalon the trip, automatically prorating the value.

- 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):
- On the booking edit page, click Car & Rental Class → Manage Checklist.
- Tick all condition checkboxes for the vehicle.
- Fill in the check-out notes for each area.
- Upload photos: front, left, right, rear.
- 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:
- Approval & Activation:
approved === 1,active === 1, andarchived !== 1. - Operational Status: The vehicle is not currently under
maintenance,claim,accident,inactive, ordecommissioned. - No Overlapping Bookings (with Turnaround Buffer): The vehicle has no other active bookings overlapping with the expanded window
[pickup_time - buffer, dropoff_time + buffer]. - Branch Matching: When branch matching is enabled, the vehicle's assigned branch (
MINKGNorMINMBJ) 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_classspecified 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_numberand 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.