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.

Inventario SUD uses soft deletion rather than immediate permanent deletion for most records. When you delete an asset, consumable, or loan from its primary list, the record’s is_deleted flag is set to true and the item is hidden from normal views — but it remains in the database. The recycle bin, accessible from Configuración, gives you two choices for each soft-deleted item: restore it to active status, or permanently remove it from the database entirely.

Item types in the recycle bin

The recycle bin manages three types of records:
TypeDatabase tableIdentified by
Assets (Activos)Articuloid_articulo, nombre
Consumables (Consumibles)Consumibleid_consumible, nombre, cantidad
Loans (Préstamos)Movimiento_Prestamosid_movimiento, associated asset name, responsable_externo
All three types appear in separate sections within the Mantenimiento de base de datos panel on the Configuración page.

Restore an item

1

Navigate to Configuración

Sign in and go to Configuración in the sidebar.
2

Locate the item in the recycle bin

Scroll to the Mantenimiento de base de datos section. Find the item you want to restore under the Assets, Consumables, or Loans tab.
3

Click Restaurar

Click the Restaurar button next to the item. The server action sets is_deleted to false for that record and the item reappears in its primary list.
Restoring a loan (Préstamo) also resets the associated asset’s estado_disponibilidad back to "Prestado" automatically. This keeps the asset’s availability status consistent with the active loan record.

Permanently delete an item

1

Navigate to Configuración

Sign in and go to Configuración in the sidebar.
2

Locate the item in the recycle bin

Find the soft-deleted item you want to permanently remove under the appropriate section.
3

Click Eliminar permanentemente

Click the Eliminar permanentemente button next to the item. A confirmation prompt appears.
4

Confirm the deletion

Confirm the action. The server action executes a hard DELETE against the database row. The item is removed from the recycle bin and cannot be recovered through the application.
Permanent deletion cannot be undone. There is no recovery path once a row is hard-deleted from the database unless you have a SQL backup that predates the deletion. Additionally, assets that still have associated loan records or audit log entries referencing their id_articulo will fail to delete due to foreign key constraints. The action returns an error asking you to remove dependent records first. See Export a full SQL backup to keep a snapshot before performing destructive operations.

Build docs developers (and LLMs) love