Guide · Fleet and compliance

Pre-dispatch compliance gate for chauffeurs and vehicles

Use one gate before a chauffeur or vehicle is assigned for a pickup date. The gate checks certificate, permit, inspection and insurance expiry, the daily check for that date, out of service state, overdue service, days off and minimum gap. A run that fails any check stays flagged and is not dispatched.

Gap found in the current records

The chauffeur record stores certificate number and expiry. The vehicle record stores permit number and expiry and inspection expiry. The documents guide states that an insurance card is attached to the vehicle record so a manager can verify the card is current from the record. No field on the vehicle record stores the insurance expiry date. The data fields guide and the validation spec list permit expiry and inspection expiry as date fields, with no insurance expiry date field. A manager therefore cannot compare insurance expiry with the pickup date on the board, and a vehicle with an expired insurance card can pass the permit and inspection checks and be assigned.

What exists today

Certificate expiry on the chauffeur record. Permit expiry and inspection expiry on the vehicle record. An attached insurance card document on the vehicle record, with no expiry date field. Daily check result and check date. Out of service state with reason. Service flags by miles or months. Days off date. Minimum gap at 45 minutes by default and lead hours at 3 hours by default, from the saved scheduling settings.

What this specification adds

One new date field on the vehicle record, insurance expiry, read in the company timezone as year, month and day. The same assignment block rule as permit and inspection. A due soon flag for every expiry date. One board that sorts by nearest expiry and states the failed check in words on the row. No new sign in path, no new tenancy path and no new record type.

Fields read by the gate

Read each field on the named record. A blank field or a missing document is not a pass.

Chauffeur record

Name, phone, email, type, home vehicle, certificate number and expiry, active state, linked sign in account and role, and days off for the pickup date. The attached driver certificate document on that record proves certificate number and expiry.

Vehicle record, existing fields

Plate, colour, odometer, permit number and expiry, inspection expiry, home chauffeur, out of service state and reason, daily check result and check date, and service flags. The attached permit and inspection documents on that record prove permit and inspection dates.

Vehicle record, new field

Insurance expiry, a date alone in the company timezone. Optional to save the vehicle record, required and not expired for the pickup date to assign, in the same way as permit and inspection. The attached insurance card document on that vehicle record proves the date. If the date on the document and the field differ, correct the field on that vehicle record to match the document, then read the record again. Never keep a date that the current document does not support.

Booking and settings records

Pickup date in the company timezone, call time, assigned chauffeur and vehicle, flag reason, lead hours and minimum gap from the saved scheduling settings, and the saved quote on the booking. The gate changes no rate, pickup time, call time or total.

The gate, in order

Check in this order. The first failed check names the flag reason in words on the row and stops assignment.

  1. Chauffeur certificate

    Certificate expiry is on or after the pickup date, a certificate document is listed on that chauffeur record, the date on the document matches the field, the chauffeur is active, and the chauffeur is not marked off for that date.

  2. Vehicle permit and inspection

    Permit expiry and inspection expiry are each on or after the pickup date, a permit document and an inspection document are listed on that vehicle record, and each date on a document matches its field.

  3. Vehicle insurance

    Insurance expiry is on or after the pickup date, an insurance card document is listed on that vehicle record, and the date on the document matches the insurance expiry field. A blank insurance expiry or a missing insurance card document blocks assignment for that run.

  4. Daily check for the pickup date

    Daily check result is Ready and the check date equals the pickup date. Not checked or Failed blocks assignment. Any failed safety item takes the vehicle out of service until a manager clears it after repair with a reason recorded.

  5. Out of service and overdue service

    The vehicle is not out of service for that date and no service item for that vehicle is overdue by miles or months, whichever comes first. A missed oil service takes the vehicle out of service.

  6. Minimum gap and conflict

    No other run for the same chauffeur or vehicle comes closer than the minimum gap, 45 minutes by default. The flag states double booked when this check fails.

  7. Read the row again

    After any correction, read the booking, the assigned chauffeur record, the assigned vehicle record, the daily check for the pickup date and the flag on the row again before the assignment is applied.

