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.

Fixed assets (activos fijos) are the durable, trackable items your unit owns — chairs, projectors, microphones, musical instruments, and anything else that you want to monitor over time. Unlike consumables, assets are not depleted through use; they are loaned out, returned, repaired, or eventually retired.

Asset fields

Each asset record in the Articulo table stores the following fields:
FieldTypeDescription
nombrevarchar(150)Display name of the asset
cantidadintegerTotal quantity of this asset registered in inventory
estado_fisicovarchar(50)Physical condition: Bueno, Regular, or Dañado
estado_disponibilidadvarchar(50)Availability state: Disponible, Prestado, No Disponible, or Agotado/Baja
id_categoriaintegerForeign key to Categoria
id_ubicacionintegerForeign key to Ubicacion
The server action input type for registration is:
export type RegisterAssetInput = {
  nombre: string;
  cantidad: number;
  estado_fisico: string;
  id_categoria: number;
  id_ubicacion: number;
};
When you register an asset with estado_fisico = "Dañado", the system automatically sets estado_disponibilidad to "No Disponible". For all other physical states (Bueno, Regular), the initial availability is set to "Disponible".

Register a new asset

1

Open the assets page

Navigate to Activos fijos from the sidebar. The assets table lists all active (non-deleted) assets.
2

Click Register

Click the Registrar activo button to open the registration modal (RegisterAssetModal).
3

Fill in the asset details

Enter the asset name, quantity, physical status, category, and location. All fields are required.
4

Submit the form

Click Guardar. The registrarActivo server action inserts the record into the Articulo table and logs the action to the audit trail. The availability status is derived automatically from the physical status you selected.

Edit an asset

1

Locate the asset

Find the asset in the assets table on the Activos fijos page.
2

Open the edit modal

Click the edit action on the asset row to open EditAssetModal.
3

Update fields

You can change the name, quantity, physical status, availability status, category, and location. Unlike registration, editing lets you set estado_disponibilidad directly.
4

Save changes

Click Guardar. The editarActivo server action runs an UPDATE on the Articulo table for the given id_articulo and revalidates the /activos path.

Retire an asset (Dar de Baja)

When an asset is no longer in service, you can soft-delete it. The darDeBajaActivo action:
  1. Sets is_deleted = true on the Articulo record.
  2. Sets estado_disponibilidad = "Agotado/Baja" to reflect the retirement.
  3. Logs the action to the audit trail.
The asset disappears from the active assets table and the dashboard KPI count, but the record is preserved in the database. It moves to the recycle bin view for audit purposes.

Build docs developers (and LLMs) love