The Análisis financiero module gives you a bird’s-eye view of your business performance over time. Rather than looking at one project at a time, it aggregates all closed projects within a period you choose and surfaces the indicators that matter most: total revenue, total costs, overall profit, and which projects drove the best and worst results. Cancelled projects are reported separately so you can assess their financial impact without mixing them into your completion metrics.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JDzuu/AplicativoWEB_GestorFinanciero/llms.txt
Use this file to discover all available pages before exploring further.
Accessing the Analysis
The analysis endpoint accepts three optional filter parameters:| Parameter | Format | Example | Description |
|---|---|---|---|
anio | 4-digit year or "todos" | 2024 | Filter by the year in which the project was closed (fecha_fin) |
mes | 01–12 or "todos" | 03 | Filter by the month of closing (only meaningful alongside anio) |
trimestre | 1–4 or "todos" | 2 | Filter by calendar quarter of closing |
Only projects with a
fecha_fin recorded and a state of either finalizado or cancelado are included in the analysis. Projects that are still in progress (iniciando, proceso, acabando, or pausa) are completely excluded, regardless of the selected period.Quarterly Groupings
When filtering by trimestre, the backend maps quarter numbers to the following months:| Quarter | Months |
|---|---|
| Q1 — 1.º trimestre | January, February, March (01–03) |
| Q2 — 2.º trimestre | April, May, June (04–06) |
| Q3 — 3.º trimestre | July, August, September (07–09) |
| Q4 — 4.º trimestre | October, November, December (10–12) |
Indicators for Finalised Projects
For all finalised projects that match the selected period,logica.analizar() returns the following indicators:
| Indicator | Description |
|---|---|
ingresos_totales | Sum of total_entradas across all finalised projects in the period |
gastos_totales | Sum of total_salidas across all finalised projects in the period |
ganancia_total | Sum of ganancia (entradas − salidas) across all finalised projects |
cantidad | Count of finalised projects in the period |
mas_rentable | The project with the highest ganancia value |
menos_rentable | The project with the lowest ganancia value (may be the same project if only one exists) |
proyectos_perdida | List of all projects where ganancia < 0 |
mas_rapido | The project with the shortest duracion in days (projects without a recorded duration are excluded) |
Indicators for Cancelled Projects
Cancelled projects are aggregated separately bylogica.analizar_cancelados():
| Indicator | Description |
|---|---|
cantidad | Number of cancelled projects in the period |
total_cobrado | Total payments already received before cancellation |
total_gastado | Total expenses already incurred before cancellation |
neto | total_cobrado − total_gastado — positive means you recovered more than you spent; negative means a net loss on cancelled work |
neto figure is displayed in green when positive and red when negative on the Análisis page.
Profitability Chart and Tables
Beyond the aggregate indicators, the Análisis page displays:Ganancia por proyecto
A horizontal bar chart showing each finalised project’s
ganancia. Bars are green for positive results and red for losses. Click any bar to filter the tables below to only that project (multi-select is supported).Rentabilidad por proyecto
A sortable table of all finalised projects showing
total_entradas, total_salidas, and ganancia. Clicking any column header toggles ascending/descending order.Rendimiento por tiempo
A table listing finalised projects ordered by
duracion in days, showing start date, close date, and total duration. Useful for identifying which jobs run longest and comparing them against profitability.Proyectos cancelados
A list of cancelled projects in the period ordered by their individual net balance (entradas − salidas), showing which cancellations were most costly.
API Response Structure
A single call toGET /analisis returns both segments in one response:
indicadores and indicadores_cancelados are null when there are no projects of that type in the selected period. The UI shows “No hay proyectos cerrados en este período.” when both are null.