The Reportes module aggregates consolidation data stored across both theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Medinaallan/ContabilidadISV/llms.txt
Use this file to discover all available pages before exploring further.
consolidaciones_generales and consolidaciones_hoteles tables into three distinct views: high-level metrics, client activity ranking, and per-account Debe/Haber summaries. All report data is served through the /api/reports router and rendered inside the ReportsSection React component. Reports can be exported to Excel (.xlsx) or PDF directly from the dashboard.
Metrics
Endpoint:GET /api/reports/metrics
Returns the total count of consolidations in the system, broken down by type.
Response shape:
| Parameter | Type | Description |
|---|---|---|
year | string | Four-digit year (e.g., 2024). Omit or pass todos for all years. |
clienteId | string | Numeric client ID. Omit or pass todos for all clients. |
Client Ranking
Endpoint:GET /api/reports/ranking
Returns all clients sorted in descending order by their total consolidation count (Generales + Hoteles combined). The ranking is not filtered by year or client — it always reflects the full historical dataset.
Response shape (array):
| Parameter | Type | Description |
|---|---|---|
year | string | Optional filter by year. |
#N for all other positions.
Detailed Summaries
Endpoint:GET /api/reports/summaries
Returns aggregated Debe/Haber sums per account, per client, for a given year and time period. Each row in the response corresponds to one client and one consolidation type (general or hotel), with all 55 account fields summed across every matching consolidation.
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
year | string | Yes | Four-digit year, e.g. 2024. |
clienteId | string | No | Numeric client ID or todos for all clients. |
periodo | string | Yes | One of the period values listed below. |
periodo values:
| Value | Description |
|---|---|
anual | Full calendar year |
bimestral-1 … bimestral-6 | Two-month periods (Jan–Feb through Nov–Dec) |
trimestral-1 … trimestral-4 | Three-month quarters |
semestral-1 | First semester (Jan–Jun) |
semestral-2 | Second semester (Jul–Dec) |
total_debe, total_haber, and diferencia computed fields, as well as cliente_rtn and usuario_nombre for display on exported PDF headers.
Viewing Reports in the Dashboard
TheReportsSection component is accessed via the Reportes entry in the sidebar. It contains three tabs:
Métricas Generales
Count cards for total, Generales, and Hoteles consolidations. Filterable by year and client via a live-search input.
Ranking de Clientes
Sortable table showing each client’s total and per-type consolidation counts with medal indicators for top 3.
Resúmenes por Cliente
Per-account Debe/Haber table with year, client, and period filters. Includes Exportar Excel and Exportar PDF buttons.
Summaries Tab — Workflow
Select the Resúmenes por Cliente tab
Click the Resúmenes por Cliente tab at the top of the Reports section.
Set filters
Choose a Cliente (type to search, or leave as Todos los clientes), a Año, and a Período from the dropdowns.
Apply filters
Click Aplicar Filtros. The system fetches aggregated data from
GET /api/reports/summaries.Review the summary table
Each client block shows all 55 accounts in rows with their summed Debe and Haber values, plus a TOTALES row and a DIFERENCIA row at the bottom.
Related Pages
Consolidations
Understand the source data that feeds into reports.
Export
Export individual consolidations in addition to summary reports.
Reports API
REST endpoints for all three report types.
Clients
Client entities referenced in report filters and summaries.