# Fleet Management

<p class="doc-lead">Track the assigned vehicle, log odometer and refrigerator readings, and review recent check-in/check-out activity from the Field Sale App.</p>

<div class="doc-toc">
<p class="doc-toc-title">On this page</p>
<div class="doc-toc-section">
<span class="doc-toc-group-title">Overview</span>
<div class="doc-toc-links">
<a href="#/field-sale-app/fleet-management?id=open">Open Fleet Management</a>
<a href="#/field-sale-app/fleet-management?id=vehicle-summary">Vehicle summary</a>
<a href="#/field-sale-app/fleet-management?id=actions">Actions</a>
</div>
</div>
</div>

<hr class="doc-section-divider">

<h2 id="open">Open Fleet Management</h2>

Access fleet features from:

- **Home** tab → **Fleet Management** tile (when **Fleet — Manage** access is granted), or
- **Fleet** bottom tab (when the user has vehicle settings access)

If no vehicle is assigned, the screen shows *No Vehicle Assigned* with a message to contact the administrator.

<hr class="doc-section-divider">

<h2 id="vehicle-summary">Vehicle summary</h2>

When a vehicle is assigned, the screen shows:

<h3>Current Vehicle</h3>

| Field | Description |
|-------|-------------|
| **License plate** | Vehicle registration number |
| **Vehicle type** | Type label (when configured) |
| **Driver** | Assigned employee name |

<h3>Readings</h3>

| Reading | Description |
|---------|-------------|
| **Odometer** | Latest odometer reading and date of last log |
| **Refrigerator** | Latest refrigerator unit reading (shown only when the vehicle has a refrigerator) |

Pull down or tap the refresh icon in the header to reload fleet data and refresh vehicle allocation from the server.

<h3>Recent Activity</h3>

Lists recent vehicle logs with:

- **Check In** or **Check Out** type
- Date and time
- **Odo:** odometer reading at log time
- **Ref:** refrigerator reading (when applicable)

<hr class="doc-section-divider">

<h2 id="actions">Actions</h2>

Footer buttons on the Fleet Management screen:

| Action | Purpose |
|--------|---------|
| **Quick Log** | Open the vehicle log form to record a new check-in or check-out with odometer (and refrigerator) readings |
| **View All Logs** | Open the full list of vehicle logs for the assigned vehicle |

<h3>Quick Log</h3>

Record a vehicle log entry:

- Select log type (**Check In** / **Check Out**)
- Enter **Odometer** reading
- Enter **Refrigerator** reading (when the vehicle has a refrigerator)
- Optionally attach photos
- Save the log

Logs sync to the ERP fleet module for reporting and audit.

<hr class="doc-section-divider">

<h2 id="access">Access</h2>

| Feature | Access |
|---------|--------|
| **Fleet Management** tile on Home | Fleet — Manage |
| **Fleet** bottom tab | Vehicle settings access |
| Vehicle log create/view | Assigned to the user's employee/vehicle in ERP |

<hr class="doc-section-divider">

<h2 id="faq">FAQ</h2>

<p><b>Why don't I see Fleet Management on Home?</b><br>
Grant Fleet — Manage on the Field Sale App role and ensure the user's employee is assigned to a vehicle on the web ERP.</p>

<p><b>What is the Fleet bottom tab?</b><br>
Shows vehicle settings and quick access to logging when vehicle settings access is granted — complementary to the Home Fleet Management tile.</p>

<p><b>When is Refrigerator reading required?</b><br>
When the assigned vehicle has the refrigerator flag enabled on the web fleet master — both odometer and refrigerator readings appear on Quick Log.</p>

<p><b>Do vehicle logs sync to the web?</b><br>
Yes. Check-in and check-out logs with odometer readings sync to the ERP fleet module for audit and reporting.</p>

<p><b>Can I attach photos to a vehicle log?</b><br>
Yes. Optional photo attachments are supported on Quick Log when enabled for your fleet workflow.</p>

<hr class="doc-section-divider">

<h2 id="related">Related topics</h2>

- [Transactions](field-sale-app/transactions.md)
- [Field Sale App overview](field-sale-app/)

<section class="ai-index-only">

## Errors and warnings

Exact Field Sale App strings for Fleet Management / vehicle log.

### Vehicle not assigned or log missing

- **Type:** Error
- **Action:** Open Quick Log, edit log
- **When:** No vehicle is mapped to the user, the log id is missing, or load fails.
- **Example message:** *No vehicle assigned to your account. Please contact administrator.*; *Vehicle log not found.*; *Failed to load data. Please try again.*
- **Outcome:** Log form does not open.
- **Solution:** Assign a vehicle on the web fleet master. Retry load.

### Photo permission

- **Type:** Error
- **Action:** Attach photo
- **When:** Photo library permission is denied.
- **Example message:** *Photo library permission is required. Please grant permission in Settings.*
- **Outcome:** Photo is not attached.
- **Solution:** Grant Photos permission in the device Settings.

### Save validation

- **Type:** Error
- **Action:** Save vehicle log
- **When:** Vehicle, employee, odometer, refrigerator reading, or a numeric field is invalid.
- **Example message:** *Please select a vehicle*; *Please select an employee*; *Please enter a valid odometer reading*; *Please enter a valid refrigerator reading*; *Please enter a valid number*
- **Outcome:** Log is not saved.
- **Solution:** Select vehicle and employee. Enter numeric odometer (and refrigerator when the vehicle has that flag).

### Save success

- **Type:** Success
- **Action:** Save / Update log
- **When:** Log is written.
- **Example message:** *Vehicle log saved successfully* or *Vehicle log updated successfully*
- **Outcome:** Log syncs to the web fleet module.
- **Solution:** None.

</section>
