- CartaPorteService: CRUD completo para Carta Porte 3.1 SAT
- RolesService: Gestión de roles con aislamiento por tenant
- PermissionsService: Gestión de permisos con bulk creation
- TarifasService: Motor de cotización con múltiples tipos de tarifa
- LanesService: Gestión de rutas origen-destino
Total: ~1,800 líneas de código de servicios
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add missing fields to transport entities (tracking, viajes, ordenes-transporte)
- Update enums to match service expectations (EstadoOrdenTransporte, TipoEventoTracking)
- Add fiscal module from erp-core
- Create app.ts entry point
- Disable strictPropertyInitialization in tsconfig for TypeORM entities
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Added operadores.controller.ts for operator management
- Added unidades.controller.ts for fleet unit management
- Added ordenes-transporte.controller.ts for transport orders
- Added tracking.controller.ts for GPS tracking
- Added viajes controllers directory
- Updated index.ts exports for each module
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- ViajesService: Trip management with state machine, dispatch, delivery
- UnidadesService: Fleet units management, availability, maintenance alerts
- OperadoresService: Operators management, license tracking
- TrackingService: GPS events, geofences, position history
- OrdenesTransporteService: Transport orders with workflow
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- CartaPorte: Main CFDI entity with emisor/receptor, totals, XML/PDF
- UbicacionCartaPorte: Origin/destination locations with SAT codes
- MercanciaCartaPorte: Goods being transported with hazmat support
- FiguraTransporte: Operator/owner/lessor figures
- AutotransporteCartaPorte: Vehicle configuration and trailers
- HosLog: Hours of Service compliance (NOM-087)
- InspeccionPreViaje: Pre-trip inspection checklists
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Viaje entity with transport-specific workflow states
- Add ParadaViaje entity for multi-stop support
- Add Pod entity for Proof of Delivery
- Adapt inventory/product.entity with TipoRefaccion for fleet parts
- Adapt financial/account.entity with TipoCuentaTransporte and TipoCentroCosto
- Update index exports for all modified modules
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>