Overview
The Movements entity (Movimientos Técnicos) tracks all spare part transactions including entries, exits, sales, warranties, loans, and returns. Each movement represents a change in inventory.MovimientoTecnico
Complete technical movement record with all related data.Properties
Unique identifier for the technical movement
Location ID where the movement occurred
Spare part involved in the movement
User ID of the person responsible for the movement
Technician ID assigned to the movement
Movement concept:
'salida' | 'ingreso' | 'venta' | 'garantia' | 'prestamo' | 'cotizacion' | 'devolucion'Movement type:
'ingreso' (entry) | 'salida' (exit) | 'venta' (sale)Quantity of spare parts in the movement
Movement timestamp (ISO 8601 format)
Associated work order number
Whether the movement has been downloaded/processed
Record creation timestamp
Last update timestamp
Spare part reference code
Name of the spare part
URL to the spare part image
Name of the location
Name of the responsible user
Name of the assigned technician
Example
TipoMovimiento
Defines the direction of inventory change.ingreso- Parts entering inventory (increases stock)salida- Parts leaving inventory (decreases stock)venta- Parts sold (decreases stock, generates revenue)
ConceptoMovimiento
Defines the reason or context for the movement.MovimientoEdicion
Simplified structure for editing movements, containing only editable fields.Properties
Movement identifier
Spare part ID
Part reference code
Part name
Assigned technician ID
Movement type
Movement concept
Quantity
Work order number
TechnicalMovement
Alternative movement structure used in some parts of the application.Properties
Array of spare parts involved in the movement
Location ID
Responsible user ID
Assigned technician ID
Movement concept
Movement type
Work order number (as string)
Downloaded status
MovementFilters
Filter parameters for querying movements.Properties
Page number for pagination
Number of items per page
Filter by technician ID
Filter movements from this date (ISO 8601 format)
Filter movements until this date (ISO 8601 format)
Filter by work order number
Filter by movement concept
Filter by downloaded status (“true”, “false”, or “all”)
API Methods
getListMovements
Fetches paginated list of movements with comprehensive filtering.src/entities/movimientos/api/index.ts:5
Query Details:
- View:
v_movimientos_detallados - Filter: Current user’s location
- Ordering:
fechadescending (newest first) - Pagination: Range-based with from/to offsets
Filtering Examples
Movement Concepts Explained
Salida (Exit)
Parts leaving inventory for general purposes, reducing stock.Ingreso (Entry)
Parts entering inventory from suppliers or returns, increasing stock.Venta (Sale)
Parts sold to customers, with revenue tracking.Garantía (Warranty)
Defective parts being replaced under warranty claim.Préstamo (Loan)
Temporary transfer to another location or technician.Cotización (Quote)
Parts allocated for customer quote/estimate.Devolución (Return)
Parts returned to inventory (from loan, unused from job, etc.).Relationships
- References: Spare Part via
id_repuesto - Belongs to: Location via
id_localizacion - Assigned to: User via
id_usuario_responsable - Performed by: User via
id_tecnico_asignado - Updates: Inventory stock levels
- Created by: Requests when fulfilled
- Created by: Guarantees when resolved