KPI limits
Path: Settings → Other → KPI limits (/kpi_limits). The same tabs sit on KPI Dashboard (/kpi_dashboard).

| Tab | Address | Permission |
|---|---|---|
| Ongoing | /kpi_dashboard | KPI dashboard access |
| KPI limits | /kpi_limits | KPI limits view |
Add needs the KPI limits create permission. Edit, delete, and print are separate switches on the same KPI role.
Add a limit
Add new and the row Edit open the same form.
| Field | Required | Default | Values |
|---|---|---|---|
| Target type | Yes | Empty | User (module 2), Branch (module 7), or Department (module 26) |
| Target | Yes | Empty | People when the type is User. Branches or departments when you change the type. The label on the field changes with the type |
| Period | Yes | Empty | Daily, weekly, two weeks, monthly, three months, six months, yearly |
| Metric | Yes | Sales total | Sales total (sales) or Net revenue (revenue). Any other value is stored as sales |
| Target amount | Yes | Empty | Number, minimum 0, step 0.01 |
| Branch | No | Empty | Limits the sales that count to this branch. Clearable |
The form does not ask for a start date or an end date. If both dates are already stored on the row, the calculator uses them. Otherwise it uses the current period:
| Period | Range used |
|---|---|
| Daily | Today |
| Weekly | Monday through Sunday of the current week |
| Two weeks | Monday of this week through Sunday of next week |
| Monthly | First through last day of this month |
| Three months | The current calendar quarter |
| Six months | 1 Jan–30 Jun, or 1 Jul–31 Dec |
| Yearly | 1 Jan–31 Dec |
What the list shows
Columns: target type, target, period, metric, date range, target amount, actual amount, completion, branch, and active. ID, date, and performed by are hidden until you show them.
Filters: target type, period, metric, and ID (equals or contains). The dashboard adds a date range (default is the first of this month through today), an employee, branch, or department filter that follows the target type, and a calculation branch.
Completion is actual / target × 100, rounded to two decimals. A target of 0 stays at 0 percent. The list colors that percent under 50 as danger, under 80 as warning, and otherwise success. The limits table still calculates amounts for inactive rows. The dashboard loads only rows that are active and not deleted.
Actual amount counts confirmed sales only: document_type = sales, status 2, not deleted, create_date inside the range, and responsible_contact_id in the people for that target.
| Target type | Whose sales count |
|---|---|
| User | That user |
| Branch | Contacts linked to the branch in contact_branch_connections |
| Department | Contacts linked to the department |
Sales total sums total_amount. Net revenue sums total_amount minus total_commission_amount. A draft sale does not count.
How to set a weekly sales target
- Open Settings → Other → KPI limits.
- Choose Add new.
- Set target type to User, then pick the employee.
- Set the period to Weekly and the metric to Sales total.
- Enter the target amount. Leave branch empty to count every branch, or pick one branch.
- Save. The list shows the current week’s actual and the completion percent.
Related
The gauges on KPI Dashboard read these limits. Change the target here. The dashboard does not edit it.