Source: erp-core (checksum: 39a6e229055a21158b63cc4eb4dd232f)
Priority: P0 - CRITICAL divergence resolution
Context: TASK-2026-01-25-SISTEMA-REUTILIZACION
Before: Diverged version with project-specific adaptations
After: Synced with canonical
Changes:
- Complete ai module synchronized from erp-core
- 24 TypeScript files updated
- Unified role-based AI configuration
- Consistent AI behavior across all ERP projects
Note: Project-specific role adaptations (if needed) can be
re-applied as documented extensions after this sync.
Benefits:
- Single source of truth for AI functionality
- Reduced maintenance burden
- Token savings from code reuse
- Consistent behavior baseline
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Added payment-terminals entities to TypeORM config
- Registered PaymentTerminalsModule routes in index.ts
- Updated API modules list in app.ts
- Fixed getEntities() to only reference own entities
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Roles: ADMIN, GERENTE_TIENDA, CAJERO, CLIENTE
- Domain-specific tools per role (POS, sales, inventory)
- Retail terminology and Spanish names
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>