Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/ChrisCore1/inventario_sud/llms.txt

Use this file to discover all available pages before exploring further.

The dashboard is the main command center for Inventario SUD. Every time you open the app you land here and get a live snapshot of the state of your inventory — how many assets are registered, how many are currently on loan, which items need attention, and whether your consumable supplies are adequately stocked.

KPI cards

Four cards sit at the top of the dashboard and refresh on every page load with data queried directly from the database.

Total assets

The total number of active fixed assets (articulos) that have not been soft-deleted (is_deleted = false).

Items on loan

The count of assets whose estado_disponibilidad is currently "Prestado".

Items needing repair

The count of assets whose estado_fisico is "Dañado". These are items that are physically damaged and typically marked as unavailable.

Consumables level

An aggregate status across all consumable supplies. Possible values are Óptimo, Atención requerida, and Crítico (Agotados). See the note below for how this is derived.
The consumables status color is determined by the worst-case stock state across all consumables:
  • Óptimo (green) — every consumable has cantidad > stock_minimo.
  • Atención requerida (orange) — at least one consumable has cantidad > 0 but cantidad <= stock_minimo. No consumables are fully depleted.
  • Crítico (Agotados) (red) — at least one consumable has cantidad = 0, regardless of others.
The critical state takes priority over attention-required.

Recent assets table

Below the KPI cards, the dashboard displays a table of the last 20 assets added to the inventory, ordered by id_articulo descending. Each row shows the following columns:
ColumnSource fieldDescription
Namearticulos.nombreThe display name of the asset
Categorycategorias.tipo_categoriaThe assigned category label
Locationubicaciones.nombre_ubicacionThe physical storage location
Physical statusarticulos.estado_fisicoBueno, Regular, or Dañado
Availability statusarticulos.estado_disponibilidadDisponible, Prestado, No Disponible, or Agotado/Baja
Quantity loanedSum of movimientosPrestamos.cantidad_prestadaTotal units of this asset currently tracked in active loans
The quantity loaned is computed via a left-join subquery that sums cantidad_prestada from movimientosPrestamos where is_deleted = false, grouped by id_articulo. Assets with no active loans show 0.

Build docs developers (and LLMs) love