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

# Reports

> The month's compensation dashboard (net value, automatic versus human, approval times), cases and their SLA, the machine and recharge point ranking, and the monthly accounting export in CSV or Excel.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | `/{locale}/customer-care/reports` |
| Menu | Customer care › Operations › **Reports** |
| Role | Customer Compensation Supervisor and Manager; Customer care Admin, Operator and Viewer (read); Manager and Customer care Admin and Operator (export); Administrator |
| Permission | `customer-compensation-report:find-all` to see; `customer-compensation-report:export` for **Export CSV** and **Export Excel** |
| Feature flag | `customer-compensation` |
| Last verified | 2026-11-24 against `develop` (`060621220`) |

## What it is for

"Compensation dashboard, cases and SLA, machine ranking and the month's accounting export." It answers how much was
compensated, how much was approved automatically, how long approvals take, how the SLA is doing and which machines
cause the most cases, and gives accounting the month's file.

## How to get there

* Side menu → **Operations** › **Reports**.

## What you see

> [!NOTE]
>
> The screenshots of this screen are added with the manual's first capture (desktop, light theme).

| # | Element | What it does |
| - | - | - |
| 1 | **Month** and **Business unit** | The period (calendar month, Chile time) and **All business units** or one |
| 2 | **Export CSV** and **Export Excel** | Download the month's accounting export; only with `customer-compensation-report:export` |
| 3 | Reconciliation | "Net value of the month: {total}. The accounting export adds up to the same." |
| 4 | **Dashboard** tab | Indicators **Net value** ("Applied minus revoked in the month"), **Applied**, **Revoked**, **Automatic approval**, **Human approval (median)** and **Pending approval**; **Value per day** chart; **Breakdown** table by **Type**, **Cause**, **Business unit**, **Machine** or **Agent** |
| 5 | **Cases and SLA** tab | **Cases opened**, **SLA compliance**, **SLA breached**, **Response breached**, **Average resolution** and **SLA by dimension** (**Business unit**, **Priority**, **Assignee**, **Status**) |
| 6 | **Machines and venues** tab | **Machine ranking** (cases, confirmed, maintenance alerts and net value; each machine opens its NOC record) and **Recharge point ranking** |

## Step by step

**1. Choose the month**

In **Month**, choose the period. For a single business unit, choose it.

**2. Read the dashboard**

**Net value** is applied minus revoked. **Automatic approval** shows how many were approved automatically, how many
by a person and how many were rejected.

**3. Check the SLA**

In **Cases and SLA**, look at compliance and which agents or priorities hold the breaches.

**4. Look at the machines**

In **Machines and venues**, the machines with the most cases; click one to open its record.

**5. Download the export**

Press **Export Excel** or **Export CSV**. You see "Export downloaded" and the file downloads with one row per
movement of the month.

## Business rules

| ID | Rule |
| - | - |
| R-01 | Periods are Chile calendar days (America/Santiago) |
| R-02 | Each compensation is attributed to its case: business unit, cause and its subject's machine (or the case's) |
| R-03 | The export has one row per money movement of the month: a compensation applied or one revoked (with a negative value); its value column adds up to the dashboard's **Net value** for the same month and unit |
| R-04 | Export columns: Case, Date, Movement, Business unit, Machine, Venue, Cause, Type, Benefit, Units, Unit value, Value, Currency, VAT included, Current status, Approval (Automatic or Human), Approver, Agent and Compensation id |
| R-05 | Every amount is in CLP, VAT included |
| R-06 | Human approvals are measured from request to decision (median, average and p90) |

## States and messages

| Situation | What you see |
| - | - |
| No data | "No data in this period." |
| Export ready | "Export downloaded" |
| Read error | "The report could not be loaded" · "Try again in a few minutes." |
| Module off | "Customer care is not available" · "The compensation module is not enabled." |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "The report could not be loaded" | The query failed | `GET /api/v3/compensation/report/dashboard`, `/case` or `/machine-ranking` 5xx | Retry in a few minutes |
| "The export could not be downloaded" | The export failed | `GET /api/v3/compensation/report/export` 4xx/5xx | Retry; check the chosen month |
| The export buttons are missing | Missing `customer-compensation-report:export` | — | Ask for the Manager role |

## Why it works this way

The export uses the same movements as the dashboard, so accounting and operations agree without intermediate
spreadsheets. A revocation is a negative movement in the month it happens, not a correction of the original month,
so closed months are not reopened.

## Technical detail

| Aspect | Detail |
| - | - |
| Screen | `frontend/horizon-enterprise/app/components/screens/customer-care/compensation-reports-screen.tsx`, `lib/features/customer-compensation-report/**` |
| API | `GET /api/v3/compensation/report/dashboard`, `…/case`, `…/machine-ranking`, `…/export` (CSV or Excel) |
| Data | Compensation report views and `customer_compensation_report_export`, read in pages |
| Texts | `messages/{es,en}.json` › `customerCompensationReport` |

## FAQ and support cases

> [accordion] The net value does not match the sum of the month's compensations
>
> The net value subtracts the month's revocations, even when the revoked compensation is from an earlier month. The
> export shows each movement separately.

> [accordion] A ranking row has no machine number
>
> "No machine" shows when the case has no machine (for example a payment problem).

## Related and history

* [Revoking a compensation](https://docs.bbrands.io/enterprise/customer-care/revoke.md)
* [Cases inbox](https://docs.bbrands.io/enterprise/customer-care/cases.md)

| Date | Change |
| - | - |
| 2026-11-24 | First version |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.