Overview
GIMA’s asset management system provides comprehensive tracking of physical assets throughout their lifecycle, from acquisition to decommissioning. Assets are tracked with detailed metadata, location information, maintenance history, and real-time status updates.Asset States
Assets in GIMA can exist in one of four states, defined by theEstadoActivo enum:
Operativo
OperationalAsset is functioning normally and available for use. This is the default state for active assets.
En Mantenimiento
Under MaintenanceAsset is currently undergoing scheduled or corrective maintenance and temporarily unavailable.
Fuera de Servicio
Out of ServiceAsset is non-functional or unavailable but not permanently removed. May require major repair.
Baja
DecommissionedAsset has been permanently removed from service, sold, or disposed of.
Estado Activo Enum
Fromapp/Enums/EstadoActivo.php:source/app/Enums/EstadoActivo.php:
Asset Lifecycle
Acquisition & Registration
Who: Admin or SupervisorNew assets are registered in the system with:
- Article type (Mobiliario or Equipo)
- Physical location (Building, Floor, Room)
- Initial value
- Initial state (typically Operativo)
Operational Use
State: OperativoAsset is in active use:
- Can be assigned to scheduled maintenance
- Can receive fault reports from any user
- Location can be updated if moved
- Tracked for usage patterns
Maintenance Cycle
State: En MantenimientoAsset undergoes maintenance:
- Temporarily unavailable for use
- Assigned to técnicos
- Spare parts usage tracked
- Activities logged in maintenance sessions
Return to Service or Escalation
Outcomes:
- Success: Returns to Operativo state
- Requires More Work: Remains in Mantenimiento
- Major Issue: Moved to Fuera de Servicio
Asset Model Structure
Fromapp/Models/Activo.php:source/app/Models/Activo.php:
The
estado field is automatically cast to the EstadoActivo enum, providing type safety and IDE autocomplete.Asset Relationships
Article Type
Each asset belongs to an article type (Mobiliario or Equipo):Article Types (TipoArticulo)
Article Types (TipoArticulo)
From
app/Enums/TipoArticulo.php:source/app/Enums/TipoArticulo.php:- Mobiliario: Desks, chairs, cabinets, etc.
- Equipo: Computers, printers, machinery, etc.
Physical Location
Assets are assigned to specific physical locations:Location Model
Location Model
From
app/Models/Ubicacion.php:source/app/Models/Ubicacion.php:Maintenance Records
Assets maintain a complete history of maintenance activities:Maintenance Calendar
Scheduled maintenance is tracked through the calendar:Fault Reports
Users can submit fault reports for assets:Asset Tracking Example
Retrieving complete asset information with relationships:State Transitions
Valid State Changes
Updating Asset State
Asset Filtering and Reporting
Filter by State
Filter by Location
Asset Value Tracking
Permissions Required
View Assets
Permission:
ver catalogo activosRoles: All roles (Admin, Supervisor, Técnico, Reporter)Read-only access to asset catalogManage Assets
Permission:
gestionar activosRoles: Admin, SupervisorCreate, update, and delete assetsBest Practices
State Management
State Management
- Always validate state transitions in your business logic
- Log state changes for audit purposes
- Update asset state automatically when maintenance is completed
- Never delete assets; use the
BAJAstate instead
Location Tracking
Location Tracking
- Keep location information up to date
- Use consistent naming conventions for buildings and rooms
- Consider barcode/QR code integration for physical verification
- Track location history for mobile assets
Value Management
Value Management
- Record acquisition cost in the
valorfield - Consider depreciation in reporting
- Update value after major repairs or upgrades
- Separate asset value from maintenance costs
Performance
Performance
- Use eager loading for related models
- Index foreign keys and state columns
- Cache frequently accessed asset lists
- Paginate large asset queries
Integration with Maintenance
Assets are central to the maintenance workflow:Next Steps
Maintenance Types
Learn about maintenance workflows
Roles & Permissions
Understand access control
API Reference
View asset API endpoints