Consumables are supplies that get used up over time — paper, batteries, cleaning products, printer cartridges, and similar items. Unlike fixed assets, consumables are tracked by running quantity rather than availability status, and the system warns you when stock falls below a minimum threshold you define.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.
Consumable fields
Each record in theConsumible table stores the following fields:
| Field | Type | Description |
|---|---|---|
nombre | varchar(150) | Display name of the consumable |
cantidad | integer | Current stock quantity |
stock_minimo | integer | Minimum threshold before an alert is triggered |
unidad_medida | varchar(20) | Unit of measure, defaults to "uds" (units) |
id_categoria | integer | Foreign key to Categoria |
id_ubicacion | integer | Foreign key to Ubicacion |
Stock states
The system derives a stock state for each consumable by comparingcantidad against stock_minimo:
| State | Condition | Dashboard color |
|---|---|---|
| Óptimo | cantidad > stock_minimo | Green |
| Atención requerida | cantidad > 0 and cantidad <= stock_minimo | Orange |
| Crítico / Agotados | cantidad = 0 | Red |
Add a consumable
Open the consumables page
Navigate to Consumibles from the sidebar. The grid lists all active consumables with their current stock state.
Fill in the details
Enter the name, initial quantity, minimum stock threshold, unit of measure, category, and location. All fields are required.
Update stock quantity
Open the stock update control
Click the quantity update action on the consumable card to reveal the stock input.
Enter the new quantity
Type the updated quantity. The
actualizarStock action clamps any negative value to 0 — you cannot record negative stock.Edit a consumable
To update a consumable’s name, minimum stock threshold, unit of measure, category, or location, use the edit action on the consumable card. TheeditarConsumible server action updates all fields for the given id_consumible and logs the change.
The input type for editing is:
Retire a consumable (Dar de Baja)
When a consumable is no longer needed, you can soft-delete it. ThedarDeBajaConsumible action sets is_deleted = true on the Consumible record and logs the retirement to the audit trail. The item disappears from the active consumables list and moves to the recycle bin in Configuración, where it can be restored or permanently deleted.