> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mileapp.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Managing Targets

After completing the setup, the Sales Target Manager page is your central hub for managing all sales targets. From here you can view, edit, and delete targets, as well as filter and search through your data.

<Note>
  Required permission:

  * View Sales Target - Manager
</Note>

## The Target Table

The Manager page displays all sales targets in a table with the following columns:

| Column                | Description                                    |
| --------------------- | ---------------------------------------------- |
| **#**                 | Row number                                     |
| **Period**            | The target month and year (e.g., "March 2026") |
| **City/Hub**          | The location associated with this target       |
| **Store**             | The specific store or outlet                   |
| **Email**             | The sales representative's email address       |
| **Active Days**       | Number of working days in the month            |
| **Total Target**      | The monthly sales goal                         |
| **Total Achievement** | Current sales achieved (updated automatically) |
| **Actions**           | View, edit, and delete buttons                 |

The table shows 25 records per page. Use the pagination controls at the bottom to navigate between pages.

<div align="center">
  <img src="https://mintcdn.com/mileapp-c1584fbc/Zv4XvRDz7HMdx5Un/images/add-on/sales-target/manager-overview.png?fit=max&auto=format&n=Zv4XvRDz7HMdx5Un&q=85&s=eac0981538b1990f6ecc1eaa2c5dfa1f" alt="Sales Target Manager table" width="600" data-path="images/add-on/sales-target/manager-overview.png" />
</div>

<p><em>The Manager page lists all sales targets with period, location, email, and achievement data.</em></p>

## Filtering Targets

Use the filter bar at the top of the page to narrow down the displayed targets:

1. **Location**: Select a city or hub from the dropdown to filter by location.
2. **Representative**: Select a representative name to see only their targets.
3. **Period**: Select a month to filter by target period.
4. **Search**: Type in the search box to search by email, city, or store name.

Filters can be combined. For example, you can filter by a specific location and period at the same time.

<div align="center">
  <img src="https://mintcdn.com/mileapp-c1584fbc/Zv4XvRDz7HMdx5Un/images/add-on/sales-target/filter-bar.png?fit=max&auto=format&n=Zv4XvRDz7HMdx5Un&q=85&s=1e3f502b86d673c980b34c2173de809f" alt="Filter bar with dropdowns and action buttons" width="600" data-path="images/add-on/sales-target/filter-bar.png" />
</div>

<p><em>The filter bar provides Hub, Representative, and Period dropdowns, a search box, plus Export, Import, and Settings buttons.</em></p>

## Viewing Target Details

To see the full details of a target, click the **eye icon** in the Actions column. The details modal shows:

**Header**

* Representative email and target period
* A progress bar showing the overall achievement percentage

**Location Information**

* City/Hub name
* Store name
* Active days for the month

**Monthly Targets**

* Total monthly target
* Target broken down by each category (e.g., Food: 500, Beverages: 300)

**Daily Targets**

* Total daily target (calculated automatically: total target divided by active days)
* Daily target per category

**Achievement**

* Total achievement to date
* Achievement per category

<div align="center">
  <img src="https://mintcdn.com/mileapp-c1584fbc/Zv4XvRDz7HMdx5Un/images/add-on/sales-target/view-detail-modal.png?fit=max&auto=format&n=Zv4XvRDz7HMdx5Un&q=85&s=3033fa066e6e81dedd50cfac82a17ff6" alt="View Details modal" width="600" data-path="images/add-on/sales-target/view-detail-modal.png" />
</div>

<p><em>The View Details modal shows the progress bar, location info, monthly targets, daily targets, and achievement breakdown by category.</em></p>

## Editing a Target

To modify a target, click the **pencil icon** in the Actions column. The edit modal allows you to change:

* **Active Days**: The number of working days (1–31)
* **Total Target**: The overall monthly goal
* **Category Targets**: Individual targets for each category

The following fields are read-only and update automatically:

* **Daily Targets**: Recalculated based on total target and active days
* **Achievement**: Updated from completed task data

<div align="center">
  <img src="https://mintcdn.com/mileapp-c1584fbc/Zv4XvRDz7HMdx5Un/images/add-on/sales-target/edit-modal.png?fit=max&auto=format&n=Zv4XvRDz7HMdx5Un&q=85&s=39208a191fdf6778dfd3aac4ce03bbc6" alt="Edit Target modal" width="600" data-path="images/add-on/sales-target/edit-modal.png" />
</div>

<p><em>The Edit Target modal lets you update Active Days and target amounts. Daily targets and achievement figures are read-only and update automatically.</em></p>

<Note>
  The sum of all category targets must equal the total target. A warning will appear if they do not match.
</Note>

Click **Save** to apply your changes, or **Cancel** to discard them. If you have unsaved changes and try to close the modal, you will be asked to confirm.

## Deleting a Target

To delete a target, click the **trash icon** in the Actions column. A confirmation dialog will appear showing the target details. Click **Delete** to confirm or **Cancel** to go back.

<div align="center">
  <img src="https://mintcdn.com/mileapp-c1584fbc/Zv4XvRDz7HMdx5Un/images/add-on/sales-target/delete-confirm.png?fit=max&auto=format&n=Zv4XvRDz7HMdx5Un&q=85&s=48edfff73b61bab7b04b35aea7bb4c90" alt="Delete confirmation dialog" width="600" data-path="images/add-on/sales-target/delete-confirm.png" />
</div>

<p><em>The delete confirmation dialog shows target details and warns that the action cannot be undone.</em></p>

<Note>
  Deleting a target is permanent and cannot be undone.
</Note>

## Past Period Restrictions

Targets for past months (periods that have already ended) cannot be edited or deleted. The edit and delete icons will appear grayed out for these records. You can still view the details of past targets by clicking the eye icon.

This restriction ensures that historical data remains accurate for reporting purposes.