Due soon, overdue and missing flags

Use the same four words for every expiry date on the board. The words are read for the pickup date, not for today.

Valid for this run

Expiry is at least 30 days after the pickup date and a document is listed on the named record. The row may be assigned for that pickup date.

Due soon

Expiry is on or after the pickup date and fewer than 30 days after the pickup date, with a document listed. The row may be assigned for that pickup date, and the board lists it in the renewal queue so the document is renewed before a later pickup date.

Overdue for this run

Expiry is before the pickup date. Assignment is blocked for that run, the flag states expired for this run, and the named record is renewed before the chauffeur or vehicle is assigned again.

Missing

The date field is blank or no document is listed on the named record. Assignment is blocked for that run, the flag states document missing or date missing, and the real document is attached to the named record first. A prior document is never copied forward.

  • Sort the board by expiry date in ascending order, so the nearest expiry is read first.
  • Show certificate, permit, inspection and insurance as four separate rows, each opening the named record.
  • Show daily check result for the pickup date, out of service state, overdue service flag and minimum gap result beside the expiry rows for the same chauffeur and vehicle. A valid expiry alone does not make a vehicle Ready.

Who can open the board

Buttons show only when the signed in role can use them, and the server checks the permission again before saving.

Owner or manager

Opens the full board, attaches and checks documents, corrects expiry fields on the named record, renews the named record, assigns only a chauffeur and vehicle that pass every check, and clears a vehicle out of service with a reason recorded after repair.

Chauffeur and relief chauffeur

Opens only the own chauffeur record and the own vehicle record. A relief chauffeur opens only the assigned car for that day, through a manager. Rates, other customers, other chauffeurs records and other vehicles documents are not shown.

Customer or business booker

Needs no account and does not open the board. A customer or business booker requests a quote with no account and opens only the public link for one booking, which never returns a compliance row, a document or another customer record.

What this specification does not do

No contract record, no invoice storage and no payment collection are added. A contract is never a substitute for a certificate, permit, inspection or insurance card. No new amount, address, time or name is written from outside the named records.

Acceptance checks before you use the gate

Run each check with one chauffeur and one vehicle that have a document attached to each record.

  • The board lists the chauffeur certificate, the vehicle permit, the vehicle inspection and the vehicle insurance card as four separate rows, each opening the named record, in expiry order, with the result stated in words for the pickup date.
  • A vehicle whose insurance expiry is blank, whose insurance card document is missing, or whose insurance expiry is before the pickup date cannot be assigned for that run, and the flag reason states the missing or expired insurance field.
  • R renewing insurance attaches the new card to the same vehicle record, corrects the insurance expiry field on that record to match the new document, and the board then shows valid for the pickup date or due soon, with no other record changed.
  • A chauffeur whose certificate expires before the pickup date, or whose document is missing on that record, cannot be assigned for that run, and the flag reason states the missing or expired field.
  • A vehicle whose daily check for the pickup date is not Ready, that is out of service, or that is overdue for service cannot be assigned for that run, even when every expiry row is valid.
  • A chauffeur opens only the own record and the own vehicle record, and a public booking link returns no compliance row and no document.
  • Each row opens the named record, the export where one is made matches the board scope, and no secret, card detail or personal note appears in the board or in the log detail.

Ship order

Ship in this order, with no security change and no new sign in path.

  1. Add the field

    Add insurance expiry to the vehicle record, with the same save rule as permit expiry and inspection expiry, and show it on the vehicle detail beside permit and inspection.

  2. Backfill from documents

    For each vehicle with an attached insurance card, read the date on the document and save it on that vehicle record. Leave the field blank and the vehicle blocked for assignment when no current card is attached.

  3. Show the board

    Show the four expiry rows sorted by nearest expiry, with document listed yes or no and the result in words for the pickup date.

  4. Enforce the gate

    Block assignment when any check in the gate fails, with the failed check named in words on the row, and recheck the gate at write time.

Prove each expiry from its own record, then assign

Attach the certificate, permit, inspection and insurance card to the record each one proves, check the date against the pickup date, and retrieve the file from that record before the run.