PaulRentACar Docs
Business processes

Rental Lifecycle

Detailed contract journey from draft through closure with status transitions and validation rules

Rental Lifecycle

This page details every status transition a rental contract goes through, the validation rules at each gate, and the permissions required to move forward.

Contract Status Flow

flowchart TD
  D[Draft] --> CP[Checkout Pending]
  CP --> A[Active]
  A --> ER[Extension Requested]
  ER --> A
  A --> RP[Return Pending]
  CP --> CANCEL[Cancelled]
  A --> CANCEL
  RP --> DR{Damage Found?}
  DR -->|Yes| DV[Damage Review]
  DR -->|No| BR[Billing Review]
  DV --> BR
  BR --> CLOSED[Closed]
  CLOSED --> ARCH[Archived]
  CANCEL --> ARCH

Business Tip: Every status change is logged in the contract history table. You can always trace who changed the status and when.


Status Definitions

StatusDescriptionVehicle Impact
DraftContract created but checkout not startedAvailable
Checkout PendingCheckout wizard in progressReserved
ActiveVehicle is with the customerRented
Extension RequestedCustomer requested more timeRented
Return PendingVehicle returned, awaiting inspectionInspection Pending
Damage ReviewDamage found during return inspectionInspection Pending
Billing ReviewFinal charges being calculatedInspection Pending
ClosedAll settled, contract completeAvailable or Maintenance
CancelledContract cancelled before or during rentalAvailable
ArchivedHistorical record, read-only

Transition Details

Draft → Checkout Pending

FieldDetail
TriggerFront desk clicks "Start Checkout"
Permissioncontract:checkout
Pre-conditionsReservation must be confirmed, vehicle must be assigned
ValidationCustomer identity documents must be uploaded
ScreenReservations > Checkout Wizard

Validation Rules:

  • Vehicle status must be Reserved
  • Reservation must have Confirmed status
  • Customer must have at least one verified ID document
  • Pickup date must be today or in the future

Checkout Pending → Active

FieldDetail
TriggerCheckout wizard step 4 completed
Permissioncontract:checkout
Pre-conditionsInspection complete, deposit processed, contract signed
ValidationAll mandatory inspection fields filled
ScreenReservations > Checkout Wizard (Step 4)

Validation Rules:

  • Pre-existing damage inspection must have at least one photo
  • Security deposit must be processed (card hold or cash)
  • Customer must acknowledge terms via digital signature
  • Odometer reading must be recorded
  • Fuel level must be recorded
flowchart LR
  subgraph "Checkout Wizard Steps"
    S1[1. Inspection] --> S2[2. Verification]
    S2 --> S3[3. Deposit]
    S3 --> S4[4. Contract & Keys]
  end
  S4 -->|All validations pass| ACTIVE[Active]
  S4 -->|Validation fails| BLOCKED[Blocked]

Active → Extension Requested

FieldDetail
TriggerCustomer or agent requests extension
Permissionextension:create
Pre-conditionsContract must be Active, return date not yet passed
ValidationExtension dates must not overlap with another reservation
ScreenContracts > Extension Request

Validation Rules:

  • New return date must be after current return date
  • Vehicle must not be reserved for another customer in the new period
  • Pricing for extension period must be recalculated
  • Customer must confirm extended pricing

Extension Requested → Active

FieldDetail
TriggerExtension approved and deposit topped up
Permissionextension:approve
Pre-conditionsPricing confirmed, additional deposit processed
ValidationPayment for extension period received

Active → Return Pending

FieldDetail
TriggerReturn inspection submitted with no damage
Permissioncontract:checkin
Pre-conditionsVehicle physically returned to branch
ValidationOdometer and fuel readings recorded
ScreenContracts > Check-in Wizard

Validation Rules:

  • Return inspection must be submitted
  • No new damage items flagged
  • Fuel level must be recorded
  • Odometer must be recorded
  • All accessories accounted for

Active → Damage Review

FieldDetail
TriggerReturn inspection flags new damage
Permissioncontract:checkin
Pre-conditionsVehicle physically returned
ValidationAt least one damage item with photo evidence
ScreenContracts > Check-in Inspection

Validation Rules:

  • Damage item must have category, severity, and photo
  • Damage must be compared against checkout inspection
  • Pre-existing damage must be excluded from new damage list

Damage Review → Billing Review

FieldDetail
TriggerDamage assessment completed and charges approved
Permissiondamage:approve_assessment
Pre-conditionsDamage assessment form completed
ValidationEstimated cost must be entered
ScreenDamage > Assessment

Billing Review → Closed

FieldDetail
TriggerAll charges settled, invoice paid
Permissioncontract:update
Pre-conditionsInvoice fully paid, deposit resolved
ValidationPayment amount ≥ invoice total
ScreenContracts > Close Contract

Validation Rules:

  • Invoice status must be Paid
  • Security deposit must be resolved (released or forfeited)
  • No open complaints linked to this contract
  • No pending damage assessments
  • No pending traffic fines or Salik charges

Active/Any → Cancelled

FieldDetail
TriggerContract cancelled by authorized user
Permissioncontract:cancel
Pre-conditionsCancellation policy applied
ValidationCancellation fee calculated if applicable
ScreenContracts > Cancel Contract

Validation Rules:

  • Cancellation reason must be recorded
  • If vehicle already dispatched, return must be arranged
  • Deposit refund or forfeiture must be processed
  • Outstanding charges must be settled before cancellation

Timeline View

Every contract has a timeline showing all status changes, actions, and audit events.

Timeline EntryWhat It Shows
Status ChangeWho changed status, timestamp, from/to
InspectionPre-existing and return inspection details
PaymentDeposit, invoice payments, refunds
ExtensionExtension requests and approvals
DamageDamage assessment entries
CommentInternal notes and customer communications
DocumentAttached files and signed agreements

Validation Rules Summary

Rule CodeApplies ToDescription
contract_can_checkoutCheckoutVehicle reserved, customer verified, deposit ready
contract_can_closeClosureInvoice paid, deposit resolved, no open issues
contract_can_cancelCancellationReason recorded, charges settled
extension_can_be_approvedExtensionPricing confirmed, vehicle available for new dates

Business Tip: If a transition is blocked, the system will show exactly which validation failed. Fix the issue and retry — do not attempt to bypass validation.


Error Handling

ErrorCauseResolution
"Vehicle not available"Vehicle reserved by another contractAssign a different vehicle
"Customer documents not verified"ID document pending OCRComplete document verification first
"Deposit not processed"Card hold failed or cash not recordedRe-process deposit before checkout
"Invoice not fully paid"Outstanding balance remainsProcess remaining payment
"Open complaints exist"Linked complaint not resolvedResolve or escalate complaint first
"Damage assessment pending"Return inspection flagged damageComplete damage assessment

On this page