Commit Graph

3 Commits

Author SHA1 Message Date
Adrian Flores Cortes
825e349f37 [SYNC] feat: Add Carta Porte DTOs and controller
- Add carta-porte controller with CRUD operations
- Add DTOs: create, update, cancelar, timbrar
- Add DTOs: autotransporte, mercancia, ubicacion, figura-transporte
- Add common utilities folder
- Add ordenes-transporte service tests
- Update index exports

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 08:11:29 -06:00
Adrian Flores Cortes
a4b1b2fd34 [SPRINT-6] feat: Implement transport module controllers
Carta Porte Module (4 controllers):
- mercancia.controller.ts: Cargo management endpoints
- ubicacion-carta-porte.controller.ts: Location endpoints
- figura-transporte.controller.ts: Transport figures endpoints
- inspeccion-pre-viaje.controller.ts: Pre-trip inspection endpoints

Gestion Flota Module (2 controllers):
- documento-flota.controller.ts: Fleet document management
- asignacion.controller.ts: Unit-operator assignment endpoints

Tarifas Transporte Module (2 controllers):
- factura-transporte.controller.ts: Invoice endpoints with IVA 16%
- recargos.controller.ts: Surcharge catalog and fuel surcharge endpoints

GPS Module (1 controller):
- evento-geocerca.controller.ts: Geofence event endpoints

Total: 9 new controllers following Express Router pattern

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 03:00:12 -06:00
Adrian Flores Cortes
95c6b58449 feat: Add base modules from erp-core following SIMCO-REUSE directive
Phase 0 - Base modules (100% copy):
- shared/ (errors, middleware, services, utils, types)
- auth, users, tenants (multi-tenancy)
- ai, audit, notifications, mcp, payment-terminals
- billing-usage, branches, companies, core

Phase 1 - Modules to adapt (70-95%):
- partners (for shippers/consignees)
- inventory (for refacciones)
- financial (for transport costing)

Phase 2 - Pattern modules (50-70%):
- ordenes-transporte (from sales)
- gestion-flota (from products)
- viajes (from projects)

Phase 3 - New transport-specific modules:
- tracking (GPS, events, alerts)
- tarifas-transporte (pricing, surcharges)
- combustible-gastos (fuel, tolls, expenses)
- carta-porte (CFDI complement 3.1)

Estimated token savings: ~65% (~10,675 lines)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 10:10:19 -06:00